X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/7bffa5c356b3a88331c400dd2668b393736081ce..aafeae8b09742c9d300a1ffc222093abff86f970:/blog/index.rss diff --git a/blog/index.rss b/blog/index.rss index 770eae38cb..64c53fe0c4 100644 --- a/blog/index.rss +++ b/blog/index.rss @@ -3,314 +3,149 @@ Petter Reinholdtsen - http://people.skolelinux.org/pere/blog/ - + https://people.skolelinux.org/pere/blog/ + - Nikita version 0.6 released - free software archive API server - http://people.skolelinux.org/pere/blog/Nikita_version_0_6_released___free_software_archive_API_server.html - http://people.skolelinux.org/pere/blog/Nikita_version_0_6_released___free_software_archive_API_server.html - Thu, 10 Jun 2021 17:10:00 +0200 - <p>I am very pleased to be able to share with you -<a href="https://lists.nuug.no/pipermail/nikita-noark/2021-June/000576.html">the -announcement of a new version of the archiving system Nikita</a> -published by its lead developer Thomas Sødring:</p> - -<p><blockquote> - -<p>It is with great pleasure that we can announce a new release of -nikita. Version 0.6 -(<a href="https://gitlab.com/OsloMet-ABI/nikita-noark5-core">https://gitlab.com/OsloMet-ABI/nikita-noark5-core</a>). This -release makes new record keeping functionality available. This really -is a maturity release. Both in terms of functionality but also code. -Considerable effort has gone into refactoring the codebase and -simplifying the code. Notable changes for this release include:</p> - -<ul> - - <li>Significantly improved OData parsing</li> - <li>Support for business specific metadata and national identifiers</li> - <li>Continued implementation of domain model and endpoints</li> - <li>Improved testing</li> - <li>Ability to export and import from arkivstruktur.xml</li> - -</ul> - -<p>We are currently in the process of reaching an agreement with an -archive institution to publish their picture archive using nikita with -business specific metadata and we hope that we can share this with you -soon. This is an interesting project as it allows the organisation to -bring an older picture archive back to life while using the original -metadata values stored as business specific metadata. Combined with -OData means the scope and use of the archive is significantly -increased and will showcase both the flexibility and power of -Noark.</p> - -<p>I really think we are approaching a version 1.0 of nikita, even -though there is still a lot of work to be done. The notable work at -the moment is to implement access-control and full text indexing of -documents.</p> - -<p>My sincere thanks to everyone who has contributed to this -release!</p> - -<p>- Thomas</p> - -<p><strong>Release 0.6 2021-06-10 (d1ba5fc7e8bad0cfdce45ac20354b19d10ebbc7b)</strong></p> - -<ul> - - <li>Refactor metadata entity search</li> - <li>Remove redundant security configuration</li> - <li>Make OpenAPI documentation work</li> - <li>Change database structure / inheritance model to a more sensible approach</li> - <li>Make it possible to move entities around the fonds structure</li> - <li>Implemented a number of missing endpoints</li> - <li>Make sure yml files are in sync</li> - <li>Implemented/finalised storing and use of - <ul> -     <li>Business Specific Metadata</li> -     <li>Norwegian National Identifiers</li> -     <li>Cross Reference</li> -     <li>Keyword</li> -     <li>StorageLocation</li> -     <li>Author</li> -     <li>Screening for relevant objects</li> -     <li>ChangeLog</li> -     <li>EventLog</li> - </ul></li> - <li>Make generation of updated docker image part of successful CI pipeline</li> - <li>Implement pagination for all list requests - <ul> -     <li>Refactor code to support lists</li> -     <li>Refactor code for readability</li> -     <li>Standardise the controller/service code</li> - </ul></li> - <li>Finalise File->CaseFile expansion and Record->registryEntry/recordNote -expansion</li> - <li>Improved Continuous Integration (CI) approach via gitlab</li> - <li>Changed conversion approach to generate tagged PDF documents</li> - <li>Updated dependencies - <ul> -     <li>For security reasons</li> -     <li>Brought codebase to spring-boot version 2.5.0</li> -     <li>Remove import of necessary dependencies</li> -     <li>Remove non-used metrics classes</li> - </ul></li> - <li>Added new analysis to CI including</li> - <li>Implemented storing of Keyword</li> - <li>Implemented storing of Screening and ScreeningMetadata</li> - <li>Improved OData support - <ul> -     <li>Better support for inheritance in queries where applicable</li> -     <li>Brought in more OData tests</li> -     <li>Improved OData/hibernate understanding of queries</li> -     <li>Implement $count, $orderby</li> -     <li>Finalise $top and $skip</li> -     <li>Make sure & is used between query parameters</li> - </ul></li> - <li>Improved Testing in codebase - <ul> -     <li>A new approach for integration tests to make test more readable</li> -     <li>Introduce tests in parallel with code development for TDD approach</li> -     <li>Remove test that required particular access to storage</li> - </ul></li> - <li>Implement case-handling process from received email to case-handler - <ul> -     <li>Develop required GUI elements (digital postroom from email)</li> -     <li>Introduced leader, quality control and postroom roles</li> - </ul></li> - <li>Make PUT requests return 200 OK not 201 CREATED</li> - <li>Make DELETE requests return 204 NO CONTENT not 200 OK</li> - <li>Replaced 'oppdatert*' with 'endret*' everywhere to match latest spec</li> - <li>Upgrade Gitlab CI to use python > 3 for CI scripts</li> - <li>Bug fixes - <ul> -     <li>Fix missing ALLOW</li> -     <li>Fix reading of objects from jar file during start-up</li> -     <li>Reduce the number of warnings in the codebase</li> -     <li>Fix delete problems</li> -     <li>Make better use of cascade for "leaf" objects</li> -     <li>Add missing annotations where relevant</li> -     <li>Remove the use of ETAG for delete</li> -     <li>Fix missing/wrong/broken rels discovered by runtest</li> -     <li>Drop unofficial convertFil (konverterFil) end point</li> -     <li>Fix regex problem for dateTime</li> -     <li>Fix multiple static analysis issues discovered by coverity</li> -     <li>Fix proxy problem when looking for object class names</li> -     <li>Add many missing translated Norwegian to English (internal) -attribute/entity names</li> -     <li>Change UUID generation approach to allow code also set a value</li> -     <li>Fix problem with Part/PartParson</li> -     <li>Fix problem with empty OData search results</li> -     <li>Fix metadata entity domain problem</li> - </ul></li> - <li>General Improvements - <ul> -     <li>Makes future refactoring easier as coupling is reduced</li> -     <li>Allow some constant variables to be set from property file</li> -     <li>Refactor code to make reflection work better across codebase</li> -     <li>Reduce the number of @Service layer classes used in @Controller -classes</li> -     <li>Be more consistent on naming of similar variable types</li> -     <li>Start printing rels/href if they are applicable</li> -     <li>Cleaner / standardised approach to deleting objects</li> -     <li>Avoid concatenation when using StringBuilder</li> -     <li>Consolidate code to avoid duplication</li> -     <li>Tidy formatting for a more consistent reading style across -similar class files</li> -     <li>Make throw a log.error message not an log.info message</li> -     <li>Make throw print the log value rather than printing in multiple -places</li> -     <li>Add some missing pronom codes</li> -     <li>Fix time formatting issue in Gitlab CI</li> -     <li>Remove stale / unused code</li> -     <li>Use only UUID datatype rather than combination String/UUID for systemID</li> -     <li>Mark variables final and @NotNull where relevant to indicate -intention</li> - </ul></li> - <li>Change Date values to DateTime to maintain compliance with Noark 5 -standard</li> - <li>Domain model improvements using Hypersistence Optimizer - <ul> -     <li>Move @Transactional from class to methods to avoid borrowing the JDBC Connection unnecessarily</li> -     <li>Fix OneToOne performance issues</li> -     <li>Fix ManyToMany performance issues</li> -     <li>Add missing bidirectional synchronization support</li> -     <li>Fix ManyToMany performance issue</li> - </ul></li> - <li>Make List<> and Set<> use final-keyword to avoid potential problems -during update operations</li> - <li>Changed internal URLs, replaced "hateoas-api" with "api".</li> - <li>Implemented storing of Precedence.</li> - <li>Corrected handling of screening.</li> - <li>Corrected _links collection returned for list of mixed entity types -to match the specific entity.</li> - <li>Improved several internal structures.</li> -</ul> - -</blockquote></p> - -<p>If free and open standardized archiving API sound interesting to -you, please contact us on IRC -(<a href="irc://irc.oftc.net/%23nikita">#nikita on -irc.oftc.net</a>) or email -(<a href="https://lists.nuug.no/mailman/listinfo/nikita-noark">nikita-noark -mailing list</a>).</p> + «Virkninger av angrefristloven», hovedfagsoppgaven som fikk endret en lov + https://people.skolelinux.org/pere/blog/_Virkninger_av_angrefristloven___hovedfagsoppgaven_som_fikk_endret_en_lov.html + https://people.skolelinux.org/pere/blog/_Virkninger_av_angrefristloven___hovedfagsoppgaven_som_fikk_endret_en_lov.html + Sun, 29 Oct 2023 22:00:00 +0100 + <img src="http://people.skolelinux.org/pere/blog/images/2023-10-29-bok-angrefrist.svg" width="20%" align="center"></a> + +<p>I 1979 leverte Ole-Erik Yrvin en hovedfagsoppgave for Cand. Scient. + ved Institutt for sosiologi på Universitetet i Oslo på oppdrag fra + Forbruker- og administrasjonsdepartementet. Oppgaven evaluerte + Angrefristloven fra 1972, og det han oppdaget førte til at loven ble + endret fire år senere.</p> + +<p>Jeg har kjent Ole-Erik en stund, og synes det var trist at hans + oppgave ikke lenger er tilgjengelig, hverken fra oppdragsgiver + eller fra universitetet. Hans forsøk på å få den avbildet og lagt + ut på Internett har vist seg fånyttes, så derfor tilbød jeg meg for + en stund tilbake å publisere den og gjøre den tilgjengelig med + fribruksvilkår på Internett. Det er nå klart, og hovedfagsoppgaven + er tilgjengelig blant annet via <a + href="http://www.hungry.com/~pere/publisher/">min liste over + publiserte bøker</a>, både som nettside, + <a href="https://www.lulu.com/search?contributor=Ole-Erik+Yrvin">digital + bok i ePub-format og på papir fra lulu.com</a>. Jeg regner med at + den også vil dukke opp på nettbokhandlere i løpet av en måned eller + to.</p> + +<p>Alle tabeller og figurer er gjenskapt for bedre lesbarhet, noen + skrivefeil rettet opp og mange referanser har fått flere detaljer + som ISBN-nummer og DOI-referanse. Selv om jeg ikke regner med at + dette blir en kioskvelter, så håper jeg denne nye utgaven kan komme + fremtiden til glede.</p> -<p>As usual, if you use Bitcoin and want to show your support of my -activities, please send Bitcoin donations to my address -<b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p> +<p>Som vanlig, hvis du bruker Bitcoin og ønsker å vise din støtte til +det jeg driver med, setter jeg pris på om du sender Bitcoin-donasjoner +til min adresse +<b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>. Merk, +betaling med bitcoin er ikke anonymt. :)</p> - VLC bittorrent plugin in Bullseye, saved by the bell? - http://people.skolelinux.org/pere/blog/VLC_bittorrent_plugin_in_Bullseye__saved_by_the_bell_.html - http://people.skolelinux.org/pere/blog/VLC_bittorrent_plugin_in_Bullseye__saved_by_the_bell_.html - Sat, 1 May 2021 11:00:00 +0200 - <p>Yesterday morning I got a warning call from the Debian quality -control system that -<a href="https://tracker.debian.org/pkg/vlc-plugin-bittorrent">the VLC -bittorrent plugin</a> was due to be removed because of a release -critical bug in one of its dependencies. As you might remember, this -plugin make VLC able to stream videos directly from a bittorrent -source using both torrent files and magnet links, similar to using a -HTTP source. I believe such protocol support is a vital feature in -VLC, allowing efficient streaming from sources such at the almost 7 -million movies in <a href="https://archive.org/">the Internet -Archive</a>.</p> - -<p>The dependency was the unmaintained -<a href="https://tracker.debian.org/pkg/libtorrent-rasterbar">libtorrent-rasterbar</a> -package, and <a href="https://bugs.debian.org/987306">the bug in -question</a> blocked its python library from working properly. As I -did not want Bullseye to release without bittorrent support in VLC, I -set out to check out the status, and track down a fix for the problem. -Luckily the issue had already been identified and fixed upstream, -providing everything needed. All I needed to do was to fetch the -Debian git repository, extract and trim the patch from upstream and -apply it to the Debian package for upload.</p> - -<p>The fixed library was uploaded yesterday evening. But that is not -enough to get it into Bullseye, as Debian is currently in package -freeze to prepare for a new next stable release. Only non-critical -packages with -<a href="https://wiki.debian.org/ContinuousIntegration/autopkgtest">autopkgtest -setup</a> included, in other words able to validate automatically that -the package is working, are allowed to migrate automatically into the -next release at this stage. And the unmaintained libtorrent-rasterbar -lack such testing, and thus needed a manual override. I am happy to -report that such manual override was approved a few minutes ago, thus -increasing significantly the chance of VLC bittorrent streaming being -available out of the box also for Debian/Buster users. A bit too -close shave for my liking, as the Bullseye release is most likely just -a few days away, and this did feel like the package was saved by the -bell. I am so glad the warning email showed up in time for me to -handle the issue, and a big thanks go to the Debian Release team for -the quick feedback on -<a href="irc://irc.debian.org/%23debian-release">#debian-release</a> -and their <a href="https://bugs.debian.org/987865">swift -unblocking</a>.</p> - -<p>As usual, if you use Bitcoin and want to show your support of my -activities, please send Bitcoin donations to my address -<b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p> + «underordnet tjenestemann blir inhabil fordi en overordnet er inhabil». + https://people.skolelinux.org/pere/blog/_underordnet_tjenestemann_blir_inhabil_fordi_en_overordnet_er_inhabil__.html + https://people.skolelinux.org/pere/blog/_underordnet_tjenestemann_blir_inhabil_fordi_en_overordnet_er_inhabil__.html + Thu, 7 Sep 2023 09:10:00 +0200 + <p>Medlemmene av Norges regjering har demonstert de siste månedene at +habilitetsvureringer ikke er deres sterke side og det gjelder både +Arbeiderpartiets og Senterpartiers representater. Det er heldigvis +enklere i det private, da inhabilitetsreglene kun gjelder de som +jobber for folket, ikke seg selv. Sist ut er utenriksminister +Huitfeldt. I går kom nyheten om at +<a href="https://www.nrk.no/nyheter/riksadvokaten_-okokrim-nestsjef-kan-behandle-huitfeldt-saken-1.16545162">Riksadvokaten +har konkludert med at nestsjefen i Økokrim kan behandle sak om +habilitet og innsidekunnskap</a> for Huitfeldt, på tross av at hans +overordnede, sjefen for Økokrim, har meldt seg inhabil i saken. Dette +er litt rart. I veilednigen +«<a href="https://www.regjeringen.no/globalassets/upload/krd/vedlegg/komm/veiledere/habilitet_i_kommuner_og_fylkeskommuner.pdf">Habilitet +i kommuner og fylkeskommuner</a>» av Kommunal- og regionaldepartementet +forteller de hva som gjelder, riktig nok gjelder veiledningen ikke for +Økokrim som jo ikke er kommune eller fylkeskommune, men jeg får ikke +inntrykk av at dette er regler som kun gjelder for kommune og +fylkeskommune: + +<blockquote> +<p>«<strong>2.1 Oversikt over inhabilitetsgrunnlagene</strong> + +<p>De alminnelige reglene om inhabilitet for den offentlige +forvaltningen er gitt i +<a href="https://lovdata.no/dokument/NL/lov/1967-02-10/KAPITTEL_2#KAPITTEL_2">forvaltningsloven +§§ 6 til 10</a>. Forvaltningslovens hovedregel om inhabilitet framgår +av § 6. Her er det gitt tre ulike grunnlag som kan føre til at en +tjenestemann eller folkevalgt blir inhabil. I § 6 første ledd +bokstavene a til e er det oppstilt konkrete tilknytningsforhold mellom +tjenestemannen og saken eller sakens parter som automatisk fører til +inhabilitet. Annet ledd oppstiller en skjønnsmessig regel om at +tjenestemannen også kan bli inhabil etter en konkret vurdering av +inhabilitetsspørsmålet, der en lang rekke momenter kan være +relevante. I tredje ledd er det regler om såkalt avledet +inhabilitet. Det vil si at en underordnet tjenestemann blir inhabil +fordi en overordnet er inhabil.»</p> +</blockquote> + +<p>Loven sier ganske enkelt «Er den overordnede tjenestemann ugild, +kan avgjørelse i saken heller ikke treffes av en direkte underordnet +tjenestemann i samme forvaltningsorgan.» Jeg antar tanken er at en +underordnet vil stå i fare for å tilpasse sine konklusjoner til det +overordnet vil ha fordel av, for å fortsatt ha et godt forhold til sin +overordnede. Men jeg er ikke jurist og forstår nok ikke kompliserte +juridiske vurderinger. For å sitere «Kamerat Napoleon» av George +Orwell: «Alle dyr er like, men noen dyr er likere enn andre». - Updated Valutakrambod, now also with information from NBX - http://people.skolelinux.org/pere/blog/Updated_Valutakrambod__now_also_with_information_from_NBX.html - http://people.skolelinux.org/pere/blog/Updated_Valutakrambod__now_also_with_information_from_NBX.html - Sat, 27 Feb 2021 13:30:00 +0100 - <p>I have neglected the Valutakrambod library for a while, but decided -this weekend to give it a face lift. I fixed a few minor glitches in -several of the service drivers, where the API had changed since I last -looked at the code. I also added support for fetching the order book -from the newcomer Norwegian Bitcoin Exchange.</p> - -<p>I also decided to migrate the project from github to gitlab in the -process. If you want a python library for talking to various currency -exchanges, check out -<a href="https://gitlab.com/petterreinholdtsen/valutakrambod">code for -valutakrambod</a>.</p> - -<p>This is what the output from '<tt>bin/btc-rates-curses -c</tt>' -looked like a few minutes ago:</p> - -<p><blockquote><pre> - Name Pair Bid Ask Spread Ftcd Age Freq - Bitfinex BTCEUR 39229.0000 39246.0000 0.0% 44 44 nan - Bitmynt BTCEUR 39071.0000 41048.9000 4.8% 43 74 nan - Bitpay BTCEUR 39326.7000 nan nan% 39 nan nan - Bitstamp BTCEUR 39398.7900 39417.3200 0.0% 0 0 1 - Bl3p BTCEUR 39158.7800 39581.9000 1.1% 0 nan 3 - Coinbase BTCEUR 39197.3100 39621.9300 1.1% 38 nan nan - Kraken+BTCEUR 39432.9000 39433.0000 0.0% 0 0 0 - Paymium BTCEUR 39437.2100 39499.9300 0.2% 0 2264 nan - Bitmynt BTCNOK 409750.9600 420516.8500 2.6% 43 74 nan - Bitpay BTCNOK 410332.4000 nan nan% 39 nan nan - Coinbase BTCNOK 408675.7300 412813.7900 1.0% 38 nan nan - MiraiEx BTCNOK 412174.1800 418396.1500 1.5% 34 nan nan - NBX BTCNOK 405835.9000 408921.4300 0.8% 33 nan nan - Bitfinex BTCUSD 47341.0000 47355.0000 0.0% 44 53 nan - Bitpay BTCUSD 47388.5100 nan nan% 39 nan nan - Coinbase BTCUSD 47153.6500 47651.3700 1.0% 37 nan nan - Gemini BTCUSD 47416.0900 47439.0500 0.0% 36 336 nan - Hitbtc BTCUSD 47429.9900 47386.7400 -0.1% 0 0 0 - Kraken+BTCUSD 47401.7000 47401.8000 0.0% 0 0 0 - Exchangerates EURNOK 10.4012 10.4012 0.0% 38 76236 nan - Norgesbank EURNOK 10.4012 10.4012 0.0% 31 76236 nan - Bitstamp EURUSD 1.2030 1.2045 0.1% 2 2 1 - Exchangerates EURUSD 1.2121 1.2121 0.0% 38 76236 nan - Norgesbank USDNOK 8.5811 8.5811 0.0% 31 76236 nan -</pre></blockquote></p> - -<p>Yes, I notice the negative spread on Hitbtc. Either I fail to -understand their Websocket API or they are sending bogus data. I've -seen the same with Kraken, and suspect there is something wrong with -the data they send.</p> + Invidious add-on for Kodi 20 + https://people.skolelinux.org/pere/blog/Invidious_add_on_for_Kodi_20.html + https://people.skolelinux.org/pere/blog/Invidious_add_on_for_Kodi_20.html + Thu, 10 Aug 2023 19:50:00 +0200 + <p>I still enjoy <a href="https://kodi.tv/">Kodi</a> and +<a href="https://libreelec.tv/">LibreELEC</a> as my multimedia center +at home. Sadly two of the services I really would like to use from +within Kodi are not easily available. The most wanted add-on would be +one making <a href="https://archive.org/">The Internet Archive</a> +available, and it has +<a href="https://kodi.wiki/view/Add-on:Internet_Archive">not been +working</a> for many years. The second most wanted add-on is one +using <a href="https://invidious.io/">the Invidious privacy enhanced +Youtube frontent</a>. A plugin for this has been partly working, but +not been kept up to date in the Kodi add-on repository, and its +upstream seem to have given it up in April this year, when the git +repository was closed. A few days ago I got tired of this sad state +of affairs and decided to +<a href="https://github.com/petterreinholdtsen/kodi-invidious-plugin">have +a go at improving the Invidious add-on</a>. As +<a href="https://github.com/iv-org/invidious/issues/3872">Google has +already attacked</a> the Invidious concept, so it need all the support +if can get. My small contribution here is to improve the service +status on Kodi.</p> + +<p>I added support to the Invidious add-on for automatically picking a +working Invidious instance, instead of requiring the user to specify +the URL to a specific instance after installation. I also had a look +at the set of patches floating around in the various forks on github, +and decided to clean up at least some of the features I liked and +integrate them into my new release branch. Now the plugin can handle +channel and short video items in search results. Earlier it could +only handle single video instances in the search response. I also +brushed up the set of metadata displayed a bit, but hope I can figure +out how to get more relevant metadata displayed.</p> + +<p>Because I only use Kodi 20 myself, I only test on version 20 and am +only motivated to ensure version 20 is working. Because of API changes +between version 19 and 20, I suspect it will fail with earlier Kodi +versions.</p> + +<p>I already +<a href="https://github.com/xbmc/repo-plugins/pull/4363">asked to have +the add-on added</a> to the official Kodi 20 repository, and is +waiting to heard back from the repo maintainers.</p> <p>As usual, if you use Bitcoin and want to show your support of my activities, please send Bitcoin donations to my address @@ -319,231 +154,93 @@ activities, please send Bitcoin donations to my address - Boken «Hvordan knuse overvåkningskapitalismen» lanseres på norsk - http://people.skolelinux.org/pere/blog/Boken__Hvordan_knuse_overv_kningskapitalismen__lanseres_p__norsk.html - http://people.skolelinux.org/pere/blog/Boken__Hvordan_knuse_overv_kningskapitalismen__lanseres_p__norsk.html - Tue, 26 Jan 2021 19:10:00 +0100 - <p>Etter intenst arbeid over mange måneder er endelig den norske -utgaven av «Hvordan knuse overvåkningskapitalismen» av Cory Doctorow -ferdig og klar til å glede millioner av lesere over hele verden. -Følgende pressemelding ble nettopp sendt ut til norske redaksjoner: - -<blockquote> - -<p><strong>Hva gjør stordata med oss, og hvordan gjør algoritmene -«fake news» til realiter?</strong></p> - -<p>Nå foreligger en viktig bok om temaet også på norsk. Boken klargjør -og foreslår hvordan vi selv som enkeltpersoner, men også nasjonalt og -internasjonalt kan bekjempe stordatakonsentrasjonene; -«overvåkingskapitalismen». Boken er «Hvordan knuse -overvåkingskapitalismen» av dr. Cory Doctorow. Den engelske -bokutgivelsen kom for noen dager siden og lanseres med et Webinar -torsdag 2021-01-28. Doctorow besøkte Norge og NUUG i desember med sin -presentasjon Monopoly, Not Mind Control: What's Really Happening With -"Surveillance Capitalism".</p> - -<p>I funn etter funn, eksempel etter eksempel, gjennomgår og -analyserer dr. Doctorow de utfordringer vi møter i større og større -omfang. Ikke bare i USA, men også her hjemme.</p> - -<p>Cory Doctorow er en britisk-kanadisk forfatter, journalist og -aktivist, kjent for sine science fiction-romaner, for arbeidet for -Creative Commons-bevegelsen, og for sine bidrag til reform av -opphavsretten. Han er både æresdoktor og gjesteforeleser i -datavitenskap ved Open University i UK, konsulent for Electronic -Frontier Foundation, og godt kjent for innsiktsfullt å kommentere og -skrive om digital utvikling.</p> + What did I learn from OpenSnitch this summer? + https://people.skolelinux.org/pere/blog/What_did_I_learn_from_OpenSnitch_this_summer_.html + https://people.skolelinux.org/pere/blog/What_did_I_learn_from_OpenSnitch_this_summer_.html + Sun, 11 Jun 2023 08:30:00 +0200 + <p>With yesterdays +<a href="https://www.debian.org/News/2023/20230610">release of Debian +12 Bookworm</a>, I am happy to know the +<a href="https://tracker.debian.org/pkg/opensnitch">the interactive +application firewall OpenSnitch</a> is available for a wider audience. +I have been running it for a few weeks now, and have been surprised +about some of the programs connecting to the Internet. Some programs +are obviously calling out from my machine, like the NTP network based +clock adjusting system and Tor to reach other Tor clients, but others +were more dubious. For example, the KDE Window manager try to look up +the host name in DNS, for no apparent reason, but if this lookup is +blocked the KDE desktop get periodically stuck when I use it. Another +surprise was how much Firefox call home directly to mozilla.com, +mozilla.net and googleapis.com, to mention a few, when I visit other +web pages. This direct connection happen even if I told Firefox to +always use a proxy, and the proxy setting is ignored for this traffic. +Other surprising connections come from audacity and dirmngr (I do not +use Gnome). It took some trial and error to get a good default set of +permissions. Without it, I would get popups asking for permissions at +any time, also the most inconvenient ones where I am in the middle of +a time sensitive gaming session.</p> + +<p>I suspect some application developers should rethink when then need +to use network connections or DNS lookups, and recommend testing +OpenSnitch (only <tt>apt install opensnitch</tt> away in Debian +Bookworm) to locate and report any surprising Internet connections on +your desktop machine.</p> + +<p>At the moment the upstream developer and Debian package maintainer +is working on making the system more reliable in Debian, by enabling +the eBPF kernel module to track processes and connections instead of +depending in content in /proc/. This should enter unstable fairly +soon.</p> -<p>Boken lanseres nå på norsk, både som ebok og på papir, oversatt av -en dugnadsgjeng ledet av Petter Reinholdtsen.</p> - -<p>Boken reiser noen helt grunnleggende og samfunnskritiske spørsmål: -Hva fører det til når store deler av Internettet domineres av få store -aktører og deres styringsverktøy og algoritmer?</p> - -<p>Som individer bør vi være opptatt at grenser blir satt og håndhevet -- grenser for overvåkning av individet, for utøvelse av kommersiell -og politisk påvirkning, og for monopoldannelser i -dataverdenen. Slik grensesetting styrker personvernet.</p> - -<p>Konkurransetilsynet har ansvaret for at konkurranselovens § 11 skal -forby «et dominerende foretak for utilbørlig å utnytte og misbruke -sin dominerende stilling». Et tilsvarende forbud omfattes også av -EØS-avtalens artikkel 54. Boken går i detalj om serien av -innskrenkninger vi møter i valgfriheten, innskrenkninger som denne -lovgivningen nettopp skal forhindre. Håndhevelse av en slik lovgivning -er også til fordel for mindre næringsdrivende som uten dette får -begrenset sine faktiske eller potensielle muligheter for vekst og -etablering. «Slik atferd kan utgjøre et misbruk og kan ta ulike -former», skriver Konkurransetilsynet.</p> - -<p>Cory Doctorow går i sin bok lengre enn det med sine mange eksempler -på forhold det burde vært grepet inn mot.</p> - -<p>«Boken bør bidra til et sterkere engasjemen fra voktere av -Inter­nettet nasjonalt og internasjonalt - EU medregnet» sier -oversetter Ole-Erik Yrvin og fortsetter: «Vi har derfor -<a href="http://people.skolelinux.org/pere/blog/images/2021-01-26-knus-overvaakningskapitalismen-helleland.pdf">allerede -tatt opp bokens forslag</a> direkte med Distrikts- og -digitaliseringsminister Linda Hofstad Helleland (H) og -Konkurransetilsynet slik at de kan følges opp.»</p> - -<p>«Også Norge bør innta en pådriverrolle i denne utviklingen», sier -Petter Reinholdtsen. «Tiden er knapp, og tilsynsmyndighetene må få -de verktøy og de ressurser de trenger for at vi her hjemme skal oppnå -nødvendige resultater. Dette gjelder ikke bare vår egen generasjon; -det gjelder alle generasjoner fremover», avslutter Petter -Reinholdsen.</p> - -<p>Kontaktinformasjon:</p> - -<ul> - -<li>Ole-Erik Yrvin, oeyrvin (at) gmail.com, +47 46500450</li> - -<li>Petter Reinholdtsen, pere (at) hungry.com</li> - -</ul> - -<p>Relevante lenker:<p> - -<ul> - -<li>«Hvordan knuse overvåkingskapitalismen» kan bestilles på papir, -som ebok eller leses på nett via -<a href="http://www.hungry.com/~pere/publisher/">http://www.hungry.com/~pere/publisher/</a>.</li> - -<li>Opptak av NUUG-møtet Monopoly, Not Mind Control: What's Really -Happening With "Surveillance Capitalism" med Cory Doctorow, -<a href="https://www.nuug.no/aktiviteter/20201208-doctorow/">https://www.nuug.no/aktiviteter/20201208-doctorow/</a>.</li> - -<li>Påmelding til webinar som lanserer den engelske utgaven kan gjøres -via -<a href="https://craphound.com/category/destroy/">https://craphound.com/category/destroy/</a>.</li> - -<li>Cory Doctorows nettsted er -<a href="https://craphound.com/">https://craphound.com/</a>.</li> - -</ul> +<p>As usual, if you use Bitcoin and want to show your support of my +activities, please send Bitcoin donations to my address +<b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p> -</blockquote> +<p><strong>Update 2023-06-12</strong>: I got a tip about +<a href="https://wiki.debian.org/PrivacyIssues">a list of privacy +issues in Free Software</a> and the +<a href="irc://irc.debian.org/%23debian-privacy">#debian-privacy IRC +channel</a> discussing these topics.</p> -<p>Som vanlig, hvis du bruker Bitcoin og ønsker å vise din støtte til -det jeg driver med, setter jeg pris på om du sender Bitcoin-donasjoner -til min adresse -<b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>. -Merk, betaling med bitcoin er ikke anonymt. :)</p> - Latest Jami back in Debian Testing, and scriptable using dbus - http://people.skolelinux.org/pere/blog/Latest_Jami_back_in_Debian_Testing__and_scriptable_using_dbus.html - http://people.skolelinux.org/pere/blog/Latest_Jami_back_in_Debian_Testing__and_scriptable_using_dbus.html - Tue, 12 Jan 2021 17:00:00 +0100 - <p>After a lot of hard work by its maintainer Alexandre Viau and -others, the decentralized communication platform -<a href="https://en.wikipedia.org/wiki/Jami_(software)">Jami</a> -(earlier known as Ring), managed to get -<a href="https://tracker.debian.org/pkg/ring">its latest version</a> -into Debian Testing. Several of its dependencies has caused build and -propagation problems, which all seem to be solved now.</p> - -<p>In addition to the fact that Jami is decentralized, similar to how -bittorrent is decentralized, I first of all like how it is not -connected to external IDs like phone numbers. This allow me to set up -computers to send me notifications using Jami without having to find -get a phone number for each computer. Automatic notification via Jami -is also made trivial thanks to the provided client side API (as a DBus -service). Here is my bourne shell script demonstrating how to let any -system send a message to any Jami address. It will create a new -identity before sending the message, if no Jami identity exist -already:</p> - -<p><pre> -#!/bin/sh -# -# Usage: $0 <jami-address> <message> -# -# Send <message> to <jami-address>, create local jami account if -# missing. -# -# License: GPL v2 or later at your choice -# Author: Petter Reinholdtsen - - -if [ -z "$HOME" ] ; then - echo "error: missing \$HOME, required for dbus to work" - exit 1 -fi - -# First, get dbus running if not already running -DBUSLAUNCH=/usr/bin/dbus-launch -PIDFILE=/run/asterisk/dbus-session.pid -if [ -e $PIDFILE ] ; then - . $PIDFILE - if ! kill -0 $DBUS_SESSION_BUS_PID 2>/dev/null ; then - unset DBUS_SESSION_BUS_ADDRESS - fi -fi -if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && [ -x "$DBUSLAUNCH" ]; then - DBUS_SESSION_BUS_ADDRESS="unix:path=$HOME/.dbus" - dbus-daemon --session --address="$DBUS_SESSION_BUS_ADDRESS" --nofork --nopidfile --syslog-only < /dev/null > /dev/null 2>&1 3>&1 & - DBUS_SESSION_BUS_PID=$! - ( - echo DBUS_SESSION_BUS_PID=$DBUS_SESSION_BUS_PID - echo DBUS_SESSION_BUS_ADDRESS=\""$DBUS_SESSION_BUS_ADDRESS"\" - echo export DBUS_SESSION_BUS_ADDRESS - ) > $PIDFILE - . $PIDFILE -fi & - -dringop() { - part="$1"; shift - op="$1"; shift - dbus-send --session \ - --dest="cx.ring.Ring" /cx/ring/Ring/$part cx.ring.Ring.$part.$op $* -} - -dringopreply() { - part="$1"; shift - op="$1"; shift - dbus-send --session --print-reply \ - --dest="cx.ring.Ring" /cx/ring/Ring/$part cx.ring.Ring.$part.$op $* -} - -firstaccount() { - dringopreply ConfigurationManager getAccountList | \ - grep string | awk -F'"' '{print $2}' | head -n 1 -} - -account=$(firstaccount) - -if [ -z "$account" ] ; then - echo "Missing local account, trying to create it" - dringop ConfigurationManager addAccount \ - dict:string:string:"Account.type","RING","Account.videoEnabled","false" - account=$(firstaccount) - if [ -z "$account" ] ; then - echo "unable to create local account" - exit 1 - fi -fi - -# Not using dringopreply to ensure $2 can contain spaces -dbus-send --print-reply --session \ - --dest=cx.ring.Ring \ - /cx/ring/Ring/ConfigurationManager \ - cx.ring.Ring.ConfigurationManager.sendTextMessage \ - string:"$account" string:"$1" \ - dict:string:string:"text/plain","$2" -</pre></p> - -<p>If you want to check it out yourself, visit the -<a href="https://jami.net/">the Jami system project page</a> to learn -more, and install the latest Jami client from Debian Unstable or -Testing.</p> + wmbusmeters, parse data from your utility meter - nice free software + https://people.skolelinux.org/pere/blog/wmbusmeters__parse_data_from_your_utility_meter___nice_free_software.html + https://people.skolelinux.org/pere/blog/wmbusmeters__parse_data_from_your_utility_meter___nice_free_software.html + Fri, 19 May 2023 21:50:00 +0200 + <p>There is a European standard for reading utility meters like water, +gas, electricity or heat distribution meters. The +<a href="https://en.wikipedia.org/wiki/Meter-Bus">Meter-Bus standard +(EN 13757-2, EN 13757-3 and EN 13757–4)</a> provide a cross vendor way +to talk to and collect meter data. I ran into this standard when I +wanted to monitor some heat distribution meters, and managed to find +free software that could do the job. The meters in question broadcast +encrypted messages with meter information via radio, and the hardest +part was to track down the encryption keys from the vendor. With this +in place I could set up a MQTT gateway to submit the meter data for +graphing.</p> + +<p>The free software systems in question, +<a href="https://tracker.debian.org/pkg/rtl-wmbus">rtl-wmbus</a> to +read the messages from a software defined radio, and +<a href="https://tracker.debian.org/pkg/wmbusmeters">wmbusmeters</a> to +decrypt and decode the content of the messages, is working very well +and allowe me to get frequent updates from my meters. I got in touch +with upstream last year to see if there was any interest in publishing +the packages via Debian. I was very happy to learn that Fredrik +Öhrström volunteered to maintain the packages, and I have since +assisted him in getting Debian package build rules in place as well as +sponsoring the packages into the Debian archive. Sadly we completed +it too late for them to become part of the next stable Debian release +(Bookworm). The wmbusmeters package just cleared the NEW queue. It +will need some work to fix a built problem, but I expect Fredrik will +find a solution soon.</p> + +<p>If you got a infrastructure meter supporting the Meter Bus +standard, I strongly recommend having a look at these nice +packages.</p> <p>As usual, if you use Bitcoin and want to show your support of my activities, please send Bitcoin donations to my address @@ -552,109 +249,75 @@ activities, please send Bitcoin donations to my address - Boken «Made with Creative Commons» lanseres på norsk - http://people.skolelinux.org/pere/blog/Boken__Made_with_Creative_Commons__lanseres_p__norsk.html - http://people.skolelinux.org/pere/blog/Boken__Made_with_Creative_Commons__lanseres_p__norsk.html - Sun, 15 Nov 2020 23:50:00 +0100 - <p>Endelig er den norske utgaven av «Made with Creative Commons» -ferdig og publisert. Følgende pressemelding ble nettopp sendt ut: + The 2023 LinuxCNC Norwegian developer gathering + https://people.skolelinux.org/pere/blog/The_2023_LinuxCNC_Norwegian_developer_gathering.html + https://people.skolelinux.org/pere/blog/The_2023_LinuxCNC_Norwegian_developer_gathering.html + Sun, 14 May 2023 20:30:00 +0200 + <p>The LinuxCNC project is making headway these days. A lot of +patches and issues have seen activity on +<a href="https://github.com/LinuxCNC/linuxcnc/">the project github +pages</a> recently. A few weeks ago there was a developer gathering +over at the <a href="https://tormach.com/">Tormach</a> headquarter in +Wisconsin, and now we are planning a new gathering in Norway. If you +wonder what LinuxCNC is, lets quote Wikipedia:</p> <blockquote> - -<p><strong>Boken «Made with Creative Commons» lanseres på norsk</strong></p> - -<p>«Gjort med Creative Commons» er en bok om gjenbruk, deling og den -digitale allmenningen. Boken omhandler å bygge en forretningsmodell på -åpne verdier, endringene i tankesett og filosofi, og fordelene og -praksisen som kommer med å være «åpen».</p> - -<p>Forfatterne Paul Stacey og Sarah Hinchliff Pearson tar oss med inn -i samtaler med 24 mennesker, prosjekter og organisasjoner som på ulike -måter generere inntekter gjennom deling av sine verk. Som leser får -man innsikt i hvordan alt fra forskere, forfattere, kunstnere og -filmskapere tjener penger basert på åpne forretningsmodeller. En av -referansestudiene i denne boken viser hvordan Blender Animation Studio -lager vakre animasjonsfilmer som de publiserer under en fri lisens, -basert på en plattform som er fri programvare.</p> - -<p>Utover praktiske eksempler på forskjellige forretningsmodeller berører -også boken forskjellen mellom tradisjonelle kommersielle virksomheter og -de som tar utgangspunkt i den globale delingskulturen.</p> - -<p>«Hvis du ønsker å lære mer om digital delingskultur og Creative Commons -er dette en bok som både vil inspirere og gi grunnleggende innsikt» sier -leder av Creative Commons Norge, Christer Solheim Gundersen. «De siste -årene har denne globale bevegelsen sett en betydelig vekst med totalt -over 1,6 milliarder verk med CC-lisens tilgjengelig på nett.» - -Nå er den tilgjengelig på norsk takket være liten gruppe frivillige -entusiaster ledet av Petter Reinholdtsen. «På vegne av Creative Commons -Norge vil jeg takke hver enkelt bidragsyter. Dette prosjektet er i seg -selv et inspirerende eksempel på at delingskulturen også har godt -fotfeste her i Norge.», avslutter Gundersen.</p> - -<p>Boken er selvsagt fritt tilgjengelig under en Creative Commons lisens, -og kan også kjøpes som ebok og papirutgave på blant annet Lulu.com og -Amazon.</p> - -<p><strong>Lenker og kontaktinformasjon</strong></p> - -<ul> - -<li>Kontaktpunkt: -<br>Ole-Erik Yrvin (oeyrvin@gmail.com) og -<br>Christer Solheim Gundersen (christer@goopen.no), +47 9341 1360</li> - -<li>Bokens <a href="https://madewith.cc/">engelske nettside</a></li> - -<li>Den <a href="http://www.hungry.com/~pere/publisher/">norske utgavens nettside</a></li> - -<li><a href="https://www.lulu.com/en/us/shop/sarah-hinchliff-pearson-and-paul-stacey-and-bryan-mathers-and-ryan-merkley/gjort-med-creative-commons/paperback/product-m5jy75.html">Papirutgaven fra Lulu</a></li> - -<li><a href="https://www.lulu.com/en/us/shop/sarah-hinchliff-pearson-and-paul-stacey-and-bryan-mathers-and-ryan-merkley/gjort-med-creative-commons/ebook/product-zw2r4k.html">Epub-utgaven fra lulu</a></li> - -</ul> - +"LinuxCNC is a software system for numerical control of +machines such as milling machines, lathes, plasma cutters, routers, +cutting machines, robots and hexapods. It can control up to 9 axes or +joints of a CNC machine using G-code (RS-274NGC) as input. It has +several GUIs suited to specific kinds of usage (touch screen, +interactive development)." </blockquote> -<p>Nå håper jeg bare den får mange lesere, og finner veien under mange -juletrær.</p> - -<p>Som vanlig, hvis du bruker Bitcoin og ønsker å vise din støtte til -det jeg driver med, setter jeg pris på om du sender Bitcoin-donasjoner -til min adresse -<b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>. -Merk, betaling med bitcoin er ikke anonymt. :)</p> +<p>The Norwegian developer gathering take place the weekend June 16th +to 18th this year, and is open for everyone interested in contributing +to LinuxCNC. Up to date information about the gathering can be found +in +<a href="https://sourceforge.net/p/emc/mailman/emc-developers/thread/sa64jp06nob.fsf%40hjemme.reinholdtsen.name/#msg37837251">the +developer mailing list thread</a> where the gathering was announced. +Thanks to the good people at +<a href="https://www.debian.org/">Debian</a>, +<a href="https://www.redpill-linpro.com/">Redpill-Linpro</a> and +<a href="https://www.nuugfoundation.no/no/">NUUG Foundation</a>, we +have enough sponsor funds to pay for food, and shelter for the people +traveling from afar to join us. If you would like to join the +gathering, get in touch.</p> + +<p>As usual, if you use Bitcoin and want to show your support of my +activities, please send Bitcoin donations to my address +<b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p> - Buster based Bokmål edition of Debian Administrator's Handbook - http://people.skolelinux.org/pere/blog/Buster_based_Bokm_l_edition_of_Debian_Administrator_s_Handbook.html - http://people.skolelinux.org/pere/blog/Buster_based_Bokm_l_edition_of_Debian_Administrator_s_Handbook.html - Tue, 20 Oct 2020 18:35:00 +0200 - <p align="center"><img align="center" src="http://people.skolelinux.org/pere/blog/images/2020-10-20-debian-handbook-nb-testprint.jpeg" width="60%"/></p> - -<p>I am happy to report that we finally made it! Norwegian Bokmål -became the first translation published on paper of the new Buster -based edition of "<a href="https://debian-handbook.info/">The Debian -Administrator's Handbook</a>". The print proof reading copy arrived -some days ago, and it looked good, so now the book is approved for -general distribution. This updated paperback edition <a -href="https://debian-handbook.info/get/#norwegian">is available from -lulu.com</a>. The book is also available for download in electronic -form as PDF, EPUB and Mobipocket, and can also be -<a href="https://debian-handbook.info/browse/nb-NO/stable/">read online</a>.</p> - -<p>I am very happy to wrap up this Creative Common licensed project, -which concludes several months of work by several volunteers. The -number of Linux related books published in Norwegian are few, and I -really hope this one will gain many readers, as it is packed with deep -knowledge on Linux and the Debian ecosystem. The book will be -available for various Internet book stores like Amazon and Barnes & -Noble soon, but I recommend buying -"<a href="https://www.lulu.com/en/us/shop/roland-mas-and-rapha%C3%ABl-hertzog/h%C3%A5ndbok-for-debian-administratoren/paperback/product-9j7qwq.html">Håndbok -for Debian-administratoren</a>" directly from the source at Lulu. + OpenSnitch in Debian ready for prime time + https://people.skolelinux.org/pere/blog/OpenSnitch_in_Debian_ready_for_prime_time.html + https://people.skolelinux.org/pere/blog/OpenSnitch_in_Debian_ready_for_prime_time.html + Sat, 13 May 2023 12:10:00 +0200 + <p>A bit delayed, +<a href="https://tracker.debian.org/pkg/opensnitch">the interactive +application firewall OpenSnitch</a> package in Debian now got the +latest fixes ready for Debian Bookworm. Because it depend on a +package missing on some architectures, the autopkgtest check of the +testing migration script did not understand that the tests were +actually working, so the migration was delayed. A bug in the package +dependencies is also fixed, so those installing the firewall package +(opensnitch) now also get the GUI admin tool (python3-opensnitch-ui) +installed by default. I am very grateful to Gustavo Iñiguez Goya for +his work on getting the package ready for Debian Bookworm.</p> + +<p>Armed with this package I have discovered some surprising +connections from programs I believed were able to work completly +offline, and it has already proven its worth, at least to me. If you +too want to get more familiar with the kind of programs using +Internett connections on your machine, I recommend testing <tt>apt +install opensnitch</tt> in Bookworm and see what you think.</p> + +<p>The package is still not able to build its eBPF module within +Debian. Not sure how much work it would be to get it working, but +suspect some kernel related packages need to be extended with more +header files to get it working.</p> <p>As usual, if you use Bitcoin and want to show your support of my activities, please send Bitcoin donations to my address @@ -663,27 +326,143 @@ activities, please send Bitcoin donations to my address - Buster update of Norwegian Bokmål edition of Debian Administrator's Handbook almost done - http://people.skolelinux.org/pere/blog/Buster_update_of_Norwegian_Bokm_l_edition_of_Debian_Administrator_s_Handbook_almost_done.html - http://people.skolelinux.org/pere/blog/Buster_update_of_Norwegian_Bokm_l_edition_of_Debian_Administrator_s_Handbook_almost_done.html - Fri, 11 Sep 2020 09:45:00 +0200 - <p>Thanks to the good work of several volunteers, the updated edition -of the Norwegian translation for -"<a href="https://debian-handbook.info/">The Debian Administrator's -Handbook</a>" is now almost completed. After many months of proof -reading, I consider the proof reading complete enough for us to move -to the next step, and have asked for the print version to be prepared -and sent of to the print on demand service lulu.com. While it is -still not to late if you find any incorrect translations on -<a href="https://hosted.weblate.org/languages/nb_NO/debian-handbook/">the -hosted Weblate service</a>, but it will be soon. :) You can check out -<a href=" https://debian-handbook.info/browse/nb-NO/stable/">the Buster -edition on the web</a> until the print edition is ready.</p> - -<p>The book will be for sale on lulu.com and various web book stores, -with links available from the web site for the book linked to above. -I hope a lot of readers find it useful.</p> + Speech to text, she APTly whispered, how hard can it be? + https://people.skolelinux.org/pere/blog/Speech_to_text__she_APTly_whispered__how_hard_can_it_be_.html + https://people.skolelinux.org/pere/blog/Speech_to_text__she_APTly_whispered__how_hard_can_it_be_.html + Sun, 23 Apr 2023 09:40:00 +0200 + <p>While visiting a convention during Easter, it occurred to me that +it would be great if I could have a digital Dictaphone with +transcribing capabilities, providing me with texts to cut-n-paste into +stuff I need to write. The background is that long drives often bring +up the urge to write on texts I am working on, which of course is out +of the question while driving. With the release of +<a href="https://github.com/openai/whisper/">OpenAI Whisper</a>, this +seem to be within reach with Free Software, so I decided to give it a +go. OpenAI Whisper is a Linux based neural network system to read in +audio files and provide text representation of the speech in that +audio recording. It handle multiple languages and according to its +creators even can translate into a different language than the spoken +one. I have not tested the latter feature. It can either use the CPU +or a GPU with CUDA support. As far as I can tell, CUDA in practice +limit that feature to NVidia graphics cards. I have few of those, as +they do not work great with free software drivers, and have not tested +the GPU option. While looking into the matter, I did discover some +work to provide CUDA support on non-NVidia GPUs, and some work with +the library used by Whisper to port it to other GPUs, but have not +spent much time looking into GPU support yet. I've so far used an old +X220 laptop as my test machine, and only transcribed using its +CPU.</p> + +<p>As it from a privacy standpoint is unthinkable to use computers +under control of someone else (aka a "cloud" service) to transcribe +ones thoughts and personal notes, I want to run the transcribing +system locally on my own computers. The only sensible approach to me +is to make the effort I put into this available for any Linux user and +to upload the needed packages into Debian. Looking at Debian Bookworm, I +discovered that only three packages were missing, +<a href="https://bugs.debian.org/1034307">tiktoken</a>, +<a href="https://bugs.debian.org/1034144">triton</a>, and +<a href="https://bugs.debian.org/1034091">openai-whisper</a>. For a while +I also believed +<a href="https://bugs.debian.org/1034286">ffmpeg-python</a> was +needed, but as its +<a href="https://github.com/kkroening/ffmpeg-python/issues/760">upstream +seem to have vanished</a> I found it safer +<a href="https://github.com/openai/whisper/pull/1242">to rewrite +whisper</a> to stop depending on in than to introduce ffmpeg-python +into Debian. I decided to place these packages under the umbrella of +<a href="https://salsa.debian.org/deeplearning-team">the Debian Deep +Learning Team</a>, which seem like the best team to look after such +packages. Discussing the topic within the group also made me aware +that the triton package was already a future dependency of newer +versions of the torch package being planned, and would be needed after +Bookworm is released.</p> + +<p>All required code packages have been now waiting in +<a href="https://ftp-master.debian.org/new.html">the Debian NEW +queue</a> since Wednesday, heading for Debian Experimental until +Bookworm is released. An unsolved issue is how to handle the neural +network models used by Whisper. The default behaviour of Whisper is +to require Internet connectivity and download the model requested to +<tt>~/.cache/whisper/</tt> on first invocation. This obviously would +fail <a href="https://people.debian.org/~bap/dfsg-faq.html">the +deserted island test of free software</a> as the Debian packages would +be unusable for someone stranded with only the Debian archive and solar +powered computer on a deserted island.</p> + +<p>Because of this, I would love to include the models in the Debian +mirror system. This is problematic, as the models are very large +files, which would put a heavy strain on the Debian mirror +infrastructure around the globe. The strain would be even higher if +the models change often, which luckily as far as I can tell they do +not. The small model, which according to its creator is most useful +for English and in my experience is not doing a great job there +either, is 462 MiB (deb is 414 MiB). The medium model, which to me +seem to handle English speech fairly well is 1.5 GiB (deb is 1.3 GiB) +and the large model is 2.9 GiB (deb is 2.6 GiB). I would assume +everyone with enough resources would prefer to use the large model for +highest quality. I believe the models themselves would have to go +into the non-free part of the Debian archive, as they are not really +including any useful source code for updating the models. The +"source", aka the model training set, according to the creators +consist of "680,000 hours of multilingual and multitask supervised +data collected from the web", which to me reads material with both +unknown copyright terms, unavailable to the general public. In other +words, the source is not available according to the Debian Free +Software Guidelines and the model should be considered non-free.</p> + +<p>I asked the Debian FTP masters for advice regarding uploading a +model package on their IRC channel, and based on the feedback there it +is still unclear to me if such package would be accepted into the +archive. In any case I wrote build rules for a +<a href="https://salsa.debian.org/deeplearning-team/openai-whisper-model">OpenAI +Whisper model package</a> and +<a href="https://github.com/openai/whisper/pull/1257">modified the +Whisper code base</a> to prefer shared files under <tt>/usr/</tt> and +<tt>/var/</tt> over user specific files in <tt>~/.cache/whisper/</tt> +to be able to use these model packages, to prepare for such +possibility. One solution might be to include only one of the models +(small or medium, I guess) in the Debian archive, and ask people to +download the others from the Internet. Not quite sure what to do +here, and advice is most welcome (use the debian-ai mailing list).</p> + +<p>To make it easier to test the new packages while I wait for them to +clear the NEW queue, I created an APT source targeting bookworm. I +selected Bookworm instead of Bullseye, even though I know the latter +would reach more users, is that some of the required dependencies are +missing from Bullseye and I during this phase of testing did not want +to backport a lot of packages just to get up and running.</p> + +<p>Here is a recipe to run as user root if you want to test OpenAI +Whisper using Debian packages on your Debian Bookworm installation, +first adding the APT repository GPG key to the list of trusted keys, +then setting up the APT repository and finally installing the packages +and one of the models:</p> +<p><pre> +curl https://geekbay.nuug.no/~pere/openai-whisper/D78F5C4796F353D211B119E28200D9B589641240.asc \ + -o /etc/apt/trusted.gpg.d/pere-whisper.asc +mkdir -p /etc/apt/sources.list.d +cat > /etc/apt/sources.list.d/pere-whisper.list &lt;&lt;EOF +deb https://geekbay.nuug.no/~pere/openai-whisper/ bookworm main +deb-src https://geekbay.nuug.no/~pere/openai-whisper/ bookworm main +EOF +apt update +apt install openai-whisper +</pre></p> + +<p>The package work for me, but have not yet been tested on any other +computer than my own. With it, I have been able to (badly) transcribe +a 2 minute 40 second Norwegian audio clip to test using the small +model. This took 11 minutes and around 2.2 GiB of RAM. Transcribing +the same file with the medium model gave a accurate text in 77 minutes +using around 5.2 GiB of RAM. My test machine had too little memory to +test the large model, which I believe require 11 GiB of RAM. In +short, this now work for me using Debian packages, and I hope it will +for you and everyone else once the packages enter Debian.</p> + +<p>Now I can start on the audio recording part of this project.</p> + <p>As usual, if you use Bitcoin and want to show your support of my activities, please send Bitcoin donations to my address <b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p> @@ -691,27 +470,66 @@ activities, please send Bitcoin donations to my address - Working on updated Norwegian Bokmål edition of Debian Administrator's Handbook - http://people.skolelinux.org/pere/blog/Working_on_updated_Norwegian_Bokm_l_edition_of_Debian_Administrator_s_Handbook.html - http://people.skolelinux.org/pere/blog/Working_on_updated_Norwegian_Bokm_l_edition_of_Debian_Administrator_s_Handbook.html - Sat, 4 Jul 2020 23:55:00 +0200 - <p>Three years ago, the first Norwegian Bokmål edition of -"<a href="https://debian-handbook.info/">The Debian Administrator's -Handbook</a>" was published. This was based on Debian Jessie. Now a -new and updated version based on Buster is getting ready. Work on the -updated Norwegian Bokmål edition has been going on for a few months -now, and yesterday, we reached the first mile stone, with 100% of the -texts being translated. A lot of proof reading remains, of course, -but a major step towards a new edition has been taken.</p> - -<p>The book is translated by volunteers, and we would love to get some -help with the proof reading. The translation uses -<a href="https://hosted.weblate.org/languages/nb_NO/debian-handbook/">the -hosted Weblate service</a>, and we welcome everyone to have a look and -submit improvements and suggestions. There is also a proof readers -PDF available on request, get in touch if you want to help out that -way.</p> - + rtlsdr-scanner, software defined radio frequency scanner for Linux - nice free software + https://people.skolelinux.org/pere/blog/rtlsdr_scanner__software_defined_radio_frequency_scanner_for_Linux____nice_free_software.html + https://people.skolelinux.org/pere/blog/rtlsdr_scanner__software_defined_radio_frequency_scanner_for_Linux____nice_free_software.html + Fri, 7 Apr 2023 23:10:00 +0200 + <p>Today I finally found time to track down a useful radio frequency +scanner for my software defined radio. Just for fun I tried to locate +the radios used in the areas, and a good start would be to scan all +the frequencies to see what is in use. I've tried to find a useful +program earlier, but ran out of time before I managed to find a useful +tool. This time I was more successful, and after a few false leads I +found a description of +<a href="https://www.kali.org/tools/rtlsdr-scanner/">rtlsdr-scanner +over at the Kali site</a>, and was able to track down +<a href="https://gitlab.com/kalilinux/packages/rtlsdr-scanner.git">the +Kali package git repository</a> to build a deb package for the +scanner. Sadly the package is missing from the Debian project itself, +at least in Debian Bullseye. Two runtime dependencies, +<a href="https://gitlab.com/kalilinux/packages/python-visvis.git">python-visvis</a> +and +<a href="https://gitlab.com/kalilinux/packages/python-rtlsdr.git">python-rtlsdr</a> +had to be built and installed separately. Luckily '<tt>gbp +buildpackage</tt>' handled them just fine and no further packages had +to be manually built. The end result worked out of the box after +installation.</p> + +<p>My initial scans for FM channels worked just fine, so I knew the +scanner was functioning. But when I tried to scan every frequency +from 100 to 1000 MHz, the program stopped unexpectedly near the +completion. After some debugging I discovered USB software radio I +used rejected frequencies above 948 MHz, triggering a unreported +exception breaking the scan. Changing the scan to end at 957 worked +better. I similarly found the lower limit to be around 15, and ended +up with the following full scan:</p> + +<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> + +<p>Saving the scan did not work, but exporting it as a CSV file worked +just fine. I ended up with around 477k CVS lines with dB level for +the given frequency.</p> + +<p>The save failure seem to be a missing UTF-8 encoding issue in the +python code. Will see if I can find time to send a patch +<a href="https://github.com/CdeMills/RTLSDR-Scanner/">upstream</a> +later to fix this exception:</p> + +<pre> +Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/rtlsdr_scanner/main_window.py", line 485, in __on_save + save_plot(fullName, self.scanInfo, self.spectrum, self.locations) + File "/usr/lib/python3/dist-packages/rtlsdr_scanner/file.py", line 408, in save_plot + handle.write(json.dumps(data, indent=4)) +TypeError: a bytes-like object is required, not 'str' +Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/rtlsdr_scanner/main_window.py", line 485, in __on_save + save_plot(fullName, self.scanInfo, self.spectrum, self.locations) + File "/usr/lib/python3/dist-packages/rtlsdr_scanner/file.py", line 408, in save_plot + handle.write(json.dumps(data, indent=4)) +TypeError: a bytes-like object is required, not 'str' +</pre> + <p>As usual, if you use Bitcoin and want to show your support of my activities, please send Bitcoin donations to my address <b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p> @@ -719,67 +537,49 @@ activities, please send Bitcoin donations to my address - Secure Socket API - a simple and powerful approach for TLS support in software - http://people.skolelinux.org/pere/blog/Secure_Socket_API___a_simple_and_powerful_approach_for_TLS_support_in_software.html - http://people.skolelinux.org/pere/blog/Secure_Socket_API___a_simple_and_powerful_approach_for_TLS_support_in_software.html - Sat, 6 Jun 2020 12:40:00 +0200 - <p>As a member of the <a href="https://www.nuug.no/">Norwegian Unix -User Group</a>, I have the pleasure of receiving the -<a href="https://www.usenix.org/">USENIX</a> magazine -<a href="https://www.usenix.org/publications/login/">;login:</a> -several times a year. I rarely have time to read all the articles, -but try to at least skim through them all as there is a lot of nice -knowledge passed on there. I even carry the latest issue with me most -of the time to try to get through all the articles when I have a few -spare minutes.</p> - -<p>The other day I came across a nice article titled -"<a href="https://www.usenix.org/publications/login/winter2018/oneill">The -Secure Socket API: TLS as an Operating System Service</a>" with a -marvellous idea I hope can make it all the way into the POSIX standard. -The idea is as simple as it is powerful. By introducing a new -socket() option IPPROTO_TLS to use TLS, and a system wide service to -handle setting up TLS connections, one both make it trivial to add TLS -support to any program currently using the POSIX socket API, and gain -system wide control over certificates, TLS versions and encryption -systems used. Instead of doing this:</p> - -<p><blockquote><pre> -int socket = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); -</pre></blockquote></p> - -<p>the program code would be doing this:<p> - -<p><blockquote><pre> -int socket = socket(PF_INET, SOCK_STREAM, IPPROTO_TLS); -</pre></blockquote></p> - -<p>According to the ;login: article, converting a C program to use TLS -would normally modify only 5-10 lines in the code, which is amazing -when compared to using for example the OpenSSL API.</p> - -<p>The project has set up the -<a href="https://securesocketapi.org/">https://securesocketapi.org/</a> -web site to spread the idea, and the code for a kernel module and the -associated system daemon is available from two github repositories: -<a href="https://github.com/markoneill/ssa">ssa</a> and -<a href="https://github.com/markoneill/ssa-daemon">ssa-daemon</a>. -Unfortunately there is no explicit license information with the code, -so its copyright status is unclear. A -<a href="https://github.com/markoneill/ssa/issues/2">request to solve -this</a> about it has been unsolved since 2018-08-17.</p> - -<p>I love the idea of extending socket() to gain TLS support, and -understand why it is an advantage to implement this as a kernel module -and system wide service daemon, but can not help to think that it -would be a lot easier to get projects to move to this way of setting -up TLS if it was done with a user space approach where programs -wanting to use this API approach could just link with a wrapper -library.</p> - -<p>I recommend you check out this simple and powerful approach to more -secure network connections. :)</p> - + OpenSnitch available in Debian Sid and Bookworm + https://people.skolelinux.org/pere/blog/OpenSnitch_available_in_Debian_Sid_and_Bookworm.html + https://people.skolelinux.org/pere/blog/OpenSnitch_available_in_Debian_Sid_and_Bookworm.html + Sat, 25 Feb 2023 20:30:00 +0100 + <p>Thanks to the efforts of the OpenSnitch lead developer Gustavo +Iñiguez Goya allowing me to sponsor the upload, +<a href="https://tracker.debian.org/pkg/opensnitch">the interactive +application firewall OpenSnitch</a> is now available in Debian +Testing, soon to become the next stable release of Debian.</p> + +<p>This is a package which set up a network firewall on one or more +machines, which is controlled by a graphical user interface that will +ask the user if a program should be allowed to connect to the local +network or the Internet. If some background daemon is trying to dial +home, it can be blocked from doing so with a simple mouse click, or by +default simply by not doing anything when the GUI question dialog pop +up. A list of all programs discovered using the network is provided +in the GUI, giving the user an overview of how the machine(s) programs +use the network.</p> + +<p>OpenSnitch was uploaded for NEW processing about a month ago, and I +had little hope of it getting accepted and shaping up in time for the +package freeze, but the Debian ftpmasters proved to be amazingly quick +at checking out the package and it was accepted into the archive about +week after the first upload. It is now team maintained under the Go +language team umbrella. A few fixes to the default setup is only in +Sid, and should migrate to Testing/Bookworm in a week.</p> + +<p>During testing I ran into an +<a href="https://github.com/evilsocket/opensnitch/issues/813">issue +with Minecraft server broadcasts disappearing</a>, which was quickly +resolved by the developer with a patch and a proposed configuration +change. I've been told this was caused by the Debian packages default +use if /proc/ information to track down kernel status, instead of the +newer eBPF module that can be used. The reason is simply that +upstream and I have failed to find a way to build the eBPF modules for +OpenSnitch without a complete configured Linux kernel source tree, +which as far as we can tell is unavailable as a build dependency in +Debian. We tried unsuccessfully so far to use the kernel-headers +package. It would be great if someone could provide some clues how to +build eBPF modules on build daemons in Debian, possibly without the full +kernel source.</p> + <p>As usual, if you use Bitcoin and want to show your support of my activities, please send Bitcoin donations to my address <b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p>