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">
4 <title>Petter Reinholdtsen
</title>
5 <description></description>
6 <link>https://people.skolelinux.org/pere/blog/
</link>
7 <atom:link href=
"https://people.skolelinux.org/pere/blog/index.rss" rel=
"self" type=
"application/rss+xml" />
10 <title>«Virkninger av angrefristloven», hovedfagsoppgaven som fikk endret en lov
</title>
11 <link>https://people.skolelinux.org/pere/blog/_Virkninger_av_angrefristloven___hovedfagsoppgaven_som_fikk_endret_en_lov.html
</link>
12 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/_Virkninger_av_angrefristloven___hovedfagsoppgaven_som_fikk_endret_en_lov.html
</guid>
13 <pubDate>Sun,
29 Oct
2023 22:
00:
00 +
0100</pubDate>
14 <description><img src=
"http://people.skolelinux.org/pere/blog/images/
2023-angrefristloven-nb.svg
" width=
"20%
" align=
"center
"></a
>
16 <p
>1979 leverte Ole-Erik Yrvin en hovedfagsoppgave for Cand. Scient
17 ved Institutt for sosiologi på Universitetet i Oslo på oppdrag fra
18 Forbruker- og administrasjonsdepartementet. Oppgaven evaluerte
19 Angrefristloven fra
1972, og det han oppdaget førte til at loven ble
20 endret fire år senere.
</p
>
22 <p
>Jeg har kjent Ole-Erik en stund, og synes det var trist at hans
23 oppgave ikke lenger er tilgjengelig, hverken fra oppdragsgiver
24 eller fra universitetet. Hans forsøk på å få den avbildet og lagt
25 ut på Internett har vist seg fånyttes, så derfor tilbød jeg meg for
26 en stund tilbake å publisere den og gjøre den tilgjengelig med
27 fribruksvilkår på Internett. Det er nå klart, og hovedfagsoppgaven
28 er tilgjengelig blant annet via
<a
29 href=
"http://www.hungry.com/~pere/publisher/
">min liste over
30 publiserte bøker
</a
>, både som nettside,
31 <a href=
"https://www.lulu.com/search?contributor=Ole-Erik+Yrvin
">digital
32 bok i ePub-format og på papir fra lulu.com
</a
>. Jeg regner med at
33 den også vil dukke opp på nettbokhandlere i løpet av en måned eller
36 <p
>Alle tabeller og figurer er gjenskapt for bedre lesbarhet, noen
37 skrivefeil rettet opp og mange referanser har fått flere detaljer
38 som ISBN-nummer og DOI-referanse. Selv om jeg ikke regner med at
39 dette blir en kioskvelter, så håper jeg denne nye utgaven kan komme
40 fremtiden til gled.
</p
>
42 <p
>Som vanlig, hvis du bruker Bitcoin og ønsker å vise din støtte til
43 det jeg driver med, setter jeg pris på om du sender Bitcoin-donasjoner
45 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>. Merk,
46 betaling med bitcoin er ikke anonymt. :)
</p
>
51 <title>«underordnet tjenestemann blir inhabil fordi en overordnet er inhabil».
</title>
52 <link>https://people.skolelinux.org/pere/blog/_underordnet_tjenestemann_blir_inhabil_fordi_en_overordnet_er_inhabil__.html
</link>
53 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/_underordnet_tjenestemann_blir_inhabil_fordi_en_overordnet_er_inhabil__.html
</guid>
54 <pubDate>Thu,
7 Sep
2023 09:
10:
00 +
0200</pubDate>
55 <description><p
>Medlemmene av Norges regjering har demonstert de siste månedene at
56 habilitetsvureringer ikke er deres sterke side og det gjelder både
57 Arbeiderpartiets og Senterpartiers representater. Det er heldigvis
58 enklere i det private, da inhabilitetsreglene kun gjelder de som
59 jobber for folket, ikke seg selv. Sist ut er utenriksminister
60 Huitfeldt. I går kom nyheten om at
61 <a href=
"https://www.nrk.no/nyheter/riksadvokaten_-okokrim-nestsjef-kan-behandle-huitfeldt-saken-
1.16545162">Riksadvokaten
62 har konkludert med at nestsjefen i Økokrim kan behandle sak om
63 habilitet og innsidekunnskap
</a
> for Huitfeldt, på tross av at hans
64 overordnede, sjefen for Økokrim, har meldt seg inhabil i saken. Dette
65 er litt rart. I veilednigen
66 «
<a href=
"https://www.regjeringen.no/globalassets/upload/krd/vedlegg/komm/veiledere/habilitet_i_kommuner_og_fylkeskommuner.pdf
">Habilitet
67 i kommuner og fylkeskommuner
</a
>» av Kommunal- og regionaldepartementet
68 forteller de hva som gjelder, riktig nok gjelder veiledningen ikke for
69 Økokrim som jo ikke er kommune eller fylkeskommune, men jeg får ikke
70 inntrykk av at dette er regler som kun gjelder for kommune og
74 <p
>«
<strong
>2.1 Oversikt over inhabilitetsgrunnlagene
</strong
>
76 <p
>De alminnelige reglene om inhabilitet for den offentlige
77 forvaltningen er gitt i
78 <a href=
"https://lovdata.no/dokument/NL/lov/
1967-
02-
10/KAPITTEL_2#KAPITTEL_2
">forvaltningsloven
79 §§
6 til
10</a
>. Forvaltningslovens hovedregel om inhabilitet framgår
80 av §
6. Her er det gitt tre ulike grunnlag som kan føre til at en
81 tjenestemann eller folkevalgt blir inhabil. I §
6 første ledd
82 bokstavene a til e er det oppstilt konkrete tilknytningsforhold mellom
83 tjenestemannen og saken eller sakens parter som automatisk fører til
84 inhabilitet. Annet ledd oppstiller en skjønnsmessig regel om at
85 tjenestemannen også kan bli inhabil etter en konkret vurdering av
86 inhabilitetsspørsmålet, der en lang rekke momenter kan være
87 relevante. I tredje ledd er det regler om såkalt avledet
88 inhabilitet. Det vil si at en underordnet tjenestemann blir inhabil
89 fordi en overordnet er inhabil.»
</p
>
92 <p
>Loven sier ganske enkelt «Er den overordnede tjenestemann ugild,
93 kan avgjørelse i saken heller ikke treffes av en direkte underordnet
94 tjenestemann i samme forvaltningsorgan.» Jeg antar tanken er at en
95 underordnet vil stå i fare for å tilpasse sine konklusjoner til det
96 overordnet vil ha fordel av, for å fortsatt ha et godt forhold til sin
97 overordnede. Men jeg er ikke jurist og forstår nok ikke kompliserte
98 juridiske vurderinger. For å sitere «Kamerat Napoleon» av George
99 Orwell: «Alle dyr er like, men noen dyr er likere enn andre».
104 <title>Invidious add-on for Kodi
20</title>
105 <link>https://people.skolelinux.org/pere/blog/Invidious_add_on_for_Kodi_20.html
</link>
106 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/Invidious_add_on_for_Kodi_20.html
</guid>
107 <pubDate>Thu,
10 Aug
2023 19:
50:
00 +
0200</pubDate>
108 <description><p
>I still enjoy
<a href=
"https://kodi.tv/
">Kodi
</a
> and
109 <a href=
"https://libreelec.tv/
">LibreELEC
</a
> as my multimedia center
110 at home. Sadly two of the services I really would like to use from
111 within Kodi are not easily available. The most wanted add-on would be
112 one making
<a href=
"https://archive.org/
">The Internet Archive
</a
>
113 available, and it has
114 <a href=
"https://kodi.wiki/view/Add-on:Internet_Archive
">not been
115 working
</a
> for many years. The second most wanted add-on is one
116 using
<a href=
"https://invidious.io/
">the Invidious privacy enhanced
117 Youtube frontent
</a
>. A plugin for this has been partly working, but
118 not been kept up to date in the Kodi add-on repository, and its
119 upstream seem to have given it up in April this year, when the git
120 repository was closed. A few days ago I got tired of this sad state
121 of affairs and decided to
122 <a href=
"https://github.com/petterreinholdtsen/kodi-invidious-plugin
">have
123 a go at improving the Invidious add-on
</a
>. As
124 <a href=
"https://github.com/iv-org/invidious/issues/
3872">Google has
125 already attacked
</a
> the Invidious concept, so it need all the support
126 if can get. My small contribution here is to improve the service
127 status on Kodi.
</p
>
129 <p
>I added support to the Invidious add-on for automatically picking a
130 working Invidious instance, instead of requiring the user to specify
131 the URL to a specific instance after installation. I also had a look
132 at the set of patches floating around in the various forks on github,
133 and decided to clean up at least some of the features I liked and
134 integrate them into my new release branch. Now the plugin can handle
135 channel and short video items in search results. Earlier it could
136 only handle single video instances in the search response. I also
137 brushed up the set of metadata displayed a bit, but hope I can figure
138 out how to get more relevant metadata displayed.
</p
>
140 <p
>Because I only use Kodi
20 myself, I only test on version
20 and am
141 only motivated to ensure version
20 is working. Because of API changes
142 between version
19 and
20, I suspect it will fail with earlier Kodi
146 <a href=
"https://github.com/xbmc/repo-plugins/pull/
4363">asked to have
147 the add-on added
</a
> to the official Kodi
20 repository, and is
148 waiting to heard back from the repo maintainers.
</p
>
150 <p
>As usual, if you use Bitcoin and want to show your support of my
151 activities, please send Bitcoin donations to my address
152 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
157 <title>What did I learn from OpenSnitch this summer?
</title>
158 <link>https://people.skolelinux.org/pere/blog/What_did_I_learn_from_OpenSnitch_this_summer_.html
</link>
159 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/What_did_I_learn_from_OpenSnitch_this_summer_.html
</guid>
160 <pubDate>Sun,
11 Jun
2023 08:
30:
00 +
0200</pubDate>
161 <description><p
>With yesterdays
162 <a href=
"https://www.debian.org/News/
2023/
20230610">release of Debian
163 12 Bookworm
</a
>, I am happy to know the
164 <a href=
"https://tracker.debian.org/pkg/opensnitch
">the interactive
165 application firewall OpenSnitch
</a
> is available for a wider audience.
166 I have been running it for a few weeks now, and have been surprised
167 about some of the programs connecting to the Internet. Some programs
168 are obviously calling out from my machine, like the NTP network based
169 clock adjusting system and Tor to reach other Tor clients, but others
170 were more dubious. For example, the KDE Window manager try to look up
171 the host name in DNS, for no apparent reason, but if this lookup is
172 blocked the KDE desktop get periodically stuck when I use it. Another
173 surprise was how much Firefox call home directly to mozilla.com,
174 mozilla.net and googleapis.com, to mention a few, when I visit other
175 web pages. This direct connection happen even if I told Firefox to
176 always use a proxy, and the proxy setting is ignored for this traffic.
177 Other surprising connections come from audacity and dirmngr (I do not
178 use Gnome). It took some trial and error to get a good default set of
179 permissions. Without it, I would get popups asking for permissions at
180 any time, also the most inconvenient ones where I am in the middle of
181 a time sensitive gaming session.
</p
>
183 <p
>I suspect some application developers should rethink when then need
184 to use network connections or DNS lookups, and recommend testing
185 OpenSnitch (only
<tt
>apt install opensnitch
</tt
> away in Debian
186 Bookworm) to locate and report any surprising Internet connections on
187 your desktop machine.
</p
>
189 <p
>At the moment the upstream developer and Debian package maintainer
190 is working on making the system more reliable in Debian, by enabling
191 the eBPF kernel module to track processes and connections instead of
192 depending in content in /proc/. This should enter unstable fairly
195 <p
>As usual, if you use Bitcoin and want to show your support of my
196 activities, please send Bitcoin donations to my address
197 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
199 <p
><strong
>Update
2023-
06-
12</strong
>: I got a tip about
200 <a href=
"https://wiki.debian.org/PrivacyIssues
">a list of privacy
201 issues in Free Software
</a
> and the
202 <a href=
"irc://irc.debian.org/%
23debian-privacy
">#debian-privacy IRC
203 channel
</a
> discussing these topics.
</p
>
209 <title>wmbusmeters, parse data from your utility meter - nice free software
</title>
210 <link>https://people.skolelinux.org/pere/blog/wmbusmeters__parse_data_from_your_utility_meter___nice_free_software.html
</link>
211 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/wmbusmeters__parse_data_from_your_utility_meter___nice_free_software.html
</guid>
212 <pubDate>Fri,
19 May
2023 21:
50:
00 +
0200</pubDate>
213 <description><p
>There is a European standard for reading utility meters like water,
214 gas, electricity or heat distribution meters. The
215 <a href=
"https://en.wikipedia.org/wiki/Meter-Bus
">Meter-Bus standard
216 (EN
13757-
2, EN
13757-
3 and EN
13757–
4)
</a
> provide a cross vendor way
217 to talk to and collect meter data. I ran into this standard when I
218 wanted to monitor some heat distribution meters, and managed to find
219 free software that could do the job. The meters in question broadcast
220 encrypted messages with meter information via radio, and the hardest
221 part was to track down the encryption keys from the vendor. With this
222 in place I could set up a MQTT gateway to submit the meter data for
225 <p
>The free software systems in question,
226 <a href=
"https://tracker.debian.org/pkg/rtl-wmbus
">rtl-wmbus
</a
> to
227 read the messages from a software defined radio, and
228 <a href=
"https://tracker.debian.org/pkg/wmbusmeters
">wmbusmeters
</a
> to
229 decrypt and decode the content of the messages, is working very well
230 and allowe me to get frequent updates from my meters. I got in touch
231 with upstream last year to see if there was any interest in publishing
232 the packages via Debian. I was very happy to learn that Fredrik
233 Öhrström volunteered to maintain the packages, and I have since
234 assisted him in getting Debian package build rules in place as well as
235 sponsoring the packages into the Debian archive. Sadly we completed
236 it too late for them to become part of the next stable Debian release
237 (Bookworm). The wmbusmeters package just cleared the NEW queue. It
238 will need some work to fix a built problem, but I expect Fredrik will
239 find a solution soon.
</p
>
241 <p
>If you got a infrastructure meter supporting the Meter Bus
242 standard, I strongly recommend having a look at these nice
245 <p
>As usual, if you use Bitcoin and want to show your support of my
246 activities, please send Bitcoin donations to my address
247 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
252 <title>The
2023 LinuxCNC Norwegian developer gathering
</title>
253 <link>https://people.skolelinux.org/pere/blog/The_2023_LinuxCNC_Norwegian_developer_gathering.html
</link>
254 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/The_2023_LinuxCNC_Norwegian_developer_gathering.html
</guid>
255 <pubDate>Sun,
14 May
2023 20:
30:
00 +
0200</pubDate>
256 <description><p
>The LinuxCNC project is making headway these days. A lot of
257 patches and issues have seen activity on
258 <a href=
"https://github.com/LinuxCNC/linuxcnc/
">the project github
259 pages
</a
> recently. A few weeks ago there was a developer gathering
260 over at the
<a href=
"https://tormach.com/
">Tormach
</a
> headquarter in
261 Wisconsin, and now we are planning a new gathering in Norway. If you
262 wonder what LinuxCNC is, lets quote Wikipedia:
</p
>
265 "LinuxCNC is a software system for numerical control of
266 machines such as milling machines, lathes, plasma cutters, routers,
267 cutting machines, robots and hexapods. It can control up to
9 axes or
268 joints of a CNC machine using G-code (RS-
274NGC) as input. It has
269 several GUIs suited to specific kinds of usage (touch screen,
270 interactive development).
"
273 <p
>The Norwegian developer gathering take place the weekend June
16th
274 to
18th this year, and is open for everyone interested in contributing
275 to LinuxCNC. Up to date information about the gathering can be found
277 <a href=
"https://sourceforge.net/p/emc/mailman/emc-developers/thread/sa64jp06nob.fsf%
40hjemme.reinholdtsen.name/#msg37837251
">the
278 developer mailing list thread
</a
> where the gathering was announced.
279 Thanks to the good people at
280 <a href=
"https://www.debian.org/
">Debian
</a
>,
281 <a href=
"https://www.redpill-linpro.com/
">Redpill-Linpro
</a
> and
282 <a href=
"https://www.nuugfoundation.no/no/
">NUUG Foundation
</a
>, we
283 have enough sponsor funds to pay for food, and shelter for the people
284 traveling from afar to join us. If you would like to join the
285 gathering, get in touch.
</p
>
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
>
294 <title>OpenSnitch in Debian ready for prime time
</title>
295 <link>https://people.skolelinux.org/pere/blog/OpenSnitch_in_Debian_ready_for_prime_time.html
</link>
296 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/OpenSnitch_in_Debian_ready_for_prime_time.html
</guid>
297 <pubDate>Sat,
13 May
2023 12:
10:
00 +
0200</pubDate>
298 <description><p
>A bit delayed,
299 <a href=
"https://tracker.debian.org/pkg/opensnitch
">the interactive
300 application firewall OpenSnitch
</a
> package in Debian now got the
301 latest fixes ready for Debian Bookworm. Because it depend on a
302 package missing on some architectures, the autopkgtest check of the
303 testing migration script did not understand that the tests were
304 actually working, so the migration was delayed. A bug in the package
305 dependencies is also fixed, so those installing the firewall package
306 (opensnitch) now also get the GUI admin tool (python3-opensnitch-ui)
307 installed by default. I am very grateful to Gustavo Iñiguez Goya for
308 his work on getting the package ready for Debian Bookworm.
</p
>
310 <p
>Armed with this package I have discovered some surprising
311 connections from programs I believed were able to work completly
312 offline, and it has already proven its worth, at least to me. If you
313 too want to get more familiar with the kind of programs using
314 Internett connections on your machine, I recommend testing
<tt
>apt
315 install opensnitch
</tt
> in Bookworm and see what you think.
</p
>
317 <p
>The package is still not able to build its eBPF module within
318 Debian. Not sure how much work it would be to get it working, but
319 suspect some kernel related packages need to be extended with more
320 header files to get it working.
</p
>
322 <p
>As usual, if you use Bitcoin and want to show your support of my
323 activities, please send Bitcoin donations to my address
324 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
329 <title>Speech to text, she APTly whispered, how hard can it be?
</title>
330 <link>https://people.skolelinux.org/pere/blog/Speech_to_text__she_APTly_whispered__how_hard_can_it_be_.html
</link>
331 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/Speech_to_text__she_APTly_whispered__how_hard_can_it_be_.html
</guid>
332 <pubDate>Sun,
23 Apr
2023 09:
40:
00 +
0200</pubDate>
333 <description><p
>While visiting a convention during Easter, it occurred to me that
334 it would be great if I could have a digital Dictaphone with
335 transcribing capabilities, providing me with texts to cut-n-paste into
336 stuff I need to write. The background is that long drives often bring
337 up the urge to write on texts I am working on, which of course is out
338 of the question while driving. With the release of
339 <a href=
"https://github.com/openai/whisper/
">OpenAI Whisper
</a
>, this
340 seem to be within reach with Free Software, so I decided to give it a
341 go. OpenAI Whisper is a Linux based neural network system to read in
342 audio files and provide text representation of the speech in that
343 audio recording. It handle multiple languages and according to its
344 creators even can translate into a different language than the spoken
345 one. I have not tested the latter feature. It can either use the CPU
346 or a GPU with CUDA support. As far as I can tell, CUDA in practice
347 limit that feature to NVidia graphics cards. I have few of those, as
348 they do not work great with free software drivers, and have not tested
349 the GPU option. While looking into the matter, I did discover some
350 work to provide CUDA support on non-NVidia GPUs, and some work with
351 the library used by Whisper to port it to other GPUs, but have not
352 spent much time looking into GPU support yet. I
've so far used an old
353 X220 laptop as my test machine, and only transcribed using its
356 <p
>As it from a privacy standpoint is unthinkable to use computers
357 under control of someone else (aka a
"cloud
" service) to transcribe
358 ones thoughts and personal notes, I want to run the transcribing
359 system locally on my own computers. The only sensible approach to me
360 is to make the effort I put into this available for any Linux user and
361 to upload the needed packages into Debian. Looking at Debian Bookworm, I
362 discovered that only three packages were missing,
363 <a href=
"https://bugs.debian.org/
1034307">tiktoken
</a
>,
364 <a href=
"https://bugs.debian.org/
1034144">triton
</a
>, and
365 <a href=
"https://bugs.debian.org/
1034091">openai-whisper
</a
>. For a while
367 <a href=
"https://bugs.debian.org/
1034286">ffmpeg-python
</a
> was
369 <a href=
"https://github.com/kkroening/ffmpeg-python/issues/
760">upstream
370 seem to have vanished
</a
> I found it safer
371 <a href=
"https://github.com/openai/whisper/pull/
1242">to rewrite
372 whisper
</a
> to stop depending on in than to introduce ffmpeg-python
373 into Debian. I decided to place these packages under the umbrella of
374 <a href=
"https://salsa.debian.org/deeplearning-team
">the Debian Deep
375 Learning Team
</a
>, which seem like the best team to look after such
376 packages. Discussing the topic within the group also made me aware
377 that the triton package was already a future dependency of newer
378 versions of the torch package being planned, and would be needed after
379 Bookworm is released.
</p
>
381 <p
>All required code packages have been now waiting in
382 <a href=
"https://ftp-master.debian.org/new.html
">the Debian NEW
383 queue
</a
> since Wednesday, heading for Debian Experimental until
384 Bookworm is released. An unsolved issue is how to handle the neural
385 network models used by Whisper. The default behaviour of Whisper is
386 to require Internet connectivity and download the model requested to
387 <tt
>~/.cache/whisper/
</tt
> on first invocation. This obviously would
388 fail
<a href=
"https://people.debian.org/~bap/dfsg-faq.html
">the
389 deserted island test of free software
</a
> as the Debian packages would
390 be unusable for someone stranded with only the Debian archive and solar
391 powered computer on a deserted island.
</p
>
393 <p
>Because of this, I would love to include the models in the Debian
394 mirror system. This is problematic, as the models are very large
395 files, which would put a heavy strain on the Debian mirror
396 infrastructure around the globe. The strain would be even higher if
397 the models change often, which luckily as far as I can tell they do
398 not. The small model, which according to its creator is most useful
399 for English and in my experience is not doing a great job there
400 either, is
462 MiB (deb is
414 MiB). The medium model, which to me
401 seem to handle English speech fairly well is
1.5 GiB (deb is
1.3 GiB)
402 and the large model is
2.9 GiB (deb is
2.6 GiB). I would assume
403 everyone with enough resources would prefer to use the large model for
404 highest quality. I believe the models themselves would have to go
405 into the non-free part of the Debian archive, as they are not really
406 including any useful source code for updating the models. The
407 "source
", aka the model training set, according to the creators
408 consist of
"680,
000 hours of multilingual and multitask supervised
409 data collected from the web
", which to me reads material with both
410 unknown copyright terms, unavailable to the general public. In other
411 words, the source is not available according to the Debian Free
412 Software Guidelines and the model should be considered non-free.
</p
>
414 <p
>I asked the Debian FTP masters for advice regarding uploading a
415 model package on their IRC channel, and based on the feedback there it
416 is still unclear to me if such package would be accepted into the
417 archive. In any case I wrote build rules for a
418 <a href=
"https://salsa.debian.org/deeplearning-team/openai-whisper-model
">OpenAI
419 Whisper model package
</a
> and
420 <a href=
"https://github.com/openai/whisper/pull/
1257">modified the
421 Whisper code base
</a
> to prefer shared files under
<tt
>/usr/
</tt
> and
422 <tt
>/var/
</tt
> over user specific files in
<tt
>~/.cache/whisper/
</tt
>
423 to be able to use these model packages, to prepare for such
424 possibility. One solution might be to include only one of the models
425 (small or medium, I guess) in the Debian archive, and ask people to
426 download the others from the Internet. Not quite sure what to do
427 here, and advice is most welcome (use the debian-ai mailing list).
</p
>
429 <p
>To make it easier to test the new packages while I wait for them to
430 clear the NEW queue, I created an APT source targeting bookworm. I
431 selected Bookworm instead of Bullseye, even though I know the latter
432 would reach more users, is that some of the required dependencies are
433 missing from Bullseye and I during this phase of testing did not want
434 to backport a lot of packages just to get up and running.
</p
>
436 <p
>Here is a recipe to run as user root if you want to test OpenAI
437 Whisper using Debian packages on your Debian Bookworm installation,
438 first adding the APT repository GPG key to the list of trusted keys,
439 then setting up the APT repository and finally installing the packages
440 and one of the models:
</p
>
443 curl https://geekbay.nuug.no/~pere/openai-whisper/D78F5C4796F353D211B119E28200D9B589641240.asc \
444 -o /etc/apt/trusted.gpg.d/pere-whisper.asc
445 mkdir -p /etc/apt/sources.list.d
446 cat
> /etc/apt/sources.list.d/pere-whisper.list
&lt;
&lt;EOF
447 deb https://geekbay.nuug.no/~pere/openai-whisper/ bookworm main
448 deb-src https://geekbay.nuug.no/~pere/openai-whisper/ bookworm main
451 apt install openai-whisper
452 </pre
></p
>
454 <p
>The package work for me, but have not yet been tested on any other
455 computer than my own. With it, I have been able to (badly) transcribe
456 a
2 minute
40 second Norwegian audio clip to test using the small
457 model. This took
11 minutes and around
2.2 GiB of RAM. Transcribing
458 the same file with the medium model gave a accurate text in
77 minutes
459 using around
5.2 GiB of RAM. My test machine had too little memory to
460 test the large model, which I believe require
11 GiB of RAM. In
461 short, this now work for me using Debian packages, and I hope it will
462 for you and everyone else once the packages enter Debian.
</p
>
464 <p
>Now I can start on the audio recording part of this project.
</p
>
466 <p
>As usual, if you use Bitcoin and want to show your support of my
467 activities, please send Bitcoin donations to my address
468 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
473 <title>rtlsdr-scanner, software defined radio frequency scanner for Linux - nice free software
</title>
474 <link>https://people.skolelinux.org/pere/blog/rtlsdr_scanner__software_defined_radio_frequency_scanner_for_Linux____nice_free_software.html
</link>
475 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/rtlsdr_scanner__software_defined_radio_frequency_scanner_for_Linux____nice_free_software.html
</guid>
476 <pubDate>Fri,
7 Apr
2023 23:
10:
00 +
0200</pubDate>
477 <description><p
>Today I finally found time to track down a useful radio frequency
478 scanner for my software defined radio. Just for fun I tried to locate
479 the radios used in the areas, and a good start would be to scan all
480 the frequencies to see what is in use. I
've tried to find a useful
481 program earlier, but ran out of time before I managed to find a useful
482 tool. This time I was more successful, and after a few false leads I
483 found a description of
484 <a href=
"https://www.kali.org/tools/rtlsdr-scanner/
">rtlsdr-scanner
485 over at the Kali site
</a
>, and was able to track down
486 <a href=
"https://gitlab.com/kalilinux/packages/rtlsdr-scanner.git
">the
487 Kali package git repository
</a
> to build a deb package for the
488 scanner. Sadly the package is missing from the Debian project itself,
489 at least in Debian Bullseye. Two runtime dependencies,
490 <a href=
"https://gitlab.com/kalilinux/packages/python-visvis.git
">python-visvis
</a
>
492 <a href=
"https://gitlab.com/kalilinux/packages/python-rtlsdr.git
">python-rtlsdr
</a
>
493 had to be built and installed separately. Luckily
'<tt
>gbp
494 buildpackage
</tt
>' handled them just fine and no further packages had
495 to be manually built. The end result worked out of the box after
496 installation.
</p
>
498 <p
>My initial scans for FM channels worked just fine, so I knew the
499 scanner was functioning. But when I tried to scan every frequency
500 from
100 to
1000 MHz, the program stopped unexpectedly near the
501 completion. After some debugging I discovered USB software radio I
502 used rejected frequencies above
948 MHz, triggering a unreported
503 exception breaking the scan. Changing the scan to end at
957 worked
504 better. I similarly found the lower limit to be around
15, and ended
505 up with the following full scan:
</p
>
507 <p
><a href=
"https://people.skolelinux.org/pere/blog/images/
2023-
04-
07-radio-freq-scanning.png
"><img src=
"https://people.skolelinux.org/pere/blog/images/
2023-
04-
07-radio-freq-scanning.png
" width=
"100%
"></a
></p
>
509 <p
>Saving the scan did not work, but exporting it as a CSV file worked
510 just fine. I ended up with around
477k CVS lines with dB level for
511 the given frequency.
</p
>
513 <p
>The save failure seem to be a missing UTF-
8 encoding issue in the
514 python code. Will see if I can find time to send a patch
515 <a href=
"https://github.com/CdeMills/RTLSDR-Scanner/
">upstream
</a
>
516 later to fix this exception:
</p
>
519 Traceback (most recent call last):
520 File
"/usr/lib/python3/dist-packages/rtlsdr_scanner/main_window.py
", line
485, in __on_save
521 save_plot(fullName, self.scanInfo, self.spectrum, self.locations)
522 File
"/usr/lib/python3/dist-packages/rtlsdr_scanner/file.py
", line
408, in save_plot
523 handle.write(json.dumps(data, indent=
4))
524 TypeError: a bytes-like object is required, not
'str
'
525 Traceback (most recent call last):
526 File
"/usr/lib/python3/dist-packages/rtlsdr_scanner/main_window.py
", line
485, in __on_save
527 save_plot(fullName, self.scanInfo, self.spectrum, self.locations)
528 File
"/usr/lib/python3/dist-packages/rtlsdr_scanner/file.py
", line
408, in save_plot
529 handle.write(json.dumps(data, indent=
4))
530 TypeError: a bytes-like object is required, not
'str
'
533 <p
>As usual, if you use Bitcoin and want to show your support of my
534 activities, please send Bitcoin donations to my address
535 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
540 <title>OpenSnitch available in Debian Sid and Bookworm
</title>
541 <link>https://people.skolelinux.org/pere/blog/OpenSnitch_available_in_Debian_Sid_and_Bookworm.html
</link>
542 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/OpenSnitch_available_in_Debian_Sid_and_Bookworm.html
</guid>
543 <pubDate>Sat,
25 Feb
2023 20:
30:
00 +
0100</pubDate>
544 <description><p
>Thanks to the efforts of the OpenSnitch lead developer Gustavo
545 Iñiguez Goya allowing me to sponsor the upload,
546 <a href=
"https://tracker.debian.org/pkg/opensnitch
">the interactive
547 application firewall OpenSnitch
</a
> is now available in Debian
548 Testing, soon to become the next stable release of Debian.
</p
>
550 <p
>This is a package which set up a network firewall on one or more
551 machines, which is controlled by a graphical user interface that will
552 ask the user if a program should be allowed to connect to the local
553 network or the Internet. If some background daemon is trying to dial
554 home, it can be blocked from doing so with a simple mouse click, or by
555 default simply by not doing anything when the GUI question dialog pop
556 up. A list of all programs discovered using the network is provided
557 in the GUI, giving the user an overview of how the machine(s) programs
558 use the network.
</p
>
560 <p
>OpenSnitch was uploaded for NEW processing about a month ago, and I
561 had little hope of it getting accepted and shaping up in time for the
562 package freeze, but the Debian ftpmasters proved to be amazingly quick
563 at checking out the package and it was accepted into the archive about
564 week after the first upload. It is now team maintained under the Go
565 language team umbrella. A few fixes to the default setup is only in
566 Sid, and should migrate to Testing/Bookworm in a week.
</p
>
568 <p
>During testing I ran into an
569 <a href=
"https://github.com/evilsocket/opensnitch/issues/
813">issue
570 with Minecraft server broadcasts disappearing
</a
>, which was quickly
571 resolved by the developer with a patch and a proposed configuration
572 change. I
've been told this was caused by the Debian packages default
573 use if /proc/ information to track down kernel status, instead of the
574 newer eBPF module that can be used. The reason is simply that
575 upstream and I have failed to find a way to build the eBPF modules for
576 OpenSnitch without a complete configured Linux kernel source tree,
577 which as far as we can tell is unavailable as a build dependency in
578 Debian. We tried unsuccessfully so far to use the kernel-headers
579 package. It would be great if someone could provide some clues how to
580 build eBPF modules on build daemons in Debian, possibly without the full
581 kernel source.
</p
>
583 <p
>As usual, if you use Bitcoin and want to show your support of my
584 activities, please send Bitcoin donations to my address
585 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>