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