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>«Møter vi liv eller død?», pamfletten som inspirerte
</title>
11 <link>https://people.skolelinux.org/pere/blog/_M_ter_vi_liv_eller_d_d____pamfletten_som_inspirerte.html
</link>
12 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/_M_ter_vi_liv_eller_d_d____pamfletten_som_inspirerte.html
</guid>
13 <pubDate>Tue,
4 Jun
2024 11:
30:
00 +
0200</pubDate>
14 <description><img align=
"center
" src=
"https://people.skolelinux.org/pere/blog/images/
2024-
06-
04-bok-elsa-laula.svg
" width=
"20%
" align=
"center
" border=
"1"></a
>
16 <p
>Da jeg I høst hørte jeg et innslag på
17 <a href=
"https://radiorakel.no/
">radiOrakel
</a
> om en inspirerende dame
18 som levde for over hundre år siden, fikk jeg en vill ide. Elsa Laula
19 var en svensk samisk dame som ikke bare fikk utdannelsen finansiert av
20 den danske dronningen, men som gjorde så god jobb med å inspirere og
21 organisere den samiske befolkningen at det visstnok ble forslått i
22 Sverige å straffeforfølge henne for oppvigleri før hun flyttet fra
23 Sverige til Norge. Radiopraterne fortalte videre at da Elsa Laula ga
24 ut en pamflett for å inspirere samene til samling var dette den
25 første bok gitt ut av en samisk dame noensinne. Jeg fikk høre at
26 denne korte teksten kun fantes på originalspråket svensk under
27 tittelen «Inför lif eller död» og aldri var oversatt til norsk. Da
28 tenkte jeg, der jeg satt i bilen, at en norsk utgave kan vel jeg
29 fikse. Jeg har jo fått oversatt endel bøker, og en liten pamflett på
30 noen få sider burde jo være grei skuring.
</p
>
32 <p
>Den imponerende Elsa Laula, som senere la til etternavnet Renberg, har
33 blant annet fått dokumentaren
34 «
<a href=
"https://www.nrk.no/video/elsa-laula-renberg-kvinnen-som-samlet-sapmi_SAPP67002117
">Elsa
35 Laula Renberg, kvinnen som samlet Sápmi
</a
>» (
2017) av Per Kristian
36 Olsen på NRK, NRK-artikkelen
37 «
<a href=
"https://www.nrk.no/kultur/xl/et-liv-i-kamp-for-samefolkets-rettigheter-
1.13351401">Samenes
38 Jeanne d’Arc
</a
>» av Karen Brodshaug Sveen (
2017), oppgaven
39 «
<a href=
"https://nordligefolk.no/wp-content/uploads/
2020/
03/Elsa-Laulas-Info%CC%
88r-Lif-och-Do%CC%
88d.pdf
">Elsa
40 Laulas Innför lif och död – sanningsord i de lappska
41 förhållandena
</a
>» av Edel Olsen, biografien
42 «
<a href=
"https://www.siribrochjohansen.no/biografien-om-elsa-laula-renberg/
">Elsa
43 Laula Renberg - Historien om samefolkets store Minerva
</a
>» (
2015) av
44 Siri Broch Johansen og radiOrakel-podkasten
45 <a href=
"https://radiorakel.no/podcast/revolusjonen-har-et-kvinnelig-ansikt-elsa-laula/
">Revolusjonen
46 har et kvinnelig ansikt – Elsa Laula
</a
>, for å nevne de jeg har
47 finnet uten å lete spesielt hardt. En virkelig spennende dame, som i
48 tillegg til å inspirere til opprettelsen av samiske organisasjoner,
49 har inspirert til opprettelsen av Sametinget, og født seks barn der
50 fire vokste opp.
</p
>
52 <p
>I dag er jeg veldig glad for å kunne annonsere at
53 <a href=
"http://www.hungry.com/~pere/publisher/#infoerlifellerdoed2024
">bokmålsoversettelsen
54 er klar og tilgjengelig
</a
> for både bestilling på papir og
55 epub-utgave fra lulu.com, samt som nettside. Den kringkastede
56 bokinformasjonen ser slik ut:
</p
>
60 <p
>Den
27 år gamle sørsamiske kvinnen Elsa Laula ga i august
1904 ut
61 en pamflett i Stockholm. Opplaget var på
6000, finansiert av
62 Stockholmsredaktøren Gustav Hedenström, som også bidro i stiftelsen av
63 Lapparnes Centralforbund. Dette kampskriftet var den først boken gitt
64 ut av en samisk kvinne, og hadde som mål å inspirere til opprettelsen
65 av samiske foreninger over hele landet, samt skape blest om
66 sentralforbundet. Pamfletten er et politisk manifest som fortsatt
67 inspirerer i dag.
</p
>
69 <p
>Denne pamfletten er nå for første gang tilgjengelig på bokmål,
70 sammen med en nyutgivelse av originalteksten på svensk.
</p
>
74 <p
>Oversettelsen hadde ikke vært mulig uten gode hjelpere. En virkelig
75 stor innsats både i korrekturarbeidet og utforskning av arkaiske
76 svenske ord, står Axel Rosén bak. I tillegg har jeg fått innspill fra
77 Edel May Karlsen og flere andre både på språkføring og historisk
78 bakgrunn for å forstå teksten.
</p
>
80 <p
>En kuriositet som jeg oppdaget i arbeidet med oversettelsen er at
81 det ikke stemmer at denne boken ikke var oversatt til noen andre
82 språk. Anna Wuolab oversatte den til nordsamisk i
2017 i en utgave
83 gitt ut av samisk skribent- och författarförening (Bágu čálliid
84 searvi) under tittelen «Eallit vai jápmit? : duohtavuođasánit sámi
85 diliid birra = Inför lif eller död? : sanningsord i de lappska
86 förhållandena». Papirutgaven er så vidt jeg kan forstå utsolgt fra
87 forlaget og jeg har ikke klart å finne informasjonsside om boken på
88 Internett. Mulig den er mulig å få tak i som ebok, hvis en skal tro
89 <a href=
"https://search.worldcat.org/title/
1405213087">oppføring i
90 worldcat
</a
>.
</p
>
92 <p
>Oversetterrammeverket jeg har satt opp for å gjennomføre dette
93 oversettelsesprosjektet håndterer flere språk. Jeg er igang med
94 engelsk utgave, og er åpen for å også gi ut andre oversettelser hvis
95 noen er interessert i å gjøre jobben. Det hadde vært ekstra moro å gi
96 den ut på sørsamisk, det samiske språket i regionen der Elsa Laula kom
97 fra. Der er jeg som vanlig avhengig av frivillige som er også
98 interessert i å gjøre dette på dugnat.
</p
>
100 <p
>Som vanlig, hvis du bruker Bitcoin og ønsker å vise din støtte til
101 det jeg driver med, setter jeg pris på om du sender Bitcoin-donasjoner
103 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>. Merk,
104 betaling med bitcoin er ikke anonymt. :)
</p
>
109 <title>The
2024 LinuxCNC Norwegian developer gathering
</title>
110 <link>https://people.skolelinux.org/pere/blog/The_2024_LinuxCNC_Norwegian_developer_gathering.html
</link>
111 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/The_2024_LinuxCNC_Norwegian_developer_gathering.html
</guid>
112 <pubDate>Fri,
31 May
2024 07:
45:
00 +
0200</pubDate>
113 <description><p
><a href=
"https://linuxcnc.org/
">The LinuxCNC project
</a
> is still
114 going strong. And I believe this great software system for numerical control of
115 machines such as milling machines, lathes, plasma cutters, routers,
116 cutting machines, robots and hexapods, would do even better with more
117 in-person developer gatherings, so we plan to organise such gathering
118 this summer too.
</p
>
120 <p
>The Norwegian LinuxCNC developer gathering take place the weekend
121 Friday July
5th to
7th this year, and is open for everyone interested
122 in contributing to LinuxCNC and free software manufacturing. Up to
123 date information about the gathering can be found in
124 <a href=
"https://sourceforge.net/p/emc/mailman/emc-developers/thread/
123eaae0-f3b9-
4170-a251-b7d608f1e974%
40bofh.no/
">the
125 developer mailing list thread
</a
> where the gathering was announced.
126 Thanks to the good people at
128 <a href=
"https://www.debian.org/
">Debian
</a
> as well as leftover money
129 from last years gathering from
130 <a href=
"https://www.redpill-linpro.com/
">Redpill-Linpro
</a
> and
131 <a href=
"https://www.nuugfoundation.no/no/
">NUUG Foundation
</a
>, we
132 have enough sponsor funds to pay for food, and probably also shelter
133 for the people traveling from afar to join us. If you would like to
134 join the gathering, get in touch and add your details on
135 <a href=
"https://pad.efn.no/p/linuxcnc-
2024-norway
">the pad
</a
>.
</p
>
137 <p
>As usual, if you use Bitcoin and want to show your support of my
138 activities, please send Bitcoin donations to my address
139 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
144 <title>45 orphaned Debian packages moved to git,
391 to go
</title>
145 <link>https://people.skolelinux.org/pere/blog/
45_orphaned_Debian_packages_moved_to_git__391_to_go.html
</link>
146 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/
45_orphaned_Debian_packages_moved_to_git__391_to_go.html
</guid>
147 <pubDate>Thu,
25 Apr
2024 22:
00:
00 +
0200</pubDate>
148 <description><p
>Nine days ago, I started migrating orphaned Debian packages with no
149 version control system listed in debian/control of the source to git.
150 At the time there were
438 such packages. Now there are
391,
151 according to the UDD. In reality it is slightly less, as there is a
152 delay between uploads and UDD updates. In the nine days since, I have
153 thus been able to work my way through ten percent of the packages. I
154 am starting to run out of steam, and hope someone else will also help
155 brushing some dust of these packages. Here is a recipe how to do it.
157 I start by picking a random package by querying the UDD for a list of
158 10 random packages from the set of remaining packages:
160 <blockquote
><pre
>
161 PGPASSWORD=
"udd-mirror
" psql --port=
5432 --host=udd-mirror.debian.net \
162 --username=udd-mirror udd -c
"select source from sources \
163 where release =
'sid
' and (vcs_url ilike
'%anonscm.debian.org%
' \
164 OR vcs_browser ilike
'%anonscm.debian.org%
' or vcs_url IS NULL \
165 OR vcs_browser IS NULL) AND maintainer ilike
'%packages@qa.debian.org%
' \
166 order by random() limit
10;
"
167 </pre
></blockquote
>
169 <p
>Next, I visit http://salsa.debian.org/debian and search for the
170 package name, to ensure no git repository already exist. If it does,
171 I clone it and try to get it to an uploadable state, and add the Vcs-*
172 entries in d/control to make the repository more widely known. These
173 packages are a minority, so I will not cover that use case here.
</p
>
175 <p
>For packages without an existing git repository, I run the
176 following script
<tt
>debian-snap-to-salsa
</tt
> to prepare a git
177 repository with the existing packaging.
</p
>
179 <blockquote
><pre
>
182 # See also https://bugs.debian.org/
804722#
31
186 # Move to this Standards-Version.
191 if [ -z
"$PKG
" ]; then
192 echo
"usage: $
0 <pkgname
>"
196 if [ -e
"${PKG}-salsa
" ]; then
197 echo
"error: ${PKG}-salsa already exist, aborting.
"
201 if [ -z
"ALLOWFAILURE
" ] ; then
205 # Fetch every snapshotted source package. Manually loop until all
206 # transfers succeed, as
'gbp import-dscs --debsnap
' do not fail on
208 until debsnap --force -v $PKG || $ALLOWFAILURE ; do sleep
1; done
209 mkdir ${PKG}-salsa; cd ${PKG}-salsa
212 # Specify branches to override any debian/gbp.conf file present in the
214 gbp import-dscs --debian-branch=master --upstream-branch=upstream \
215 --pristine-tar ../source-$PKG/*.dsc
217 # Add Vcs pointing to Salsa Debian project (must be manually created
219 if ! grep -q ^Vcs- debian/control ; then
220 awk
"BEGIN { s=
1 } /^\$/ { if (s==
1) { print \
"Vcs-Browser: https://salsa.debian.org/debian/$PKG\
"; print \
"Vcs-Git: https://salsa.debian.org/debian/$PKG.git\
" }; s=
0 } { print }
" < debian/control
> debian/control.new
&& mv debian/control.new debian/control
221 git commit -m
"Updated vcs in d/control to Salsa.
" debian/control
224 # Tell gbp to enforce the use of pristine-tar.
225 inifile +inifile debian/gbp.conf +create +section DEFAULT +key pristine-tar +value True
226 git add debian/gbp.conf
227 git commit -m
"Added d/gbp.conf to enforce the use of pristine-tar.
" debian/gbp.conf
229 # Update to latest Standards-Version.
230 SV=
"$(grep ^Standards-Version: debian/control|awk
'{print $
2}
')
"
231 if [ $SV_LATEST != $SV ]; then
232 sed -i
"s/\(Standards-Version: \)\(.*\)/\
1$SV_LATEST/
" debian/control
233 git commit -m
"Updated Standards-Version from $SV to $SV_LATEST.
" debian/control
236 if grep -q pkg-config debian/control; then
237 sed -i s/pkg-config/pkgconf/ debian/control
238 git commit -m
"Replaced obsolete pkg-config build dependency with pkgconf.
" debian/control
241 if grep -q libncurses5-dev debian/control; then
242 sed -i s/libncurses5-dev/libncurses-dev/ debian/control
243 git commit -m
"Replaced obsolete libncurses5-dev build dependency with libncurses-dev.
" debian/control
245 </pre
></blockquote
>
247 Some times the debsnap script fail to download some of the versions.
248 In those cases I investigate, and if I decide the failing versions
249 will not be missed, I call it using ALLOWFAILURE=true to ignore the
250 problem and create the git repository anyway.
</p
>
252 <p
>With the git repository in place, I do a test build (gbp
253 buildpackage) to ensure the build is actually working. If it does not
254 I pick a different package, or if the build failure is trivial to fix,
255 I fix it before continuing. At this stage I revisit
256 http://salsa.debian.org/debian and create the project under this group
257 for the package. I then follow the instructions to publish the local
258 git repository. Here is from a recent example:
</p
>
260 <blockquote
><pre
>
261 git remote add origin git@salsa.debian.org:debian/perl-byacc.git
262 git push --set-upstream origin master upstream pristine-tar
264 </pre
></blockquote
>
266 <p
>With a working build, I have a look at the build rules if I want to
267 remove some more dust. I normally try to move to debhelper compat
268 level
13, which involves removing debian/compat and modifying
269 debian/control to build depend on debhelper-compat (=
13). I also test
270 with
'Rules-Requires-Root: no
' in debian/control and verify in
271 debian/rules that hardening is enabled, and include all of these if
272 the package still build. If it fail to build with level
13, I try
273 with
12,
11,
10 and so on until I find a level where it build, as I do
274 not want to spend a lot of time fixing build issues.
</p
>
276 <p
>Some times, when I feel inspired, I make sure debian/copyright is
277 converted to the machine readable format, often by starting with
278 'debhelper -cc
' and then cleaning up the autogenerated content until
279 it matches realities. If I feel like it, I might also clean up
280 non-dh-based debian/rules files to use the short style dh build
283 <p
>Once I have removed all the dust I care to process for the package,
284 I run
'gbp dch
' to generate a debian/changelog entry based on the
285 commits done so far, run
'dch -r
' to switch from
'UNRELEASED
' to
286 'unstable
' and get an editor to make sure the
'QA upload
' marker is in
287 place and that all long commit descriptions are wrapped into sensible
288 lengths, run
'debcommit --release -a
' to commit and tag the new
289 debian/changelog entry, run
'debuild -S
' to build a source only
290 package, and
'dput ../perl-byacc_2.0-
10_source.changes
' to do the
291 upload. During the entire process, and many times per step, I run
292 'debuild
' to verify the changes done still work. I also some times
293 verify the set of built files using
'find debian
' to see if I can spot
294 any problems (like no file in usr/bin any more or empty package). I
295 also try to fix all lintian issues reported at the end of each
296 'debuild
' run.
</p
>
298 <p
>If I find Debian specific patches, I try to ensure their metadata
299 is fairly up to date and some times I even try to reach out to
300 upstream, to make the upstream project aware of the patches. Most of
301 my emails bounce, so the success rate is low. For projects with no
302 Homepage entry in debian/control I try to track down one, and for
303 packages with no debian/watch file I try to create one. But at least
304 for some of the packages I have been unable to find a functioning
305 upstream, and must skip both of these.
</p
>
307 <p
>If I could handle ten percent in nine days, twenty people could
308 complete the rest in less then five days. I use approximately twenty
309 minutes per package, when I have twenty minutes spare time to spend.
310 Perhaps you got twenty minutes to spare too?
</p
>
312 <p
>As usual, if you use Bitcoin and want to show your support of my
313 activities, please send Bitcoin donations to my address
314 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
316 <p
><strong
>Update
2024-
05-
04:
</strong
> There is
317 <a href=
"https://people.skolelinux.org/pere/blog/images/
2024-
05-
04-debian-snap-to-salsa.sh
">an
318 updated edition of my migration script
</a
>, last updated
319 2024-
05-
04.
</p
>
324 <title>RAID status from LSI Megaraid controllers in Debian
</title>
325 <link>https://people.skolelinux.org/pere/blog/RAID_status_from_LSI_Megaraid_controllers_in_Debian.html
</link>
326 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/RAID_status_from_LSI_Megaraid_controllers_in_Debian.html
</guid>
327 <pubDate>Wed,
17 Apr
2024 17:
00:
00 +
0200</pubDate>
328 <description><p
>I am happy to report that
329 <a href=
"https://github.com/namiltd/megactl
">the megactl package
</a
>,
330 useful to fetch RAID status when using the LSI Megaraid controller,
331 now is available in Debian. It passed NEW a few days ago, and is now
332 <a href=
"https://tracker.debian.org/pkg/megactl
">available in
333 unstable
</a
>, and probably showing up in testing in a weeks time. The
334 new version should provide Appstream hardware mapping and should
335 integrate nicely with isenkram.
</p
>
337 <p
>As usual, if you use Bitcoin and want to show your support of my
338 activities, please send Bitcoin donations to my address
339 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
345 <title>Time to move orphaned Debian packages to git
</title>
346 <link>https://people.skolelinux.org/pere/blog/Time_to_move_orphaned_Debian_packages_to_git.html
</link>
347 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/Time_to_move_orphaned_Debian_packages_to_git.html
</guid>
348 <pubDate>Sun,
14 Apr
2024 09:
30:
00 +
0200</pubDate>
349 <description><p
>There are several packages in Debian without a associated git
350 repository with the packaging history. This is unfortunate and it
351 would be nice if more of these would do so. Quote a lot of these are
352 without a maintainer, ie listed as maintained by the
353 '<a href=
"https://qa.debian.org/developer.php?email=packages%
40qa.debian.org
">Debian
354 QA Group
</a
>' place holder. In fact,
438 packages have this property
355 according to UDD (
<tt
>SELECT source FROM sources WHERE release =
'sid
'
356 AND (vcs_url ilike
'%anonscm.debian.org%
' OR vcs_browser ilike
357 '%anonscm.debian.org%
' or vcs_url IS NULL OR vcs_browser IS NULL) AND
358 maintainer ilike
'%packages@qa.debian.org%
';
</tt
>). Such packages can
359 be updated without much coordination by any Debian developer, as they
360 are considered orphaned.
</p
>
362 <p
>To try to improve the situation and reduce the number of packages
363 without associated git repository, I started a few days ago to search
364 out candiates and provide them with a git repository under the
365 'debian
' collaborative Salsa project. I started with the packages
366 pointing to obsolete Alioth git repositories, and am now working my
367 way across the ones completely without git references. In addition to
368 updating the Vcs-* debian/control fields, I try to update
369 Standards-Version, debhelper compat level, simplify d/rules, switch to
370 Rules-Requires-Root: no and fix lintian issues reported. I only
371 implement those that are trivial to fix, to avoid spending too much
372 time on each orphaned package. So far my experience is that it take
373 aproximately
20 minutes to convert a package without any git
374 references, and a lot more for packages with existing git repositories
375 incompatible with git-buildpackages.
</p
>
377 <p
>So far I have converted
10 packages, and I will keep going until I
378 run out of steam. As should be clear from the numbers, there is
379 enough packages remaining for more people to do the same without
380 stepping on each others toes. I find it useful to start by searching
381 for a git repo already on salsa, as I find that some times a git repo
382 has already been created, but no new version is uploaded to Debian
383 yet. In those cases I start with the existing git repository. I
384 convert to the git-buildpackage+pristine-tar workflow, and ensure a
385 debian/gbp.conf file with
"pristine-tar=True
" is added early, to avoid
386 uploading a orig.tar.gz with the wrong checksum by mistake. Did that
387 three times in the begin before I remembered my mistake.
</p
>
389 <p
>So, if you are a Debian Developer and got some spare time, perhaps
390 considering migrating some orphaned packages to git?
</p
>
392 <p
>As usual, if you use Bitcoin and want to show your support of my
393 activities, please send Bitcoin donations to my address
394 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
399 <title>Plain text accounting file from your bitcoin transactions
</title>
400 <link>https://people.skolelinux.org/pere/blog/Plain_text_accounting_file_from_your_bitcoin_transactions.html
</link>
401 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/Plain_text_accounting_file_from_your_bitcoin_transactions.html
</guid>
402 <pubDate>Thu,
7 Mar
2024 18:
00:
00 +
0100</pubDate>
403 <description><p
>A while back I wrote a small script to extract the Bitcoin
404 transactions in a wallet in the
405 <ahref=
"https://plaintextaccounting.org/
">ledger plain text accounting
406 format
</a
>. The last few days I spent some time to get it working
407 better with more special cases. In case it can be useful for others,
408 here is a copy:
</p
>
410 <p
><blockquote
><pre
>
412 # -*- coding: utf-
8 -*-
413 # Copyright (c)
2023-
2024 Petter Reinholdtsen
415 from decimal import Decimal
422 def format_float(num):
423 return numpy.format_float_positional(num, trim=
'-
')
426 u
'amount
' :
'Assets:BTC:main
',
430 '<some address
>' :
'Assets:bankkonto
',
431 '<some address
>' :
'Assets:bankkonto
',
435 proc = subprocess.Popen(cmd,stdout=subprocess.PIPE)
436 j = json.loads(proc.communicate()[
0], parse_float=Decimal)
440 # get all transactions for all accounts / addresses
445 cmd = [
'bitcoin-cli
',
'listtransactions
',
'*
', str(limit)]
447 txs.extend(exec_json(cmd))
449 # Useful for debugging
450 with open(
'transactions.json
') as f:
451 txs.extend(json.load(f, parse_float=Decimal))
453 for tx in sorted(txs, key=lambda a: a[
'time
']):
454 # print tx[
'category
']
455 if
'abandoned
' in tx and tx[
'abandoned
']:
457 if
'confirmations
' in tx and
0 >= tx[
'confirmations
']:
459 when = time.strftime(
'%Y-%m-%d %H:%M
', time.localtime(tx[
'time
']))
460 if
'message
' in tx:
461 desc = tx[
'message
']
462 elif
'comment
' in tx:
463 desc = tx[
'comment
']
464 elif
'label
' in tx:
465 desc = tx[
'label
']
468 print(
"%s %s
" % (when, desc))
469 if
'address
' in tx:
470 print(
" ; to bitcoin address %s
" % tx[
'address
'])
472 print(
" ; missing address in transaction, txid=%s
" % tx[
'txid
'])
473 print(f
" ; amount={tx[
'amount
']}
")
474 if
'fee
'in tx:
475 print(f
" ; fee={tx[
'fee
']}
")
476 for f in accounts.keys():
477 if f in tx and Decimal(
0) != tx[f]:
479 print(
" %-
20s %s BTC
" % (accounts[f], format_float(amount)))
480 if
'fee
' in tx and Decimal(
0) != tx[
'fee
']:
481 # Make sure to list fee used in several transactions only once.
482 if
'fee
' in tx and tx[
'txid
'] in txidfee \
483 and tx[
'fee
'] == txidfee[tx[
'txid
']]:
486 fee = tx[
'fee
']
487 print(
" %-
20s %s BTC
" % (accounts[
'amount
'], format_float(fee)))
488 print(
" %-
20s %s BTC
" % (
'Expences:BTC-fee
', format_float(-fee)))
489 txidfee[tx[
'txid
']] = tx[
'fee
']
491 if
'address
' in tx and tx[
'address
'] in addresses:
492 print(
" %s
" % addresses[tx[
'address
']])
494 if
'generate
' == tx[
'category
']:
495 print(
" Income:BTC-mining
")
497 if amount
< Decimal(
0):
498 print(f
" Assets:unknown:sent:update-script-addr-{tx[
'address
']}
")
500 print(f
" Assets:unknown:received:update-script-addr-{tx[
'address
']}
")
504 print(
"# Found %d transactions
" % c)
506 print(f
"# Warning: Limit {limit} reached, consider increasing limit.
")
512 </pre
></blockquote
></p
>
514 <p
>It is more of a proof of concept, and I do not expect it to handle
515 all edge cases, but it worked for me, and perhaps you can find it
516 useful too.
</p
>
518 <p
>To get a more interesting result, it is useful to map accounts sent
519 to or received from to accounting accounts, using the
520 <tt
>addresses
</tt
> hash. As these will be very context dependent, I
521 leave out my list to allow each user to fill out their own list of
522 accounts. Out of the box,
'ledger reg BTC:main
' should be able to
523 show the amount of BTCs present in the wallet at any given time in the
524 past. For other and more valuable analysis, a account plan need to be
525 set up in the
<tt
>addresses
</tt
> hash. Here is an example
526 transaction:
</p
>
528 <p
><blockquote
><pre
>
529 2024-
03-
07 17:
00 Donated to good cause
530 Assets:BTC:main -
0.1 BTC
531 Assets:BTC:main -
0.00001 BTC
532 Expences:BTC-fee
0.00001 BTC
533 Expences:donations
0.1 BTC
534 </pre
></blockquote
></p
>
536 <p
>It need a running Bitcoin Core daemon running, as it connect to it
537 using
<tt
>bitcoin-cli listtransactions *
100000</tt
> to extract the
538 transactions listed in the Wallet.
</p
>
540 <p
>As usual, if you use Bitcoin and want to show your support of my
541 activities, please send Bitcoin donations to my address
542 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
547 <title>RAID status from LSI Megaraid controllers using free software
</title>
548 <link>https://people.skolelinux.org/pere/blog/RAID_status_from_LSI_Megaraid_controllers_using_free_software.html
</link>
549 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/RAID_status_from_LSI_Megaraid_controllers_using_free_software.html
</guid>
550 <pubDate>Sun,
3 Mar
2024 22:
40:
00 +
0100</pubDate>
551 <description><p
>The last few days I have revisited RAID setup using the LSI
552 Megaraid controller. These are a family of controllers called PERC by
553 Dell, and is present in several old PowerEdge servers, and I recently
554 got my hands on one of these. I had forgotten how to handle this RAID
555 controller in Debian, so I had to take a peek in the
556 <a href=
"https://wiki.debian.org/LinuxRaidForAdmins
">Debian wiki page
557 "Linux and Hardware RAID: an administrator
's summary
"</a
> to remember
558 what kind of software is available to configure and monitor the disks
559 and controller. I prefer Free Software alternatives to proprietary
560 tools, as the later tend to fall into disarray once the manufacturer
561 loose interest, and often do not work with newer Linux Distributions.
562 Sadly there is no free software tool to configure the RAID setup, only
563 to monitor it. RAID can provide improved reliability and resilience in
564 a storage solution, but only if it is being regularly checked and any
565 broken disks are being replaced in time. I thus want to ensure some
566 automatic monitoring is available.
</p
>
568 <p
>In the discovery process, I came across a old free software tool to
569 monitor PERC2, PERC3, PERC4 and PERC5 controllers, which to my
570 surprise is not present in debian. To help change that I created a
571 <a href=
"https://bugs.debian.org/
1065322">request for packaging of the
572 megactl package
</a
>, and tried to track down a usable version.
573 <a href=
"https://sourceforge.net/p/megactl/
">The original project
574 site
</a
> is on Sourceforge, but as far as I can tell that project has
575 been dead for more than
15 years. I managed to find a
576 <a href=
"https://github.com/hmage/megactl
">more recent fork on
577 github
</a
> from user hmage, but it is unclear to me if this is still
578 being maintained. It has not seen much improvements since
2016. A
579 <a href=
"https://github.com/namiltd/megactl
">more up to date
580 edition
</a
> is a git fork from the original github fork by user
581 namiltd, and this newer fork seem a lot more promising. The owner of
582 this github repository has replied to change proposals within hours,
583 and had already added some improvements and support for more hardware.
584 Sadly he is reluctant to commit to maintaining the tool and stated in
585 <a href=
"https://github.com/namiltd/megactl/pull/
1">my first pull
586 request
</A
> that he think a new release should be made based on the
587 git repository owned by hmage. I perfectly understand this
588 reluctance, as I feel the same about maintaining yet another package
589 in Debian when I barely have time to take care of the ones I already
590 maintain, but do not really have high hopes that hmage will have time
591 to spend on it and hope namiltd will change his mind.
</p
>
593 <p
>In any case, I created
594 <a href=
"https://salsa.debian.org/debian/megactl
">a draft package
</a
>
595 based on the namiltd edition and put it under the debian group on
596 salsa.debian.org. If you own a Dell PowerEdge server with one of the
597 PERC controllers, or any other RAID controller using the megaraid or
598 megaraid_sas Linux kernel modules, you might want to check it out. If
599 enough people are interested, perhaps the package will make it into
600 the Debian archive.
</p
>
602 <p
>There are two tools provided, megactl for the megaraid Linux kernel
603 module, and megasasctl for the megaraid_sas Linux kernel module. The
604 simple output from the command on one of my machines look like this
605 (yes, I know some of the disks have problems. :).
</p
>
609 a0 PERC H730 Mini encl:
1 ldrv:
2 batt:good
610 a0d0
558GiB RAID
1 1x2 optimal
611 a0d1
3067GiB RAID
0 1x11 optimal
612 a0e32s0
558GiB a0d0 online errs: media:
0 other:
19
613 a0e32s1
279GiB a0d1 online
614 a0e32s2
279GiB a0d1 online
615 a0e32s3
279GiB a0d1 online
616 a0e32s4
279GiB a0d1 online
617 a0e32s5
279GiB a0d1 online
618 a0e32s6
279GiB a0d1 online
619 a0e32s8
558GiB a0d0 online errs: media:
0 other:
17
620 a0e32s9
279GiB a0d1 online
621 a0e32s10
279GiB a0d1 online
622 a0e32s11
279GiB a0d1 online
623 a0e32s12
279GiB a0d1 online
624 a0e32s13
279GiB a0d1 online
629 <p
>In addition to displaying a simple status report, it can also test
630 individual drives and print the various event logs. Perhaps you too
631 find it useful?
</p
>
633 <p
>In the packaging process I provided some patches upstream to
634 improve installation and ensure
635 <ahref=
"https://github.com/namiltd/megactl/pull/
2">a Appstream
636 metainfo file is provided
</a
> to list all supported HW, to allow
637 <a href=
"https://tracker.debian.org/isenkram
">isenkram
</a
> to propose
638 the package on all servers with a relevant PCI card.
</p
>
640 <p
>As usual, if you use Bitcoin and want to show your support of my
641 activities, please send Bitcoin donations to my address
642 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
648 <title>Frokostseminar om Noark
5 i Oslo tirsdag
2024-
03-
12</title>
649 <link>https://people.skolelinux.org/pere/blog/Frokostseminar_om_Noark_5_i_Oslo_tirsdag_2024_03_12.html
</link>
650 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/Frokostseminar_om_Noark_5_i_Oslo_tirsdag_2024_03_12.html
</guid>
651 <pubDate>Tue,
27 Feb
2024 15:
15:
00 +
0100</pubDate>
652 <description><p
>Nikita-prosjektet, der jeg er involvert, inviterer i samarbeid med
653 Oslo Byarkiv, forskningsgruppen METAINFO og foreningen NUUG, til et
654 frokostseminar om Noark
5 og Noark
5 Tjenestegrensesnitt tirsdag
655 2024-
03-
12. Seminaret finner sted ved Oslo byarkiv. Vi håper å få
656 til videostrømming via Internett av presentasjoner og paneldiskusjon.
657 Oppdatert program og lenker til påmeldingsskjema er
658 <a href=
"https://noark.codeberg.page/noark5-seminars/
2023-
03-
12-noark-workshop.html
">tilgjengelig
659 fra Nikita-prosjektet
</a
>. Arrangementet er gratis.
661 <p
>Som vanlig, hvis du bruker Bitcoin og ønsker å vise din støtte til
662 det jeg driver med, setter jeg pris på om du sender Bitcoin-donasjoner
664 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>. Merk,
665 betaling med bitcoin er ikke anonymt. :)
</p
>
670 <title>Welcome out of prison, Mickey, hope you find some freedom!
</title>
671 <link>https://people.skolelinux.org/pere/blog/Welcome_out_of_prison__Mickey__hope_you_find_some_freedom_.html
</link>
672 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/Welcome_out_of_prison__Mickey__hope_you_find_some_freedom_.html
</guid>
673 <pubDate>Mon,
1 Jan
2024 21:
00:
00 +
0100</pubDate>
674 <description><p align=
"center
"><img src=
"https://people.skolelinux.org/pere/blog/images/
2024-
01-
01-mikke-verk-i-det-fri.jpeg
"/
></p
>
676 <p
>Today, the animation figure Mickey Mouse finally was released from
677 the corporate copyright prison, as the
1928 movie
678 <a href=
"https://en.wikipedia.org/wiki/Steamboat_Willie
">Steamboat
679 Willie
</a
> entered the public domain in USA. This movie was the first
680 public appearance of Mickey Mouse. Sadly the figure is still on
681 probation, thanks to trademark laws and a the Disney corporations
682 powerful pack of lawyers, as described in the
2017 article
683 in
<a href=
"https://priceonomics.com/how-mickey-mouse-evades-the-public-domain/
">"How
684 Mickey Mouse Evades the Public Domain
"</a
> from Priceonomics. On the
685 positive side, the primary driver for repeated extentions of the
686 duration of copyright has been Disney thanks to Mickey Mouse and the
687 2028 movie, and as it now in the public domain I hope it will cause
688 less urge to extend the already unreasonable long copyright
691 <p
>The first book I published, the
2004 book
<a
692 href=
"https://free-culture.cc/
">"Free Culture
" by Lawrence Lessig
</a
>,
694 <a href=
"https://people.skolelinux.org/pere/publisher/#frikultur
">English,
695 French and Norwegian Bokmål
</a
>, touch on the story of Disney pushed
696 for extending the copyright duration in USA. It is a great book
697 explaining problems with the current copyright regime and why we need
698 Creative Commons movement, and I strongly recommend everyone to read
701 <p
>This movie (with
702 <a href=
"https://www.imdb.com/title/tt0019422/
">IMDB ID tt0019422
</a
>)
703 is now available from the Internet Archive. Two copies have been
704 uploaded so far, one uploaded
705 <a href=
"https://archive.org/details/SteamboatWillie
">2015-
11-
04</a
>
706 (
<a href=
"https://archive.org/download/SteamboatWillie/SteamboatWillie_archive.torrent
">torrent
</a
>)
708 <a href=
"https://archive.org/details/steamboat-willie-mickey
">2023-
01-
01</a
>
709 (
<a href=
"https://archive.org/download/steamboat-willie-mickey/steamboat-willie-mickey_archive.torrent
">torrent
</a
>) - see
710 <a href=
"https://people.skolelinux.org/pere/blog/VLC_bittorrent_plugin_still_going_strong__new_upload_2_14_4.html
">VLC
711 bittorrent plugin
</a
> for streaming the video using the torrent link.
712 I am very happy to see
713 <a href=
"https://people.skolelinux.org/pere/blog/Legal_to_share_more_than_16_000_movies_listed_on_IMDB_.html
">the
714 number of public domain movies
</a
> increasing. I look forward to
715 when those are the majority. Perhaps it will reduce the urge of the
716 copyright industry to control its customers.
</p
>
719 <a href=
"https://publicdomainreview.org/features/entering-the-public-domain/
2024/
">comprehensive
720 list of works entering the public domain in
2024</a
> is available from
721 the Public Domain Review.
</p
>
723 <p
>As usual, if you use Bitcoin and want to show your support of my
724 activities, please send Bitcoin donations to my address
725 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
730 <title>VLC bittorrent plugin still going strong, new upload
2.14-
4</title>
731 <link>https://people.skolelinux.org/pere/blog/VLC_bittorrent_plugin_still_going_strong__new_upload_2_14_4.html
</link>
732 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/VLC_bittorrent_plugin_still_going_strong__new_upload_2_14_4.html
</guid>
733 <pubDate>Sun,
31 Dec
2023 10:
45:
00 +
0100</pubDate>
734 <description><p
>The other day I uploaded a new version of
735 <a href=
"https://tracker.debian.org/pkg/vlc-plugin-bittorrent
">the VLC
736 bittorrent plugin
</a
> to Debian, version
2.14-
4, to fix a few
737 packaging issues. This plugin extend VLC allowing it to stream videos
738 directly from a bittorrent source using both torrent files and magnet
739 links, as easy as using a HTTP or local file source. I believe such
740 protocol support is a vital feature in VLC, allowing efficient
741 streaming from sources such at the
11 million movies in
742 <a href=
"https://archive.org/
">the Internet Archive
</a
>. Bittorrent is
743 one of the most efficient content distribution protocols on the
744 Internet, without centralised control, and should be used more.
</p
>
746 <p
>The new version is now both in Debian Unstable and Testing, as well
747 as Ubuntu. While looking after the package, I decided to ask the VLC
748 upstream community if there was any hope to get Bittorrent support
749 into the official VLC program, and was very happy to learn that
750 someone is already working on it. I hope we can see some fruits of
751 that labour next year, but do not hold my breath. In the mean time we
752 can use the plugin, which is already
753 <a href=
"https://qa.debian.org/popcon.php?package=vlc-plugin-bittorrent
">installed
754 by
0.23 percent of the Debian population
</a
> according to
755 popularity-contest. It could use a new upstream release, and I hope
756 the upstream developer soon find time to polish it even more.
</p
>
758 <p
>It is worth noting that the plugin store the downloaded files in
759 <tt
>~/Downloads/vlc-bittorrent/
</tt
>, which can quickly fill up the
760 user home directory during use. Users of the plugin should keep an
761 eye with disk usage when streaming a bittorrent source.
</p
>
763 <p
>As usual, if you use Bitcoin and want to show your support of my
764 activities, please send Bitcoin donations to my address
765 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>