]> pere.pagekite.me Git - homepage.git/blob - blog/index.rss
More text.
[homepage.git] / blog / index.rss
1 <?xml version="1.0" encoding="utf-8"?>
2 <rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom="http://www.w3.org/2005/Atom">
3 <channel>
4 <title>Petter Reinholdtsen</title>
5 <description></description>
6 <link>http://people.skolelinux.org/pere/blog/</link>
7 <atom:link href="http://people.skolelinux.org/pere/blog/index.rss" rel="self" type="application/rss+xml" />
8
9 <item>
10 <title>Streaming the Linux desktop to Kodi using VLC and RTSP</title>
11 <link>http://people.skolelinux.org/pere/blog/Streaming_the_Linux_desktop_to_Kodi_using_VLC_and_RTSP.html</link>
12 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Streaming_the_Linux_desktop_to_Kodi_using_VLC_and_RTSP.html</guid>
13 <pubDate>Thu, 12 Jul 2018 02:00:00 +0200</pubDate>
14 <description>&lt;p&gt;A while back, I was asked by a friend how to stream the desktop to
15 my projector connected to Kodi. I sadly had to admit that I had no
16 idea, as it was a task I never had tried. Since then, I have been
17 looking for a way to do so, preferable without much extra software to
18 install on either side. Today I found a way that seem to kind of
19 work. Not great, but it is a start.&lt;/p&gt;
20
21 &lt;p&gt;I had a look at several approaches, for example
22 &lt;a href=&quot;https://github.com/mfoetsch/dlna_live_streaming&quot;&gt;using uPnP
23 DLNA as described in 2011&lt;/a&gt;, but it required a uPnP server, fuse and
24 local storage enough to store the stream locally. This is not going
25 to work well for me, lacking enough free space, and it would
26 impossible for my friend to get working.&lt;/p&gt;
27
28 &lt;p&gt;Next, it occurred to me that perhaps I could use VLC to create a
29 video stream that Kodi could play. Preferably using
30 broadcast/multicast, to avoid having to change any setup on the Kodi
31 side when starting such stream. Unfortunately, the only recipe I
32 could find using multicast used the rtp protocol, and this protocol
33 seem to not be supported by Kodi.&lt;/p&gt;
34
35 &lt;p&gt;On the other hand, the rtsp protocol is working! Unfortunately I
36 have to specify the IP address of the streaming machine in both the
37 sending command and the file on the Kodi server. But it is showing my
38 desktop, and thus allow us to have a shared look on the big screen at
39 the programs I work on.&lt;/p&gt;
40
41 &lt;p&gt;I did not spend much time investigating codeces. I combined the
42 rtp and rtsp recipes from
43 &lt;a href=&quot;https://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples/&quot;&gt;the
44 VLC Streaming HowTo/Command Line Examples&lt;/a&gt;, and was able to get
45 this working on the desktop/streaming end.&lt;/p&gt;
46
47 &lt;blockquote&gt;&lt;pre&gt;
48 vlc screen:// --sout \
49 &#39;#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:rtp{dst=projector.local,port=1234,sdp=rtsp://192.168.11.4:8080/test.sdp}&#39;
50 &lt;/pre&gt;&lt;/blockquote&gt;
51
52 &lt;p&gt;I ssh-ed into my Kodi box and created a file like this with the
53 same IP address:&lt;/p&gt;
54
55 &lt;blockquote&gt;&lt;pre&gt;
56 echo rtsp://192.168.11.4:8080/test.sdp \
57 &gt; /storage/videos/screenstream.m3u
58 &lt;/pre&gt;&lt;/blockquote&gt;
59
60 &lt;p&gt;Note the 192.168.11.4 IP address is my desktops IP address. As far
61 as I can tell the IP must be hardcoded for this to work. In other
62 words, if someone elses machine is going to do the steaming, you have
63 to update screenstream.m4u on the Kodi machine and adjust the vlc
64 recipe. To get started, locate the file in Kodi and select the m3u
65 file while the VLC stream is running. The desktop then show up in my
66 big screen. :)&lt;/p&gt;
67
68 &lt;p&gt;When using the same technique to stream a video file with audio,
69 the audio quality is really bad. No idea if the problem is package
70 loss or bad parameters for the transcode. I do not know VLC nor Kodi
71 enough to tell.&lt;/p&gt;
72
73 &lt;p&gt;As usual, if you use Bitcoin and want to show your support of my
74 activities, please send Bitcoin donations to my address
75 &lt;b&gt;&lt;a href=&quot;bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&quot;&gt;15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&lt;/a&gt;&lt;/b&gt;.&lt;/p&gt;
76 </description>
77 </item>
78
79 <item>
80 <title>What is the most supported MIME type in Debian in 2018?</title>
81 <link>http://people.skolelinux.org/pere/blog/What_is_the_most_supported_MIME_type_in_Debian_in_2018_.html</link>
82 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/What_is_the_most_supported_MIME_type_in_Debian_in_2018_.html</guid>
83 <pubDate>Mon, 9 Jul 2018 08:05:00 +0200</pubDate>
84 <description>&lt;p&gt;Five years ago,
85 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/What_is_the_most_supported_MIME_type_in_Debian_.html&quot;&gt;I
86 measured what the most supported MIME type in Debian was&lt;/a&gt;, by
87 analysing the desktop files in all packages in the archive. Since
88 then, the DEP-11 AppStream system has been put into production, making
89 the task a lot easier. This made me want to repeat the measurement,
90 to see how much things changed. Here are the new numbers, for
91 unstable only this time:
92
93 &lt;p&gt;&lt;strong&gt;Debian Unstable:&lt;/strong&gt;&lt;/p&gt;
94
95 &lt;pre&gt;
96 count MIME type
97 ----- -----------------------
98 56 image/jpeg
99 55 image/png
100 49 image/tiff
101 48 image/gif
102 39 image/bmp
103 38 text/plain
104 37 audio/mpeg
105 34 application/ogg
106 33 audio/x-flac
107 32 audio/x-mp3
108 30 audio/x-wav
109 30 audio/x-vorbis+ogg
110 29 image/x-portable-pixmap
111 27 inode/directory
112 27 image/x-portable-bitmap
113 27 audio/x-mpeg
114 26 application/x-ogg
115 25 audio/x-mpegurl
116 25 audio/ogg
117 24 text/html
118 &lt;/pre&gt;
119
120 &lt;p&gt;The list was created like this using a sid chroot: &quot;cat
121 /var/lib/apt/lists/*sid*_dep11_Components-amd64.yml.gz| zcat | awk &#39;/^
122 - \S+\/\S+$/ {print $2 }&#39; | sort | uniq -c | sort -nr | head -20&quot;&lt;/p&gt;
123
124 &lt;p&gt;It is interesting to see how image formats have passed text/plain
125 as the most announced supported MIME type. These days, thanks to the
126 AppStream system, if you run into a file format you do not know, and
127 want to figure out which packages support the format, you can find the
128 MIME type of the file using &quot;file --mime &amp;lt;filename&amp;gt;&quot;, and then
129 look up all packages announcing support for this format in their
130 AppStream metadata (XML or .desktop file) using &quot;appstreamcli
131 what-provides mimetype &amp;lt;mime-type&amp;gt;. For example if you, like
132 me, want to know which packages support inode/directory, you can get a
133 list like this:&lt;/p&gt;
134
135 &lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;
136 % appstreamcli what-provides mimetype inode/directory | grep Package: | sort
137 Package: anjuta
138 Package: audacious
139 Package: baobab
140 Package: cervisia
141 Package: chirp
142 Package: dolphin
143 Package: doublecmd-common
144 Package: easytag
145 Package: enlightenment
146 Package: ephoto
147 Package: filelight
148 Package: gwenview
149 Package: k4dirstat
150 Package: kaffeine
151 Package: kdesvn
152 Package: kid3
153 Package: kid3-qt
154 Package: nautilus
155 Package: nemo
156 Package: pcmanfm
157 Package: pcmanfm-qt
158 Package: qweborf
159 Package: ranger
160 Package: sirikali
161 Package: spacefm
162 Package: spacefm
163 Package: vifm
164 %
165 &lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
166
167 &lt;p&gt;Using the same method, I can quickly discover that the Sketchup file
168 format is not yet supported by any package in Debian:&lt;/p&gt;
169
170 &lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;
171 % appstreamcli what-provides mimetype application/vnd.sketchup.skp
172 Could not find component providing &#39;mimetype::application/vnd.sketchup.skp&#39;.
173 %
174 &lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
175
176 &lt;p&gt;Yesterday I used it to figure out which packages support the STL 3D
177 format:&lt;/p&gt;
178
179 &lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;
180 % appstreamcli what-provides mimetype application/sla|grep Package
181 Package: cura
182 Package: meshlab
183 Package: printrun
184 %
185 &lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
186
187 &lt;p&gt;PS: A new version of Cura was uploaded to Debian yesterday.&lt;/p&gt;
188
189 &lt;p&gt;As usual, if you use Bitcoin and want to show your support of my
190 activities, please send Bitcoin donations to my address
191 &lt;b&gt;&lt;a href=&quot;bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&quot;&gt;15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&lt;/a&gt;&lt;/b&gt;.&lt;/p&gt;
192 </description>
193 </item>
194
195 <item>
196 <title>Debian APT upgrade without enough free space on the disk...</title>
197 <link>http://people.skolelinux.org/pere/blog/Debian_APT_upgrade_without_enough_free_space_on_the_disk___.html</link>
198 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Debian_APT_upgrade_without_enough_free_space_on_the_disk___.html</guid>
199 <pubDate>Sun, 8 Jul 2018 12:10:00 +0200</pubDate>
200 <description>&lt;p&gt;Quite regularly, I let my Debian Sid/Unstable chroot stay untouch
201 for a while, and when I need to update it there is not enough free
202 space on the disk for apt to do a normal &#39;apt upgrade&#39;. I normally
203 would resolve the issue by doing &#39;apt install &amp;lt;somepackages&amp;gt;&#39; to
204 upgrade only some of the packages in one batch, until the amount of
205 packages to download fall below the amount of free space available.
206 Today, I had about 500 packages to upgrade, and after a while I got
207 tired of trying to install chunks of packages manually. I concluded
208 that I did not have the spare hours required to complete the task, and
209 decided to see if I could automate it. I came up with this small
210 script which I call &#39;apt-in-chunks&#39;:&lt;/p&gt;
211
212 &lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;
213 #!/bin/sh
214 #
215 # Upgrade packages when the disk is too full to upgrade every
216 # upgradable package in one lump. Fetching packages to upgrade using
217 # apt, and then installing using dpkg, to avoid changing the package
218 # flag for manual/automatic.
219
220 set -e
221
222 ignore() {
223 if [ &quot;$1&quot; ]; then
224 grep -v &quot;$1&quot;
225 else
226 cat
227 fi
228 }
229
230 for p in $(apt list --upgradable | ignore &quot;$@&quot; |cut -d/ -f1 | grep -v &#39;^Listing...&#39;); do
231 echo &quot;Upgrading $p&quot;
232 apt clean
233 apt install --download-only -y $p
234 for f in /var/cache/apt/archives/*.deb; do
235 if [ -e &quot;$f&quot; ]; then
236 dpkg -i /var/cache/apt/archives/*.deb
237 break
238 fi
239 done
240 done
241 &lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
242
243 &lt;p&gt;The script will extract the list of packages to upgrade, try to
244 download the packages needed to upgrade one package, install the
245 downloaded packages using dpkg. The idea is to upgrade packages
246 without changing the APT mark for the package (ie the one recording of
247 the package was manually requested or pulled in as a dependency). To
248 use it, simply run it as root from the command line. If it fail, try
249 &#39;apt install -f&#39; to clean up the mess and run the script again. This
250 might happen if the new packages conflict with one of the old
251 packages. dpkg is unable to remove, while apt can do this.&lt;/p&gt;
252
253 &lt;p&gt;It take one option, a package to ignore in the list of packages to
254 upgrade. The option to ignore a package is there to be able to skip
255 the packages that are simply too large to unpack. Today this was
256 &#39;ghc&#39;, but I have run into other large packages causing similar
257 problems earlier (like TeX).&lt;/p&gt;
258
259 &lt;p&gt;Update 2018-07-08: Thanks to Paul Wise, I am aware of two
260 alternative ways to handle this. The &quot;unattended-upgrades
261 --minimal-upgrade-steps&quot; option will try to calculate upgrade sets for
262 each package to upgrade, and then upgrade them in order, smallest set
263 first. It might be a better option than my above mentioned script.
264 Also, &quot;aptutude upgrade&quot; can upgrade single packages, thus avoiding
265 the need for using &quot;dpkg -i&quot; in the script above.&lt;/p&gt;
266
267 &lt;p&gt;As usual, if you use Bitcoin and want to show your support of my
268 activities, please send Bitcoin donations to my address
269 &lt;b&gt;&lt;a href=&quot;bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&quot;&gt;15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&lt;/a&gt;&lt;/b&gt;.&lt;/p&gt;
270 </description>
271 </item>
272
273 <item>
274 <title>The worlds only stone power plant?</title>
275 <link>http://people.skolelinux.org/pere/blog/The_worlds_only_stone_power_plant_.html</link>
276 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/The_worlds_only_stone_power_plant_.html</guid>
277 <pubDate>Sat, 30 Jun 2018 10:35:00 +0200</pubDate>
278 <description>&lt;p&gt;So far, at least hydro-electric power, coal power, wind power,
279 solar power, and wood power are well known. Until a few days ago, I
280 had never heard of stone power. Then I learn about a quarry in a
281 mountain in
282 &lt;a href=&quot;https://en.wikipedia.org/wiki/Bremanger&quot;&gt;Bremanger&lt;/a&gt; i
283 Norway, where
284 &lt;a href=&quot;https://www.bontrup.com/en/activities/raw-materials/bremanger-quarry/&quot;&gt;the
285 Bremanger Quarry&lt;/a&gt; company is extracting stone and dumping the stone
286 into a shaft leading to its shipping harbour. This downward movement
287 in this shaft is used to produce electricity. In short, it is using
288 falling rocks instead of falling water to produce electricity, and
289 according to its own statements it is producing more power than it is
290 using, and selling the surplus electricity to the Norwegian power
291 grid. I find the concept truly amazing. Is this the worlds only
292 stone power plant?&lt;/p&gt;
293
294 &lt;p&gt;As usual, if you use Bitcoin and want to show your support of my
295 activities, please send Bitcoin donations to my address
296 &lt;b&gt;&lt;a href=&quot;bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&quot;&gt;15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&lt;/a&gt;&lt;/b&gt;.&lt;/p&gt;
297 </description>
298 </item>
299
300 <item>
301 <title>Add-on to control the projector from within Kodi</title>
302 <link>http://people.skolelinux.org/pere/blog/Add_on_to_control_the_projector_from_within_Kodi.html</link>
303 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Add_on_to_control_the_projector_from_within_Kodi.html</guid>
304 <pubDate>Tue, 26 Jun 2018 23:55:00 +0200</pubDate>
305 <description>&lt;p&gt;My movie playing setup involve &lt;a href=&quot;https://kodi.tv/&quot;&gt;Kodi&lt;/a&gt;,
306 &lt;a href=&quot;https://openelec.tv&quot;&gt;OpenELEC&lt;/a&gt; (probably soon to be
307 replaced with &lt;a href=&quot;https://libreelec.tv/&quot;&gt;LibreELEC&lt;/a&gt;) and an
308 Infocus IN76 video projector. My projector can be controlled via both
309 a infrared remote controller, and a RS-232 serial line. The vendor of
310 my projector, &lt;a href=&quot;https://www.infocus.com/&quot;&gt;InFocus&lt;/a&gt;, had been
311 sensible enough to document the serial protocol in its user manual, so
312 it is easily available, and I used it some years ago to write
313 &lt;a href=&quot;https://github.com/petterreinholdtsen/infocus-projector-control&quot;&gt;a
314 small script to control the projector&lt;/a&gt;. For a while now, I longed
315 for a setup where the projector was controlled by Kodi, for example in
316 such a way that when the screen saver went on, the projector was
317 turned off, and when the screen saver exited, the projector was turned
318 on again.&lt;/p&gt;
319
320 &lt;p&gt;A few days ago, with very good help from parts of my family, I
321 managed to find a Kodi Add-on for controlling a Epson projector, and
322 got in touch with its author to see if we could join forces and make a
323 Add-on with support for several projectors. To my pleasure, he was
324 positive to the idea, and we set out to add InFocus support to his
325 add-on, and make the add-on suitable for the official Kodi add-on
326 repository.&lt;/p&gt;
327
328 &lt;p&gt;The Add-on is now working (for me, at least), with a few minor
329 adjustments. The most important change I do relative to the master
330 branch in the github repository is embedding the
331 &lt;a href=&quot;https://github.com/pyserial/pyserial&quot;&gt;pyserial module&lt;/a&gt; in
332 the add-on. The long term solution is to make a &quot;script&quot; type
333 pyserial module for Kodi, that can be pulled in as a dependency in
334 Kodi. But until that in place, I embed it.&lt;/p&gt;
335
336 &lt;p&gt;The add-on can be configured to turn on the projector when Kodi
337 starts, off when Kodi stops as well as turn the projector off when the
338 screensaver start and on when the screesaver stops. It can also be
339 told to set the projector source when turning on the projector.
340
341 &lt;p&gt;If this sound interesting to you, check out
342 &lt;a href=&quot;https://github.com/fredrik-eriksson/kodi_projcontrol&quot;&gt;the
343 project github repository&lt;/a&gt;. Perhaps you can send patches to
344 support your projector too? As soon as we find time to wrap up the
345 latest changes, it should be available for easy installation using any
346 Kodi instance.&lt;/p&gt;
347
348 &lt;p&gt;For future improvements, I would like to add projector model
349 detection and the ability to adjust the brightness level of the
350 projector from within Kodi. We also need to figure out how to handle
351 the cooling period of the projector. My projector refuses to turn on
352 for 60 seconds after it was turned off. This is not handled well by
353 the add-on at the moment.&lt;/p&gt;
354
355 &lt;p&gt;As usual, if you use Bitcoin and want to show your support of my
356 activities, please send Bitcoin donations to my address
357 &lt;b&gt;&lt;a href=&quot;bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&quot;&gt;15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&lt;/a&gt;&lt;/b&gt;.&lt;/p&gt;
358 </description>
359 </item>
360
361 <item>
362 <title>youtube-dl for nedlasting fra NRK med undertekster - nice free software</title>
363 <link>http://people.skolelinux.org/pere/blog/youtube_dl_for_nedlasting_fra_NRK_med_undertekster___nice_free_software.html</link>
364 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/youtube_dl_for_nedlasting_fra_NRK_med_undertekster___nice_free_software.html</guid>
365 <pubDate>Sat, 28 Apr 2018 10:30:00 +0200</pubDate>
366 <description>&lt;p&gt;I &lt;a href=&quot;https://no.wikipedia.org/wiki/VHS&quot;&gt;VHS-kassettenes&lt;/a&gt;
367 tid var det rett frem å ta vare på et TV-program en ønsket å kunne se
368 senere, uten å være avhengig av at programmet ble sendt på nytt.
369 Kanskje ønsket en å se programmet på hytten der det ikke var
370 TV-signal, eller av andre grunner ha det tilgjengelig for fremtidig
371 fornøyelse. Dette er blitt vanskeligere med introduksjon av
372 digital-TV og webstreaming, der opptak til harddisk er utenfor de
373 flestes kontroll hvis de bruker ufri programvare og bokser kontrollert
374 av andre. Men for NRK her i Norge, finnes det heldigvis flere fri
375 programvare-alternativer, som jeg har
376 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Hvordan_enkelt_laste_ned_filmer_fra_NRK.html&quot;&gt;skrevet&lt;/a&gt;
377 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Hvordan_enkelt_laste_ned_filmer_fra_NRK_med_den__nye__l_sningen.html&quot;&gt;om&lt;/a&gt;
378 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Nedlasting_fra_NRK__som_Matroska_med_undertekster.html&quot;&gt;før&lt;/a&gt;.
379 Så lenge kilden for nedlastingen er lovlig lagt ut på nett (hvilket
380 jeg antar NRK gjør), så er slik lagring til privat bruk også lovlig i
381 Norge.&lt;/p&gt;
382
383 &lt;p&gt;Sist jeg så på saken, i 2016, nevnte jeg at
384 &lt;a href=&quot;https://rg3.github.com/youtube-dl/&quot;&gt;youtube-dl&lt;/a&gt; ikke kunne
385 bake undertekster fra NRK inn i videofilene, og at jeg derfor
386 foretrakk andre alternativer. Nylig oppdaget jeg at dette har endret
387 seg. Fordelen med youtube-dl er at den er tilgjengelig direkte fra
388 Linux-distribusjoner som &lt;a href=&quot;https://www.debian.org/&quot;&gt;Debian&lt;/a&gt;
389 og &lt;a href=&quot;https://www.ubuntu.com/&quot;&gt;Ubuntu&lt;/a&gt;, slik at en slipper å
390 finne ut selv hvordan en skal få dem til å virke.&lt;/p&gt;
391
392 &lt;p&gt;For å laste ned et NRK-innslag med undertekster, og få den norske
393 underteksten pakket inn i videofilen, så kan følgende kommando
394 brukes:&lt;/p&gt;
395
396 &lt;p&gt;&lt;pre&gt;
397 youtube-dl --write-sub --sub-format ttml \
398 --convert-subtitles srt --embed-subs \
399 https://tv.nrk.no/serie/ramm-ferdig-gaa/MUHU11000316/27-04-2018
400 &lt;/pre&gt;&lt;/p&gt;
401
402 &lt;p&gt;URL-eksemplet er dagens toppsak på tv.nrk.no. Resultatet er en
403 MP4-fil med filmen og undertekster som kan spilles av med VLC. Merk
404 at VLC ikke viser frem undertekster før du aktiverer dem. For å gjøre
405 det, høyreklikk med musa i fremviservinduet, velg menyvalget for
406 undertekst og så norsk språk. Jeg testet også &#39;--write-auto-sub&#39;,
407 men det kommandolinjeargumentet ser ikke ut til å fungere, så jeg
408 endte opp med settet med argumentlisten over, som jeg fant i en
409 feilrapport i youtube-dl-prosjektets samling over feilrapporter.&lt;/p&gt;
410
411 &lt;p&gt;Denne støtten i youtube-dl gjør det svært enkelt å lagre
412 NRK-innslag, det være seg nyheter, filmer, serier eller dokumentater,
413 for å ha dem tilgjengelig for fremtidig referanse og bruk, uavhengig
414 av hvor lenge innslagene ligger tilgjengelig hos NRK. Så får det ikke
415 hjelpe at NRKs jurister mener at det er
416 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Best___ikke_fortelle_noen_at_streaming_er_nedlasting___.html&quot;&gt;vesensforskjellig
417 å legge tilgjengelig for nedlasting og for streaming&lt;/a&gt;, når det rent
418 teknisk er samme sak.&lt;/p&gt;
419
420 &lt;p&gt;Programmet youtube-dl støtter også en rekke andre nettsteder, se
421 prosjektoversikten for
422 &lt;a href=&quot;http://rg3.github.io/youtube-dl/supportedsites.html&quot;&gt;en
423 komplett liste&lt;/a&gt;.&lt;/p&gt;
424 </description>
425 </item>
426
427 <item>
428 <title>Stortingsflertallet går inn for ny IP-basert sensurinfrastruktur i Norge</title>
429 <link>http://people.skolelinux.org/pere/blog/Stortingsflertallet_g_r_inn_for_ny_IP_basert_sensurinfrastruktur_i_Norge.html</link>
430 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Stortingsflertallet_g_r_inn_for_ny_IP_basert_sensurinfrastruktur_i_Norge.html</guid>
431 <pubDate>Tue, 24 Apr 2018 15:00:00 +0200</pubDate>
432 <description>&lt;p&gt;&lt;a href=&quot;https://www.vg.no/sport/i/J1g8zj/stortingsvedtak-snart-ip-blokkerer-utenlandske-spillselskaper&quot;&gt;VG&lt;/a&gt;,
433 &lt;a href=&quot;https://www.dagbladet.no/nyheter/stortinget-blokkerer-utenlandske-spillselskaper/69740219&quot;&gt;Dagbladet&lt;/a&gt;
434 og
435 &lt;a href=&quot;https://www.nrk.no/ostfold/tar-opp-kampen-mot-utenlandske-spillselskap-1.14021381&quot;&gt;NRK&lt;/a&gt;
436 melder i dag at flertallet i Familie- og kulturkomiteen på Stortinget
437 har bestemt seg for å introdusere en ny sensurinfrastruktur i Norge.
438 Fra før har Norge en «frivillig» sensurinfrastruktur basert på
439 DNS-navn, der de største ISP-ene basert på en liste med DNS-navn
440 forgifter DNS-svar og omdirigerer til et annet IP-nummer enn det som
441 ligger i DNS. Nå kommer altså IP-basert omdirigering i tillegg. Når
442 infrastrukturen er på plass, er sensur av IP-adresser redusert et
443 spørsmål om hvilke IP-nummer som skal blokkeres. Listen over
444 IP-adresser vil naturligvis endre seg etter hvert som myndighetene
445 endrer seg. Det er ingen betryggende tanke.&lt;/p&gt;
446 </description>
447 </item>
448
449 <item>
450 <title>En grunn til å takke nei til usikker digital post</title>
451 <link>http://people.skolelinux.org/pere/blog/En_grunn_til___takke_nei_til_usikker_digital_post.html</link>
452 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/En_grunn_til___takke_nei_til_usikker_digital_post.html</guid>
453 <pubDate>Mon, 2 Apr 2018 13:30:00 +0200</pubDate>
454 <description>&lt;p&gt;Brevpost er beskyttet av straffelovens bestemmelse som gjør det
455 kriminelt å åpne andres brev. Dette følger av (ny) straffelovs
456 &lt;a href=&quot;https://lovdata.no/dokument/NL/lov/2005-05-20-28205&quot;&gt;§ 205
457 (Krenkelse av retten til privat kommunikasjon)&lt;/a&gt;, som sier at «Med
458 bot eller fengsel inntil 2 år straffes den som uberettiget ... c)
459 åpner brev eller annen lukket skriftlig meddelelse som er adressert
460 til en annen, eller på annen måte skaffer seg uberettiget tilgang til
461 innholdet.» Dette gjelder såvel postbud som alle andre som har
462 befatning med brevet etter at avsender har befatning med et lukket
463 brev. Tilsvarende står også tidligere utgaver av den norske
464 straffeloven.&lt;/p&gt;
465
466 &lt;p&gt;Når en registrerer seg på usikre digitale postkasseløsningene, som
467 f.eks. Digipost og e-Boks, og slik tar disse i bruk, så gir en de som
468 står bak løsningene tillatelse til å åpne sine brev. Dette er
469 nødvendig for at innholdet i digital post skal kunne vises frem til
470 mottaker via tjenestens websider. Dermed gjelder ikke straffelovens
471 paragraf om forbud mot å åpne brev, da tilgangen ikke lenger er
472 uberettiget. En gir altså fremmede tilgang til å lese sin
473 korrespondanse. I tillegg vil bruk av slike usikre digitale
474 postbokser føre til at det blir registrert når du leser brevene, hvor
475 du befinner deg (vha. tilkoblingens IP-adresse), hvilket utstyr du
476 bruker og en rekke annen personlig informasjon som ikke er
477 tilgjengelig når papirpost brukes. Jeg foretrekker at det er
478 lovmessig beskyttelse av min korrespondanse, som jo inneholder privat
479 og personlig informasjon. Det bidrar til litt bedre vern av personlig
480 integritet i dagens norske samfunn.&lt;/p&gt;
481 </description>
482 </item>
483
484 <item>
485 <title>Self-appointed leaders of the Free World</title>
486 <link>http://people.skolelinux.org/pere/blog/Self_appointed_leaders_of_the_Free_World.html</link>
487 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Self_appointed_leaders_of_the_Free_World.html</guid>
488 <pubDate>Thu, 22 Mar 2018 11:00:00 +0100</pubDate>
489 <description>&lt;p&gt;The leaders of the worlds have started to congratulate the
490 re-elected Russian head of state, and this causes some criticism. I
491 am though a little fascinated by a comment from USA senator John McCain,
492 &lt;a href=&quot;http://thehill.com/homenews/senate/379339-mccain-rips-trumps-congratulatory-call-to-putin-as-insult-to-russian-people&quot;&gt;sited
493 by The Hill and others&lt;/a&gt;:
494
495 &lt;p&gt;&lt;blockquote&gt;
496 &lt;p&gt;&quot;An American president does not lead the Free World by
497 congratulating dictators on winning sham elections.&quot;&lt;/p&gt;
498 &lt;/blockquote&gt;&lt;/p&gt;
499
500 &lt;p&gt;While I totally agree with the senator here, the way the quote is
501 phrased make me suspect that he is unaware of the simple fact that USA
502 have not lead the Free World since at least before its government
503 &lt;a href=&quot;https://en.wikipedia.org/wiki/Maher_Arar&quot;&gt;kidnapped a
504 completely innocent Canadian citizen in transit on his way home to
505 Canada via John F. Kennedy International Airport in September 2002 and
506 sent him to be tortured in Syria for a year&lt;/a&gt;.&lt;/p&gt;
507
508 &lt;p&gt;USA might be running ahead, but the path they are taking is not the
509 one taken by any Free World.&lt;/p&gt;
510 </description>
511 </item>
512
513 <item>
514 <title>Facebooks ability to sell your personal information is the real Cambridge Analytica scandal</title>
515 <link>http://people.skolelinux.org/pere/blog/Facebooks_ability_to_sell_your_personal_information_is_the_real_Cambridge_Analytica_scandal.html</link>
516 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Facebooks_ability_to_sell_your_personal_information_is_the_real_Cambridge_Analytica_scandal.html</guid>
517 <pubDate>Wed, 21 Mar 2018 16:30:00 +0100</pubDate>
518 <description>&lt;p&gt;So, Cambridge Analytica is getting some well deserved criticism for
519 (mis)using information it got from Facebook about 50 million people,
520 mostly in the USA. What I find a bit surprising, is how little
521 criticism Facebook is getting for handing the information over to
522 Cambridge Analytica and others in the first place. And what about the
523 people handing their private and personal information to Facebook?
524 And last, but not least, what about the government offices who are
525 handing information about the visitors of their web pages to Facebook?
526 No-one who looked at the terms of use of Facebook should be surprised
527 that information about peoples interests, political views, personal
528 lifes and whereabouts would be sold by Facebook.&lt;/p&gt;
529
530 &lt;p&gt;What I find to be the real scandal is the fact that Facebook is
531 selling your personal information, not that one of the buyers used it
532 in a way Facebook did not approve when exposed. It is well known that
533 Facebook is selling out their users privacy, but a scandal
534 nevertheless. Of course the information provided to them by Facebook
535 would be misused by one of the parties given access to personal
536 information about the millions of Facebook users. Collected
537 information will be misused sooner or later. The only way to avoid
538 such misuse, is to not collect the information in the first place. If
539 you do not want Facebook to hand out information about yourself for
540 the use and misuse of its customers, do not give Facebook the
541 information.&lt;/p&gt;
542
543 &lt;p&gt;Personally, I would recommend to completely remove your Facebook
544 account, and take back some control of your personal information.
545 &lt;a href=&quot;https://www.theguardian.com/technology/2018/mar/19/how-to-protect-your-facebook-privacy-or-delete-yourself-completely&quot;&gt;According
546 to The Guardian&lt;/a&gt;, it is a bit hard to find out how to request
547 account removal (and not just &#39;disabling&#39;). You need to
548 &lt;a href=&quot;https://www.facebook.com/help/224562897555674?helpref=faq_content&quot;&gt;visit
549 a specific Facebook page&lt;/a&gt; and click on &#39;let us know&#39; on that page
550 to get to &lt;a href=&quot;https://www.facebook.com/help/delete_account&quot;&gt;the
551 real account deletion screen&lt;/a&gt;. Perhaps something to consider? I
552 would not trust the information to really be deleted (who knows,
553 perhaps NSA, GCHQ and FRA already got a copy), but it might reduce the
554 exposure a bit.&lt;/p&gt;
555
556 &lt;p&gt;If you want to learn more about the capabilities of Cambridge
557 Analytica, I recommend to see the video recording of the one hour talk
558 Paul-Olivier Dehaye gave to &lt;a href=&quot;&quot;&gt;NUUG&lt;/a&gt; last april about
559 &lt;a href=&quot;https://www.nuug.no/aktiviteter/20170404-big-data-psychometric/&quot;&gt;
560 Data collection, psychometric profiling and their impact on
561 politics&lt;/a&gt;.&lt;/p&gt;
562
563 &lt;p&gt;And if you want to communicate with your friends and loved ones,
564 use some end-to-end encrypted method like
565 &lt;a href=&quot;https://www.signal.org/&quot;&gt;Signal&lt;/a&gt; or
566 &lt;a href=&quot;https://ring.cx/&quot;&gt;Ring&lt;/a&gt;, and stop sharing your private
567 messages with strangers like Facebook and Google.&lt;/p&gt;
568 </description>
569 </item>
570
571 </channel>
572 </rss>