]> pere.pagekite.me Git - homepage.git/blob - blog/index.html
New post.
[homepage.git] / blog / index.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
6 <title>Petter Reinholdtsen</title>
7 <link rel="stylesheet" type="text/css" media="screen" href="http://people.skolelinux.org/pere/blog/style.css" />
8 <link rel="stylesheet" type="text/css" media="screen" href="http://people.skolelinux.org/pere/blog/vim.css" />
9 <link rel="alternate" title="RSS Feed" href="http://people.skolelinux.org/pere/blog/index.rss" type="application/rss+xml" />
10 </head>
11 <body>
12 <div class="title">
13 <h1>
14 <a href="http://people.skolelinux.org/pere/blog/">Petter Reinholdtsen</a>
15
16 </h1>
17
18 </div>
19
20
21
22 <div class="entry">
23 <div class="title"><a href="http://people.skolelinux.org/pere/blog/Valutakrambod___A_python_and_bitcoin_love_story.html">Valutakrambod - A python and bitcoin love story</a></div>
24 <div class="date">29th September 2018</div>
25 <div class="body"><p>It would come as no surprise to anyone that I am interested in
26 bitcoins and virtual currencies. I've been keeping an eye on virtual
27 currencies for many years, and it is part of the reason a few months
28 ago, I started writing a python library for collecting currency
29 exchange rates and trade on virtual currency exchanges. I decided to
30 name the end result valutakrambod, which perhaps can be translated to
31 small currency shop.</p>
32
33 <p>The library uses the tornado python library to handle HTTP and
34 websocket connections, and provide a asynchronous system for
35 connecting to and tracking several services. The code is available
36 from
37 <a href="http://github.com/petterreinholdtsen/valutakrambod">github</a>.</p>
38
39 </p>There are two example clients of the library. One is very simple and
40 list every updated buy/sell price received from the various services.
41 This code is started by running bin/btc-rates and call the client code
42 in valutakrambod/client.py. The simple client look like this:</p>
43
44 <p><blockquote><pre>
45 import functools
46 import tornado.ioloop
47 import valutakrambod
48 class SimpleClient(object):
49 def __init__(self):
50 self.services = []
51 self.streams = []
52 pass
53 def newdata(self, service, pair, changed):
54 print("%-15s %s-%s: %8.3f %8.3f" % (
55 service.servicename(),
56 pair[0],
57 pair[1],
58 service.rates[pair]['ask'],
59 service.rates[pair]['bid'])
60 )
61 async def refresh(self, service):
62 await service.fetchRates(service.wantedpairs)
63 def run(self):
64 self.ioloop = tornado.ioloop.IOLoop.current()
65 self.services = valutakrambod.service.knownServices()
66 for e in self.services:
67 service = e()
68 service.subscribe(self.newdata)
69 stream = service.websocket()
70 if stream:
71 self.streams.append(stream)
72 else:
73 # Fetch information from non-streaming services immediately
74 self.ioloop.call_later(len(self.services),
75 functools.partial(self.refresh, service))
76 # as well as regularly
77 service.periodicUpdate(60)
78 for stream in self.streams:
79 stream.connect()
80 try:
81 self.ioloop.start()
82 except KeyboardInterrupt:
83 print("Interrupted by keyboard, closing all connections.")
84 pass
85 for stream in self.streams:
86 stream.close()
87 </pre></blockquote></p>
88
89 <p>The library client loop over all known "public" services,
90 initialises it, subscribe to any updates from the service, check and
91 activate websocket streaming if the service provide it, and if no
92 streaming is supported, fetch information from the service and set up
93 a periodic update every 60 seconds. The output from this client can
94 look like this:</p>
95
96 <p><blockquote><pre>
97 Bl3p BTC-EUR: 5687.110 5653.690
98 Bl3p BTC-EUR: 5687.110 5653.690
99 Bl3p BTC-EUR: 5687.110 5653.690
100 Hitbtc BTC-USD: 6594.560 6593.690
101 Hitbtc BTC-USD: 6594.560 6593.690
102 Bl3p BTC-EUR: 5687.110 5653.690
103 Hitbtc BTC-USD: 6594.570 6593.690
104 Bitstamp EUR-USD: 1.159 1.154
105 Hitbtc BTC-USD: 6594.570 6593.690
106 Hitbtc BTC-USD: 6594.580 6593.690
107 Hitbtc BTC-USD: 6594.580 6593.690
108 Hitbtc BTC-USD: 6594.580 6593.690
109 Bl3p BTC-EUR: 5687.110 5653.690
110 Paymium BTC-EUR: 5680.000 5620.240
111 </pre></blockquote></p>
112
113 <p>The exchange order book is tracked in addition to the best buy/sell
114 price, for those that need to know the details.</p>
115
116 <p>The other example client is focusing on providing a curses view
117 with updated buy/sell prices as soon as they are received from the
118 services. This code is located in bin/btc-rates-curses and activated
119 by using the '-c' argument. Without the argument the "curses" output
120 is printed without using curses, which is useful for debugging. The
121 curses view look like this:</p>
122
123 <p><blockquote><pre>
124 Name Pair Bid Ask Spr Ftcd Age
125 BitcoinsNorway BTCEUR 5591.8400 5711.0800 2.1% 16 nan 60
126 Bitfinex BTCEUR 5671.0000 5671.2000 0.0% 16 22 59
127 Bitmynt BTCEUR 5580.8000 5807.5200 3.9% 16 41 60
128 Bitpay BTCEUR 5663.2700 nan nan% 15 nan 60
129 Bitstamp BTCEUR 5664.8400 5676.5300 0.2% 0 1 1
130 Bl3p BTCEUR 5653.6900 5684.9400 0.5% 0 nan 19
131 Coinbase BTCEUR 5600.8200 5714.9000 2.0% 15 nan nan
132 Kraken BTCEUR 5670.1000 5670.2000 0.0% 14 17 60
133 Paymium BTCEUR 5620.0600 5680.0000 1.1% 1 7515 nan
134 BitcoinsNorway BTCNOK 52898.9700 54034.6100 2.1% 16 nan 60
135 Bitmynt BTCNOK 52960.3200 54031.1900 2.0% 16 41 60
136 Bitpay BTCNOK 53477.7833 nan nan% 16 nan 60
137 Coinbase BTCNOK 52990.3500 54063.0600 2.0% 15 nan nan
138 MiraiEx BTCNOK 52856.5300 54100.6000 2.3% 16 nan nan
139 BitcoinsNorway BTCUSD 6495.5300 6631.5400 2.1% 16 nan 60
140 Bitfinex BTCUSD 6590.6000 6590.7000 0.0% 16 23 57
141 Bitpay BTCUSD 6564.1300 nan nan% 15 nan 60
142 Bitstamp BTCUSD 6561.1400 6565.6200 0.1% 0 2 1
143 Coinbase BTCUSD 6504.0600 6635.9700 2.0% 14 nan 117
144 Gemini BTCUSD 6567.1300 6573.0700 0.1% 16 89 nan
145 Hitbtc+BTCUSD 6592.6200 6594.2100 0.0% 0 0 0
146 Kraken BTCUSD 6565.2000 6570.9000 0.1% 15 17 58
147 Exchangerates EURNOK 9.4665 9.4665 0.0% 16 107789 nan
148 Norgesbank EURNOK 9.4665 9.4665 0.0% 16 107789 nan
149 Bitstamp EURUSD 1.1537 1.1593 0.5% 4 5 1
150 Exchangerates EURUSD 1.1576 1.1576 0.0% 16 107789 nan
151 BitcoinsNorway LTCEUR 1.0000 49.0000 98.0% 16 nan nan
152 BitcoinsNorway LTCNOK 492.4800 503.7500 2.2% 16 nan 60
153 BitcoinsNorway LTCUSD 1.0221 49.0000 97.9% 15 nan nan
154 Norgesbank USDNOK 8.1777 8.1777 0.0% 16 107789 nan
155 </pre></blockquote></p>
156
157 <p>The code for this client is too complex for a simple blog post, so
158 you will have to check out the git repository to figure out how it
159 work. What I can tell is how the three last numbers on each line
160 should be interpreted. The first is how many seconds ago information
161 was received from the service. The second is how long ago, according
162 to the service, the provided information was updated. The last is an
163 estimate on how often the buy/sell values change.</p>
164
165 <p>If you find this library useful, or would like to improve it, I
166 would love to hear from you. Note that for some of the services I've
167 implemented a trading API. It might be the topic of a future blog
168 post.</p>
169
170 <p>As usual, if you use Bitcoin and want to show your support of my
171 activities, please send Bitcoin donations to my address
172 <b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p>
173 </div>
174 <div class="tags">
175
176
177 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>.
178
179
180 </div>
181 </div>
182 <div class="padding"></div>
183
184 <div class="entry">
185 <div class="title"><a href="http://people.skolelinux.org/pere/blog/VLC_in_Debian_now_can_do_bittorrent_streaming.html">VLC in Debian now can do bittorrent streaming</a></div>
186 <div class="date">24th September 2018</div>
187 <div class="body"><p>Back in February, I got curious to see
188 <a href="http://people.skolelinux.org/pere/blog/Using_VLC_to_stream_bittorrent_sources.html">if
189 VLC now supported Bittorrent streaming</a>. It did not, despite the
190 fact that the idea and code to handle such streaming had been floating
191 around for years. I did however find
192 <a href="https://github.com/johang/vlc-bittorrent">a standalone plugin
193 for VLC</a> to do it, and half a year later I decided to wrap up the
194 plugin and get it into Debian. I uploaded it to NEW a few days ago,
195 and am very happy to report that it
196 <a href="https://tracker.debian.org/pkg/vlc-plugin-bittorrent">entered
197 Debian</a> a few hours ago, and should be available in Debian/Unstable
198 tomorrow, and Debian/Testing in a few days.</p>
199
200 <p>With the vlc-plugin-bittorrent package installed you should be able
201 to stream videos using a simple call to</p>
202
203 <p><blockquote><pre>
204 vlc https://archive.org/download/TheGoat/TheGoat_archive.torrent
205 </pre></blockquote></p>
206
207 </p>It can handle magnet links too. Now if only native vlc had
208 bittorrent support. Then a lot more would be helping each other to
209 share public domain and creative commons movies. The plugin need some
210 stability work with seeking and picking the right file in a torrent
211 with many files, but is already usable. Please note that the plugin
212 is not removing downloaded files when vlc is stopped, so it can fill
213 up your disk if you are not careful. Have fun. :)</p>
214
215 <p>I would love to get help maintaining this package. Get in touch if
216 you are interested.</p>
217
218 <p>As usual, if you use Bitcoin and want to show your support of my
219 activities, please send Bitcoin donations to my address
220 <b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p>
221 </div>
222 <div class="tags">
223
224
225 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/verkidetfri">verkidetfri</a>, <a href="http://people.skolelinux.org/pere/blog/tags/video">video</a>.
226
227
228 </div>
229 </div>
230 <div class="padding"></div>
231
232 <div class="entry">
233 <div class="title"><a href="http://people.skolelinux.org/pere/blog/Using_the_Kodi_API_to_play_Youtube_videos.html">Using the Kodi API to play Youtube videos</a></div>
234 <div class="date"> 2nd September 2018</div>
235 <div class="body"><p>I continue to explore my Kodi installation, and today I wanted to
236 tell it to play a youtube URL I received in a chat, without having to
237 insert search terms using the on-screen keyboard. After searching the
238 web for API access to the Youtube plugin and testing a bit, I managed
239 to find a recipe that worked. If you got a kodi instance with its API
240 available from http://kodihost/jsonrpc, you can try the following to
241 have check out a nice cover band.</p>
242
243 <p><blockquote><pre>curl --silent --header 'Content-Type: application/json' \
244 --data-binary '{ "id": 1, "jsonrpc": "2.0", "method": "Player.Open",
245 "params": {"item": { "file":
246 "plugin://plugin.video.youtube/play/?video_id=LuRGVM9O0qg" } } }' \
247 http://projector.local/jsonrpc</pre></blockquote></p>
248
249 <p>I've extended kodi-stream program to take a video source as its
250 first argument. It can now handle direct video links, youtube links
251 and 'desktop' to stream my desktop to Kodi. It is almost like a
252 Chromecast. :)</p>
253
254 <p>As usual, if you use Bitcoin and want to show your support of my
255 activities, please send Bitcoin donations to my address
256 <b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p>
257 </div>
258 <div class="tags">
259
260
261 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/kodi">kodi</a>, <a href="http://people.skolelinux.org/pere/blog/tags/video">video</a>.
262
263
264 </div>
265 </div>
266 <div class="padding"></div>
267
268 <div class="entry">
269 <div class="title"><a href="http://people.skolelinux.org/pere/blog/Software_created_using_taxpayers__money_should_be_Free_Software.html">Software created using taxpayers’ money should be Free Software</a></div>
270 <div class="date">30th August 2018</div>
271 <div class="body"><p>It might seem obvious that software created using tax money should
272 be available for everyone to use and improve. Free Software
273 Foundation Europe recentlystarted a campaign to help get more people
274 to understand this, and I just signed the petition on
275 <a href="https://publiccode.eu/">Public Money, Public Code</a> to help
276 them. I hope you too will do the same.</p>
277 </div>
278 <div class="tags">
279
280
281 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/opphavsrett">opphavsrett</a>.
282
283
284 </div>
285 </div>
286 <div class="padding"></div>
287
288 <div class="entry">
289 <div class="title"><a href="http://people.skolelinux.org/pere/blog/A_bit_more_on_privacy_respecting_health_monitor___fitness_tracker.html">A bit more on privacy respecting health monitor / fitness tracker</a></div>
290 <div class="date">13th August 2018</div>
291 <div class="body"><p>A few days ago, I wondered if there are any privacy respecting
292 health monitors and/or fitness trackers available for sale these days.
293 I would like to buy one, but do not want to share my personal data
294 with strangers, nor be forced to have a mobile phone to get data out
295 of the unit. I've received some ideas, and would like to share them
296 with you.
297
298 One interesting data point was a pointer to a Free Software app for
299 Android named
300 <a href="https://github.com/Freeyourgadget/Gadgetbridge/">Gadgetbridge</a>.
301 It provide cloudless collection and storing of data from a variety of
302 trackers. Its
303 <a href="https://github.com/Freeyourgadget/Gadgetbridge/#supported-devices">list
304 of supported devices</a> is a good indicator for units where the
305 protocol is fairly open, as it is obviously being handled by Free
306 Software. Other units are reportedly encrypting the collected
307 information with their own public key, making sure only the vendor
308 cloud service is able to extract data from the unit. The people
309 contacting me about Gadgetbirde said they were using
310 <a href="https://us.amazfit.com/shop/bip?variant=336750">Amazfit
311 Bip</a> and
312 <a href="http://www.xiaomimi6phone.com/xiaomi-mi-band-3-features-release-date-rumors/">Xiaomi
313 Band 3</a>.</p>
314
315 <p>I also got a suggestion to look at some of the units from Garmin.
316 I was told their GPS watches can be connected via USB and show up as a
317 USB storage device with
318 <a href="https://www.gpsbabel.org/htmldoc-development/fmt_garmin_fit.html">Garmin
319 FIT files</a> containing the collected measurements. While
320 proprietary, FIT files apparently can be read at least by
321 <a href="https://www.gpsbabel.org">GPSBabel</a> and the
322 <a href="https://apps.nextcloud.com/apps/gpxpod">GpxPod</a> Nextcloud
323 app. It is unclear to me if they can read step count and heart rate
324 data. The person I talked to was using a
325 <a href="https://buy.garmin.com/en-US/US/p/564291">Garmin Forerunner
326 935</a>, which is a fairly expensive unit. I doubt it is worth it for
327 a unit where the vendor clearly is trying its best to move from open
328 to closed systems. I still remember when Garmin dropped NMEA support
329 in its GPSes.</p>
330
331 <p>A final idea was to build ones own unit, perhaps by basing it on a
332 wearable hardware platforms like
333 <a href="https://learn.adafruit.com/flora-geo-watch">the Flora Geo
334 Watch</a>. Sound like fun, but I had more money than time to spend on
335 the topic, so I suspect it will have to wait for another time.</p>
336
337 <p>While I was working on tracking down links, I came across an
338 inspiring TED talk by Dave Debronkart about
339 <a href="https://archive.org/details/DavedeBronkart_2010X">being a
340 e-patient</a>, and discovered the web site
341 <a href="https://participatorymedicine.org/epatients/">Participatory
342 Medicine</a>. If you too want to track your own health and fitness
343 without having information about your private life floating around on
344 computers owned by others, I recommend checking it out.</p>
345
346 <p>As usual, if you use Bitcoin and want to show your support of my
347 activities, please send Bitcoin donations to my address
348 <b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p>
349 </div>
350 <div class="tags">
351
352
353 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>.
354
355
356 </div>
357 </div>
358 <div class="padding"></div>
359
360 <div class="entry">
361 <div class="title"><a href="http://people.skolelinux.org/pere/blog/Privacy_respecting_health_monitor___fitness_tracker_.html">Privacy respecting health monitor / fitness tracker?</a></div>
362 <div class="date"> 7th August 2018</div>
363 <div class="body"><p>Dear lazyweb,</p>
364
365 <p>I wonder, is there a fitness tracker / health monitor available for
366 sale today that respect the users privacy? With this I mean a
367 watch/bracelet capable of measuring pulse rate and other
368 fitness/health related values (and by all means, also the correct time
369 and location if possible), which is <strong>only</strong> provided for
370 me to extract/read from the unit with computer without a radio beacon
371 and Internet connection. In other words, it do not depend on a cell
372 phone app, and do make the measurements available via other peoples
373 computer (aka "the cloud"). The collected data should be available
374 using only free software. I'm not interested in depending on some
375 non-free software that will leave me high and dry some time in the
376 future. I've been unable to find any such unit. I would like to buy
377 it. The ones I have seen for sale here in Norway are proud to report
378 that they share my health data with strangers (aka "cloud enabled").
379 Is there an alternative? I'm not interested in giving money to people
380 requiring me to accept "privacy terms" to allow myself to measure my
381 own health.</p>
382
383 <p>As usual, if you use Bitcoin and want to show your support of my
384 activities, please send Bitcoin donations to my address
385 <b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p>
386 </div>
387 <div class="tags">
388
389
390 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>.
391
392
393 </div>
394 </div>
395 <div class="padding"></div>
396
397 <div class="entry">
398 <div class="title"><a href="http://people.skolelinux.org/pere/blog/Sharing_images_with_friends_and_family_using_RSS_and_EXIF_XMP_metadata.html">Sharing images with friends and family using RSS and EXIF/XMP metadata</a></div>
399 <div class="date">31st July 2018</div>
400 <div class="body"><p>For a while now, I have looked for a sensible way to share images
401 with my family using a self hosted solution, as it is unacceptable to
402 place images from my personal life under the control of strangers
403 working for data hoarders like Google or Dropbox. The last few days I
404 have drafted an approach that might work out, and I would like to
405 share it with you. I would like to publish images on a server under
406 my control, and point some Internet connected display units using some
407 free and open standard to the images I published. As my primary
408 language is not limited to ASCII, I need to store metadata using
409 UTF-8. Many years ago, I hoped to find a digital photo frame capable
410 of reading a RSS feed with image references (aka using the
411 &lt;enclosure&gt; RSS tag), but was unable to find a current supplier
412 of such frames. In the end I gave up that approach.</p>
413
414 <p>Some months ago, I discovered that
415 <a href="https://www.jwz.org/xscreensaver/">XScreensaver</a> is able to
416 read images from a RSS feed, and used it to set up a screen saver on
417 my home info screen, showing images from the Daily images feed from
418 NASA. This proved to work well. More recently I discovered that
419 <a href="https://kodi.tv">Kodi</a> (both using
420 <a href="https://www.openelec.tv/">OpenELEC</a> and
421 <a href="https://libreelec.tv">LibreELEC</a>) provide the
422 <a href="https://github.com/grinsted/script.screensaver.feedreader">Feedreader</a>
423 screen saver capable of reading a RSS feed with images and news. For
424 fun, I used it this summer to test Kodi on my parents TV by hooking up
425 a Raspberry PI unit with LibreELEC, and wanted to provide them with a
426 screen saver showing selected pictures from my selection.</p>
427
428 <p>Armed with motivation and a test photo frame, I set out to generate
429 a RSS feed for the Kodi instance. I adjusted my <a
430 href="https://freedombox.org/">Freedombox</a> instance, created
431 /var/www/html/privatepictures/, wrote a small Perl script to extract
432 title and description metadata from the photo files and generate the
433 RSS file. I ended up using Perl instead of python, as the
434 libimage-exiftool-perl Debian package seemed to handle the EXIF/XMP
435 tags I ended up using, while python3-exif did not. The relevant EXIF
436 tags only support ASCII, so I had to find better alternatives. XMP
437 seem to have the support I need.</p>
438
439 <p>I am a bit unsure which EXIF/XMP tags to use, as I would like to
440 use tags that can be easily added/updated using normal free software
441 photo managing software. I ended up using the tags set using this
442 exiftool command, as these tags can also be set using digiKam:</p>
443
444 <blockquote><pre>
445 exiftool -headline='The RSS image title' \
446 -description='The RSS image description.' \
447 -subject+=for-family photo.jpeg
448 </pre></blockquote>
449
450 <p>I initially tried the "-title" and "keyword" tags, but they were
451 invisible in digiKam, so I changed to "-headline" and "-subject". I
452 use the keyword/subject 'for-family' to flag that the photo should be
453 shared with my family. Images with this keyword set are located and
454 copied into my Freedombox for the RSS generating script to find.</p>
455
456 <p>Are there better ways to do this? Get in touch if you have better
457 suggestions.</p>
458
459 <p>As usual, if you use Bitcoin and want to show your support of my
460 activities, please send Bitcoin donations to my address
461 <b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p>
462 </div>
463 <div class="tags">
464
465
466 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>.
467
468
469 </div>
470 </div>
471 <div class="padding"></div>
472
473 <div class="entry">
474 <div class="title"><a href="http://people.skolelinux.org/pere/blog/Simple_streaming_the_Linux_desktop_to_Kodi_using_GStreamer_and_RTP.html">Simple streaming the Linux desktop to Kodi using GStreamer and RTP</a></div>
475 <div class="date">12th July 2018</div>
476 <div class="body"><p>Last night, I wrote
477 <a href="http://people.skolelinux.org/pere/blog/Streaming_the_Linux_desktop_to_Kodi_using_VLC_and_RTSP.html">a
478 recipe to stream a Linux desktop using VLC to a instance of Kodi</a>.
479 During the day I received valuable feedback, and thanks to the
480 suggestions I have been able to rewrite the recipe into a much simpler
481 approach requiring no setup at all. It is a single script that take
482 care of it all.</p>
483
484 <p>This new script uses GStreamer instead of VLC to capture the
485 desktop and stream it to Kodi. This fixed the video quality issue I
486 saw initially. It further removes the need to add a m3u file on the
487 Kodi machine, as it instead connects to
488 <a href="https://kodi.wiki/view/JSON-RPC_API/v8">the JSON-RPC API in
489 Kodi</a> and simply ask Kodi to play from the stream created using
490 GStreamer. Streaming the desktop to Kodi now become trivial. Copy
491 the script below, run it with the DNS name or IP address of the kodi
492 server to stream to as the only argument, and watch your screen show
493 up on the Kodi screen. Note, it depend on multicast on the local
494 network, so if you need to stream outside the local network, the
495 script must be modified. Also note, I have no idea if audio work, as
496 I only care about the picture part.</p>
497
498 <blockquote><pre>
499 #!/bin/sh
500 #
501 # Stream the Linux desktop view to Kodi. See
502 # http://people.skolelinux.org/pere/blog/Streaming_the_Linux_desktop_to_Kodi_using_VLC_and_RTSP.html
503 # for backgorund information.
504
505 # Make sure the stream is stopped in Kodi and the gstreamer process is
506 # killed if something go wrong (for example if curl is unable to find the
507 # kodi server). Do the same when interrupting this script.
508 kodicmd() {
509 host="$1"
510 cmd="$2"
511 params="$3"
512 curl --silent --header 'Content-Type: application/json' \
513 --data-binary "{ \"id\": 1, \"jsonrpc\": \"2.0\", \"method\": \"$cmd\", \"params\": $params }" \
514 "http://$host/jsonrpc"
515 }
516 cleanup() {
517 if [ -n "$kodihost" ] ; then
518 # Stop the playing when we end
519 playerid=$(kodicmd "$kodihost" Player.GetActivePlayers "{}" |
520 jq .result[].playerid)
521 kodicmd "$kodihost" Player.Stop "{ \"playerid\" : $playerid }" > /dev/null
522 fi
523 if [ "$gstpid" ] && kill -0 "$gstpid" >/dev/null 2>&1; then
524 kill "$gstpid"
525 fi
526 }
527 trap cleanup EXIT INT
528
529 if [ -n "$1" ]; then
530 kodihost=$1
531 shift
532 else
533 kodihost=kodi.local
534 fi
535
536 mcast=239.255.0.1
537 mcastport=1234
538 mcastttl=1
539
540 pasrc=$(pactl list | grep -A2 'Source #' | grep 'Name: .*\.monitor$' | \
541 cut -d" " -f2|head -1)
542 gst-launch-1.0 ximagesrc use-damage=0 ! video/x-raw,framerate=30/1 ! \
543 videoconvert ! queue2 ! \
544 x264enc bitrate=8000 speed-preset=superfast tune=zerolatency qp-min=30 \
545 key-int-max=15 bframes=2 ! video/x-h264,profile=high ! queue2 ! \
546 mpegtsmux alignment=7 name=mux ! rndbuffersize max=1316 min=1316 ! \
547 udpsink host=$mcast port=$mcastport ttl-mc=$mcastttl auto-multicast=1 sync=0 \
548 pulsesrc device=$pasrc ! audioconvert ! queue2 ! avenc_aac ! queue2 ! mux. \
549 > /dev/null 2>&1 &
550 gstpid=$!
551
552 # Give stream a second to get going
553 sleep 1
554
555 # Ask kodi to start streaming using its JSON-RPC API
556 kodicmd "$kodihost" Player.Open \
557 "{\"item\": { \"file\": \"udp://@$mcast:$mcastport\" } }" > /dev/null
558
559 # wait for gst to end
560 wait "$gstpid"
561 </pre></blockquote>
562
563 <p>I hope you find the approach useful. I know I do.</p>
564
565 <p>As usual, if you use Bitcoin and want to show your support of my
566 activities, please send Bitcoin donations to my address
567 <b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p>
568 </div>
569 <div class="tags">
570
571
572 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/kodi">kodi</a>, <a href="http://people.skolelinux.org/pere/blog/tags/video">video</a>.
573
574
575 </div>
576 </div>
577 <div class="padding"></div>
578
579 <div class="entry">
580 <div class="title"><a href="http://people.skolelinux.org/pere/blog/Streaming_the_Linux_desktop_to_Kodi_using_VLC_and_RTSP.html">Streaming the Linux desktop to Kodi using VLC and RTSP</a></div>
581 <div class="date">12th July 2018</div>
582 <div class="body"><p>PS: See
583 <ahref="http://people.skolelinux.org/pere/blog/Simple_streaming_the_Linux_desktop_to_Kodi_using_GStreamer_and_RTP.html">the
584 followup post</a> for a even better approach.</p>
585
586 <p>A while back, I was asked by a friend how to stream the desktop to
587 my projector connected to Kodi. I sadly had to admit that I had no
588 idea, as it was a task I never had tried. Since then, I have been
589 looking for a way to do so, preferable without much extra software to
590 install on either side. Today I found a way that seem to kind of
591 work. Not great, but it is a start.</p>
592
593 <p>I had a look at several approaches, for example
594 <a href="https://github.com/mfoetsch/dlna_live_streaming">using uPnP
595 DLNA as described in 2011</a>, but it required a uPnP server, fuse and
596 local storage enough to store the stream locally. This is not going
597 to work well for me, lacking enough free space, and it would
598 impossible for my friend to get working.</p>
599
600 <p>Next, it occurred to me that perhaps I could use VLC to create a
601 video stream that Kodi could play. Preferably using
602 broadcast/multicast, to avoid having to change any setup on the Kodi
603 side when starting such stream. Unfortunately, the only recipe I
604 could find using multicast used the rtp protocol, and this protocol
605 seem to not be supported by Kodi.</p>
606
607 <p>On the other hand, the rtsp protocol is working! Unfortunately I
608 have to specify the IP address of the streaming machine in both the
609 sending command and the file on the Kodi server. But it is showing my
610 desktop, and thus allow us to have a shared look on the big screen at
611 the programs I work on.</p>
612
613 <p>I did not spend much time investigating codeces. I combined the
614 rtp and rtsp recipes from
615 <a href="https://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples/">the
616 VLC Streaming HowTo/Command Line Examples</a>, and was able to get
617 this working on the desktop/streaming end.</p>
618
619 <blockquote><pre>
620 vlc screen:// --sout \
621 '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:rtp{dst=projector.local,port=1234,sdp=rtsp://192.168.11.4:8080/test.sdp}'
622 </pre></blockquote>
623
624 <p>I ssh-ed into my Kodi box and created a file like this with the
625 same IP address:</p>
626
627 <blockquote><pre>
628 echo rtsp://192.168.11.4:8080/test.sdp \
629 > /storage/videos/screenstream.m3u
630 </pre></blockquote>
631
632 <p>Note the 192.168.11.4 IP address is my desktops IP address. As far
633 as I can tell the IP must be hardcoded for this to work. In other
634 words, if someone elses machine is going to do the steaming, you have
635 to update screenstream.m3u on the Kodi machine and adjust the vlc
636 recipe. To get started, locate the file in Kodi and select the m3u
637 file while the VLC stream is running. The desktop then show up in my
638 big screen. :)</p>
639
640 <p>When using the same technique to stream a video file with audio,
641 the audio quality is really bad. No idea if the problem is package
642 loss or bad parameters for the transcode. I do not know VLC nor Kodi
643 enough to tell.</p>
644
645 <p><strong>Update 2018-07-12</strong>: Johannes Schauer send me a few
646 succestions and reminded me about an important step. The "screen:"
647 input source is only available once the vlc-plugin-access-extra
648 package is installed on Debian. Without it, you will see this error
649 message: "VLC is unable to open the MRL 'screen://'. Check the log
650 for details." He further found that it is possible to drop some parts
651 of the VLC command line to reduce the amount of hardcoded information.
652 It is also useful to consider using cvlc to avoid having the VLC
653 window in the desktop view. In sum, this give us this command line on
654 the source end
655
656 <blockquote><pre>
657 cvlc screen:// --sout \
658 '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:rtp{sdp=rtsp://:8080/}'
659 </pre></blockquote>
660
661 <p>and this on the Kodi end<p>
662
663 <blockquote><pre>
664 echo rtsp://192.168.11.4:8080/ \
665 > /storage/videos/screenstream.m3u
666 </pre></blockquote>
667
668 <p>Still bad image quality, though. But I did discover that streaming
669 a DVD using dvdsimple:///dev/dvd as the source had excellent video and
670 audio quality, so I guess the issue is in the input or transcoding
671 parts, not the rtsp part. I've tried to change the vb and ab
672 parameters to use more bandwidth, but it did not make a
673 difference.</p>
674
675 <p>I further received a suggestion from Einar Haraldseid to try using
676 gstreamer instead of VLC, and this proved to work great! He also
677 provided me with the trick to get Kodi to use a multicast stream as
678 its source. By using this monstrous oneliner, I can stream my desktop
679 with good video quality in reasonable framerate to the 239.255.0.1
680 multicast address on port 1234:
681
682 <blockquote><pre>
683 gst-launch-1.0 ximagesrc use-damage=0 ! video/x-raw,framerate=30/1 ! \
684 videoconvert ! queue2 ! \
685 x264enc bitrate=8000 speed-preset=superfast tune=zerolatency qp-min=30 \
686 key-int-max=15 bframes=2 ! video/x-h264,profile=high ! queue2 ! \
687 mpegtsmux alignment=7 name=mux ! rndbuffersize max=1316 min=1316 ! \
688 udpsink host=239.255.0.1 port=1234 ttl-mc=1 auto-multicast=1 sync=0 \
689 pulsesrc device=$(pactl list | grep -A2 'Source #' | \
690 grep 'Name: .*\.monitor$' | cut -d" " -f2|head -1) ! \
691 audioconvert ! queue2 ! avenc_aac ! queue2 ! mux.
692 </pre></blockquote>
693
694 <p>and this on the Kodi end<p>
695
696 <blockquote><pre>
697 echo udp://@239.255.0.1:1234 \
698 > /storage/videos/screenstream.m3u
699 </pre></blockquote>
700
701 <p>Note the trick to pick a valid pulseaudio source. It might not
702 pick the one you need. This approach will of course lead to trouble
703 if more than one source uses the same multicast port and address.
704 Note the ttl-mc=1 setting, which limit the multicast packages to the
705 local network. If the value is increased, your screen will be
706 broadcasted further, one network "hop" for each increase (read up on
707 multicast to learn more. :)!</p>
708
709 <p>Having cracked how to get Kodi to receive multicast streams, I
710 could use this VLC command to stream to the same multicast address.
711 The image quality is way better than the rtsp approach, but gstreamer
712 seem to be doing a better job.</p>
713
714 <blockquote><pre>
715 cvlc screen:// --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:rtp{mux=ts,dst=239.255.0.1,port=1234,sdp=sap}'
716 </pre></blockquote>
717
718 <p>As usual, if you use Bitcoin and want to show your support of my
719 activities, please send Bitcoin donations to my address
720 <b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p>
721 </div>
722 <div class="tags">
723
724
725 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/kodi">kodi</a>, <a href="http://people.skolelinux.org/pere/blog/tags/video">video</a>.
726
727
728 </div>
729 </div>
730 <div class="padding"></div>
731
732 <div class="entry">
733 <div class="title"><a href="http://people.skolelinux.org/pere/blog/What_is_the_most_supported_MIME_type_in_Debian_in_2018_.html">What is the most supported MIME type in Debian in 2018?</a></div>
734 <div class="date"> 9th July 2018</div>
735 <div class="body"><p>Five years ago,
736 <a href="http://people.skolelinux.org/pere/blog/What_is_the_most_supported_MIME_type_in_Debian_.html">I
737 measured what the most supported MIME type in Debian was</a>, by
738 analysing the desktop files in all packages in the archive. Since
739 then, the DEP-11 AppStream system has been put into production, making
740 the task a lot easier. This made me want to repeat the measurement,
741 to see how much things changed. Here are the new numbers, for
742 unstable only this time:
743
744 <p><strong>Debian Unstable:</strong></p>
745
746 <pre>
747 count MIME type
748 ----- -----------------------
749 56 image/jpeg
750 55 image/png
751 49 image/tiff
752 48 image/gif
753 39 image/bmp
754 38 text/plain
755 37 audio/mpeg
756 34 application/ogg
757 33 audio/x-flac
758 32 audio/x-mp3
759 30 audio/x-wav
760 30 audio/x-vorbis+ogg
761 29 image/x-portable-pixmap
762 27 inode/directory
763 27 image/x-portable-bitmap
764 27 audio/x-mpeg
765 26 application/x-ogg
766 25 audio/x-mpegurl
767 25 audio/ogg
768 24 text/html
769 </pre>
770
771 <p>The list was created like this using a sid chroot: "cat
772 /var/lib/apt/lists/*sid*_dep11_Components-amd64.yml.gz| zcat | awk '/^
773 - \S+\/\S+$/ {print $2 }' | sort | uniq -c | sort -nr | head -20"</p>
774
775 <p>It is interesting to see how image formats have passed text/plain
776 as the most announced supported MIME type. These days, thanks to the
777 AppStream system, if you run into a file format you do not know, and
778 want to figure out which packages support the format, you can find the
779 MIME type of the file using "file --mime &lt;filename&gt;", and then
780 look up all packages announcing support for this format in their
781 AppStream metadata (XML or .desktop file) using "appstreamcli
782 what-provides mimetype &lt;mime-type&gt;. For example if you, like
783 me, want to know which packages support inode/directory, you can get a
784 list like this:</p>
785
786 <p><blockquote><pre>
787 % appstreamcli what-provides mimetype inode/directory | grep Package: | sort
788 Package: anjuta
789 Package: audacious
790 Package: baobab
791 Package: cervisia
792 Package: chirp
793 Package: dolphin
794 Package: doublecmd-common
795 Package: easytag
796 Package: enlightenment
797 Package: ephoto
798 Package: filelight
799 Package: gwenview
800 Package: k4dirstat
801 Package: kaffeine
802 Package: kdesvn
803 Package: kid3
804 Package: kid3-qt
805 Package: nautilus
806 Package: nemo
807 Package: pcmanfm
808 Package: pcmanfm-qt
809 Package: qweborf
810 Package: ranger
811 Package: sirikali
812 Package: spacefm
813 Package: spacefm
814 Package: vifm
815 %
816 </pre></blockquote></p>
817
818 <p>Using the same method, I can quickly discover that the Sketchup file
819 format is not yet supported by any package in Debian:</p>
820
821 <p><blockquote><pre>
822 % appstreamcli what-provides mimetype application/vnd.sketchup.skp
823 Could not find component providing 'mimetype::application/vnd.sketchup.skp'.
824 %
825 </pre></blockquote></p>
826
827 <p>Yesterday I used it to figure out which packages support the STL 3D
828 format:</p>
829
830 <p><blockquote><pre>
831 % appstreamcli what-provides mimetype application/sla|grep Package
832 Package: cura
833 Package: meshlab
834 Package: printrun
835 %
836 </pre></blockquote></p>
837
838 <p>PS: A new version of Cura was uploaded to Debian yesterday.</p>
839
840 <p>As usual, if you use Bitcoin and want to show your support of my
841 activities, please send Bitcoin donations to my address
842 <b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p>
843 </div>
844 <div class="tags">
845
846
847 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/isenkram">isenkram</a>.
848
849
850 </div>
851 </div>
852 <div class="padding"></div>
853
854 <p style="text-align: right;"><a href="index.rss"><img src="http://people.skolelinux.org/pere/blog/xml.gif" alt="RSS feed" width="36" height="14" /></a></p>
855 <div id="sidebar">
856
857
858
859 <h2>Archive</h2>
860 <ul>
861
862 <li>2018
863 <ul>
864
865 <li><a href="http://people.skolelinux.org/pere/blog/archive/2018/01/">January (1)</a></li>
866
867 <li><a href="http://people.skolelinux.org/pere/blog/archive/2018/02/">February (5)</a></li>
868
869 <li><a href="http://people.skolelinux.org/pere/blog/archive/2018/03/">March (5)</a></li>
870
871 <li><a href="http://people.skolelinux.org/pere/blog/archive/2018/04/">April (3)</a></li>
872
873 <li><a href="http://people.skolelinux.org/pere/blog/archive/2018/06/">June (2)</a></li>
874
875 <li><a href="http://people.skolelinux.org/pere/blog/archive/2018/07/">July (5)</a></li>
876
877 <li><a href="http://people.skolelinux.org/pere/blog/archive/2018/08/">August (3)</a></li>
878
879 <li><a href="http://people.skolelinux.org/pere/blog/archive/2018/09/">September (3)</a></li>
880
881 </ul></li>
882
883 <li>2017
884 <ul>
885
886 <li><a href="http://people.skolelinux.org/pere/blog/archive/2017/01/">January (4)</a></li>
887
888 <li><a href="http://people.skolelinux.org/pere/blog/archive/2017/02/">February (3)</a></li>
889
890 <li><a href="http://people.skolelinux.org/pere/blog/archive/2017/03/">March (5)</a></li>
891
892 <li><a href="http://people.skolelinux.org/pere/blog/archive/2017/04/">April (2)</a></li>
893
894 <li><a href="http://people.skolelinux.org/pere/blog/archive/2017/06/">June (5)</a></li>
895
896 <li><a href="http://people.skolelinux.org/pere/blog/archive/2017/07/">July (1)</a></li>
897
898 <li><a href="http://people.skolelinux.org/pere/blog/archive/2017/08/">August (1)</a></li>
899
900 <li><a href="http://people.skolelinux.org/pere/blog/archive/2017/09/">September (3)</a></li>
901
902 <li><a href="http://people.skolelinux.org/pere/blog/archive/2017/10/">October (5)</a></li>
903
904 <li><a href="http://people.skolelinux.org/pere/blog/archive/2017/11/">November (3)</a></li>
905
906 <li><a href="http://people.skolelinux.org/pere/blog/archive/2017/12/">December (4)</a></li>
907
908 </ul></li>
909
910 <li>2016
911 <ul>
912
913 <li><a href="http://people.skolelinux.org/pere/blog/archive/2016/01/">January (3)</a></li>
914
915 <li><a href="http://people.skolelinux.org/pere/blog/archive/2016/02/">February (2)</a></li>
916
917 <li><a href="http://people.skolelinux.org/pere/blog/archive/2016/03/">March (3)</a></li>
918
919 <li><a href="http://people.skolelinux.org/pere/blog/archive/2016/04/">April (8)</a></li>
920
921 <li><a href="http://people.skolelinux.org/pere/blog/archive/2016/05/">May (8)</a></li>
922
923 <li><a href="http://people.skolelinux.org/pere/blog/archive/2016/06/">June (2)</a></li>
924
925 <li><a href="http://people.skolelinux.org/pere/blog/archive/2016/07/">July (2)</a></li>
926
927 <li><a href="http://people.skolelinux.org/pere/blog/archive/2016/08/">August (5)</a></li>
928
929 <li><a href="http://people.skolelinux.org/pere/blog/archive/2016/09/">September (2)</a></li>
930
931 <li><a href="http://people.skolelinux.org/pere/blog/archive/2016/10/">October (3)</a></li>
932
933 <li><a href="http://people.skolelinux.org/pere/blog/archive/2016/11/">November (8)</a></li>
934
935 <li><a href="http://people.skolelinux.org/pere/blog/archive/2016/12/">December (5)</a></li>
936
937 </ul></li>
938
939 <li>2015
940 <ul>
941
942 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/01/">January (7)</a></li>
943
944 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/02/">February (6)</a></li>
945
946 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/03/">March (1)</a></li>
947
948 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/04/">April (4)</a></li>
949
950 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/05/">May (3)</a></li>
951
952 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/06/">June (4)</a></li>
953
954 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/07/">July (6)</a></li>
955
956 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/08/">August (2)</a></li>
957
958 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/09/">September (2)</a></li>
959
960 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/10/">October (9)</a></li>
961
962 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/11/">November (6)</a></li>
963
964 <li><a href="http://people.skolelinux.org/pere/blog/archive/2015/12/">December (3)</a></li>
965
966 </ul></li>
967
968 <li>2014
969 <ul>
970
971 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/01/">January (2)</a></li>
972
973 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/02/">February (3)</a></li>
974
975 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/03/">March (8)</a></li>
976
977 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/04/">April (7)</a></li>
978
979 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/05/">May (1)</a></li>
980
981 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/06/">June (2)</a></li>
982
983 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/07/">July (2)</a></li>
984
985 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/08/">August (2)</a></li>
986
987 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/09/">September (5)</a></li>
988
989 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/10/">October (6)</a></li>
990
991 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/11/">November (3)</a></li>
992
993 <li><a href="http://people.skolelinux.org/pere/blog/archive/2014/12/">December (5)</a></li>
994
995 </ul></li>
996
997 <li>2013
998 <ul>
999
1000 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/01/">January (11)</a></li>
1001
1002 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/02/">February (9)</a></li>
1003
1004 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/03/">March (9)</a></li>
1005
1006 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/04/">April (6)</a></li>
1007
1008 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/05/">May (9)</a></li>
1009
1010 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/06/">June (10)</a></li>
1011
1012 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/07/">July (7)</a></li>
1013
1014 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/08/">August (3)</a></li>
1015
1016 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/09/">September (5)</a></li>
1017
1018 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/10/">October (7)</a></li>
1019
1020 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/11/">November (9)</a></li>
1021
1022 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/12/">December (3)</a></li>
1023
1024 </ul></li>
1025
1026 <li>2012
1027 <ul>
1028
1029 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/01/">January (7)</a></li>
1030
1031 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/02/">February (10)</a></li>
1032
1033 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/03/">March (17)</a></li>
1034
1035 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/04/">April (12)</a></li>
1036
1037 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/05/">May (12)</a></li>
1038
1039 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/06/">June (20)</a></li>
1040
1041 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/07/">July (17)</a></li>
1042
1043 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/08/">August (6)</a></li>
1044
1045 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/09/">September (9)</a></li>
1046
1047 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/10/">October (17)</a></li>
1048
1049 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/11/">November (10)</a></li>
1050
1051 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/12/">December (7)</a></li>
1052
1053 </ul></li>
1054
1055 <li>2011
1056 <ul>
1057
1058 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/01/">January (16)</a></li>
1059
1060 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/02/">February (6)</a></li>
1061
1062 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/03/">March (6)</a></li>
1063
1064 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/04/">April (7)</a></li>
1065
1066 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/05/">May (3)</a></li>
1067
1068 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/06/">June (2)</a></li>
1069
1070 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/07/">July (7)</a></li>
1071
1072 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/08/">August (6)</a></li>
1073
1074 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/09/">September (4)</a></li>
1075
1076 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/10/">October (2)</a></li>
1077
1078 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/11/">November (3)</a></li>
1079
1080 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/12/">December (1)</a></li>
1081
1082 </ul></li>
1083
1084 <li>2010
1085 <ul>
1086
1087 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/01/">January (2)</a></li>
1088
1089 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/02/">February (1)</a></li>
1090
1091 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/03/">March (3)</a></li>
1092
1093 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/04/">April (3)</a></li>
1094
1095 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/05/">May (9)</a></li>
1096
1097 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/06/">June (14)</a></li>
1098
1099 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/07/">July (12)</a></li>
1100
1101 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/08/">August (13)</a></li>
1102
1103 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/09/">September (7)</a></li>
1104
1105 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/10/">October (9)</a></li>
1106
1107 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/11/">November (13)</a></li>
1108
1109 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/12/">December (12)</a></li>
1110
1111 </ul></li>
1112
1113 <li>2009
1114 <ul>
1115
1116 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/01/">January (8)</a></li>
1117
1118 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/02/">February (8)</a></li>
1119
1120 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/03/">March (12)</a></li>
1121
1122 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/04/">April (10)</a></li>
1123
1124 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/05/">May (9)</a></li>
1125
1126 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/06/">June (3)</a></li>
1127
1128 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/07/">July (4)</a></li>
1129
1130 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/08/">August (3)</a></li>
1131
1132 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/09/">September (1)</a></li>
1133
1134 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/10/">October (2)</a></li>
1135
1136 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/11/">November (3)</a></li>
1137
1138 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/12/">December (3)</a></li>
1139
1140 </ul></li>
1141
1142 <li>2008
1143 <ul>
1144
1145 <li><a href="http://people.skolelinux.org/pere/blog/archive/2008/11/">November (5)</a></li>
1146
1147 <li><a href="http://people.skolelinux.org/pere/blog/archive/2008/12/">December (7)</a></li>
1148
1149 </ul></li>
1150
1151 </ul>
1152
1153
1154
1155 <h2>Tags</h2>
1156 <ul>
1157
1158 <li><a href="http://people.skolelinux.org/pere/blog/tags/3d-printer">3d-printer (16)</a></li>
1159
1160 <li><a href="http://people.skolelinux.org/pere/blog/tags/amiga">amiga (1)</a></li>
1161
1162 <li><a href="http://people.skolelinux.org/pere/blog/tags/aros">aros (1)</a></li>
1163
1164 <li><a href="http://people.skolelinux.org/pere/blog/tags/bankid">bankid (4)</a></li>
1165
1166 <li><a href="http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin (10)</a></li>
1167
1168 <li><a href="http://people.skolelinux.org/pere/blog/tags/bootsystem">bootsystem (17)</a></li>
1169
1170 <li><a href="http://people.skolelinux.org/pere/blog/tags/bsa">bsa (2)</a></li>
1171
1172 <li><a href="http://people.skolelinux.org/pere/blog/tags/chrpath">chrpath (2)</a></li>
1173
1174 <li><a href="http://people.skolelinux.org/pere/blog/tags/debian">debian (162)</a></li>
1175
1176 <li><a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu (158)</a></li>
1177
1178 <li><a href="http://people.skolelinux.org/pere/blog/tags/debian-handbook">debian-handbook (4)</a></li>
1179
1180 <li><a href="http://people.skolelinux.org/pere/blog/tags/digistan">digistan (10)</a></li>
1181
1182 <li><a href="http://people.skolelinux.org/pere/blog/tags/dld">dld (17)</a></li>
1183
1184 <li><a href="http://people.skolelinux.org/pere/blog/tags/docbook">docbook (25)</a></li>
1185
1186 <li><a href="http://people.skolelinux.org/pere/blog/tags/drivstoffpriser">drivstoffpriser (4)</a></li>
1187
1188 <li><a href="http://people.skolelinux.org/pere/blog/tags/english">english (385)</a></li>
1189
1190 <li><a href="http://people.skolelinux.org/pere/blog/tags/fiksgatami">fiksgatami (23)</a></li>
1191
1192 <li><a href="http://people.skolelinux.org/pere/blog/tags/fildeling">fildeling (13)</a></li>
1193
1194 <li><a href="http://people.skolelinux.org/pere/blog/tags/freeculture">freeculture (32)</a></li>
1195
1196 <li><a href="http://people.skolelinux.org/pere/blog/tags/freedombox">freedombox (9)</a></li>
1197
1198 <li><a href="http://people.skolelinux.org/pere/blog/tags/frikanalen">frikanalen (18)</a></li>
1199
1200 <li><a href="http://people.skolelinux.org/pere/blog/tags/h264">h264 (20)</a></li>
1201
1202 <li><a href="http://people.skolelinux.org/pere/blog/tags/intervju">intervju (42)</a></li>
1203
1204 <li><a href="http://people.skolelinux.org/pere/blog/tags/isenkram">isenkram (16)</a></li>
1205
1206 <li><a href="http://people.skolelinux.org/pere/blog/tags/kart">kart (20)</a></li>
1207
1208 <li><a href="http://people.skolelinux.org/pere/blog/tags/kodi">kodi (3)</a></li>
1209
1210 <li><a href="http://people.skolelinux.org/pere/blog/tags/ldap">ldap (9)</a></li>
1211
1212 <li><a href="http://people.skolelinux.org/pere/blog/tags/lego">lego (4)</a></li>
1213
1214 <li><a href="http://people.skolelinux.org/pere/blog/tags/lenker">lenker (8)</a></li>
1215
1216 <li><a href="http://people.skolelinux.org/pere/blog/tags/lsdvd">lsdvd (2)</a></li>
1217
1218 <li><a href="http://people.skolelinux.org/pere/blog/tags/ltsp">ltsp (1)</a></li>
1219
1220 <li><a href="http://people.skolelinux.org/pere/blog/tags/mesh network">mesh network (8)</a></li>
1221
1222 <li><a href="http://people.skolelinux.org/pere/blog/tags/multimedia">multimedia (41)</a></li>
1223
1224 <li><a href="http://people.skolelinux.org/pere/blog/tags/nice free software">nice free software (10)</a></li>
1225
1226 <li><a href="http://people.skolelinux.org/pere/blog/tags/norsk">norsk (299)</a></li>
1227
1228 <li><a href="http://people.skolelinux.org/pere/blog/tags/nuug">nuug (190)</a></li>
1229
1230 <li><a href="http://people.skolelinux.org/pere/blog/tags/offentlig innsyn">offentlig innsyn (33)</a></li>
1231
1232 <li><a href="http://people.skolelinux.org/pere/blog/tags/open311">open311 (2)</a></li>
1233
1234 <li><a href="http://people.skolelinux.org/pere/blog/tags/opphavsrett">opphavsrett (72)</a></li>
1235
1236 <li><a href="http://people.skolelinux.org/pere/blog/tags/personvern">personvern (107)</a></li>
1237
1238 <li><a href="http://people.skolelinux.org/pere/blog/tags/raid">raid (2)</a></li>
1239
1240 <li><a href="http://people.skolelinux.org/pere/blog/tags/reactos">reactos (1)</a></li>
1241
1242 <li><a href="http://people.skolelinux.org/pere/blog/tags/reprap">reprap (11)</a></li>
1243
1244 <li><a href="http://people.skolelinux.org/pere/blog/tags/rfid">rfid (3)</a></li>
1245
1246 <li><a href="http://people.skolelinux.org/pere/blog/tags/robot">robot (10)</a></li>
1247
1248 <li><a href="http://people.skolelinux.org/pere/blog/tags/rss">rss (1)</a></li>
1249
1250 <li><a href="http://people.skolelinux.org/pere/blog/tags/ruter">ruter (6)</a></li>
1251
1252 <li><a href="http://people.skolelinux.org/pere/blog/tags/scraperwiki">scraperwiki (2)</a></li>
1253
1254 <li><a href="http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet (54)</a></li>
1255
1256 <li><a href="http://people.skolelinux.org/pere/blog/tags/sitesummary">sitesummary (4)</a></li>
1257
1258 <li><a href="http://people.skolelinux.org/pere/blog/tags/skepsis">skepsis (5)</a></li>
1259
1260 <li><a href="http://people.skolelinux.org/pere/blog/tags/standard">standard (55)</a></li>
1261
1262 <li><a href="http://people.skolelinux.org/pere/blog/tags/stavekontroll">stavekontroll (6)</a></li>
1263
1264 <li><a href="http://people.skolelinux.org/pere/blog/tags/stortinget">stortinget (12)</a></li>
1265
1266 <li><a href="http://people.skolelinux.org/pere/blog/tags/surveillance">surveillance (55)</a></li>
1267
1268 <li><a href="http://people.skolelinux.org/pere/blog/tags/sysadmin">sysadmin (4)</a></li>
1269
1270 <li><a href="http://people.skolelinux.org/pere/blog/tags/usenix">usenix (2)</a></li>
1271
1272 <li><a href="http://people.skolelinux.org/pere/blog/tags/valg">valg (9)</a></li>
1273
1274 <li><a href="http://people.skolelinux.org/pere/blog/tags/verkidetfri">verkidetfri (12)</a></li>
1275
1276 <li><a href="http://people.skolelinux.org/pere/blog/tags/video">video (68)</a></li>
1277
1278 <li><a href="http://people.skolelinux.org/pere/blog/tags/vitenskap">vitenskap (4)</a></li>
1279
1280 <li><a href="http://people.skolelinux.org/pere/blog/tags/web">web (41)</a></li>
1281
1282 </ul>
1283
1284
1285 </div>
1286 <p style="text-align: right">
1287 Created by <a href="http://steve.org.uk/Software/chronicle">Chronicle v4.6</a>
1288 </p>
1289
1290 </body>
1291 </html>