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