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>LinuxCNC MQTT publisher component
</title>
11 <link>https://people.skolelinux.org/pere/blog/LinuxCNC_MQTT_publisher_component.html
</link>
12 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/LinuxCNC_MQTT_publisher_component.html
</guid>
13 <pubDate>Sun,
8 Jan
2023 19:
30:
00 +
0100</pubDate>
14 <description><p
>I watched
<a href=
"https://yewtu.be/watch?v=jmKUV3aNLjk
">a
2015
15 video from Andreas Schiffler
</a
> the other day, where he set up
16 <a href=
"https://linuxcnc.org/
">LinuxCNC
</a
> to send status
17 information to the MQTT broker IBM Bluemix. As I also use MQTT for
18 graphing, it occured to me that a generic MQTT LinuxCNC component
19 would be useful and I set out to implement it. Today I got the first
20 draft limping along and submitted as
21 <a href=
"https://github.com/LinuxCNC/linuxcnc/pull/
2253">a patch to the
22 LinuxCNC project
</a
>.
</p
>
24 <p
>The simple part was setting up the MQTT publishing code in Python.
25 I already have set up other parts submitting data to my Mosquito MQTT
26 broker, so I could reuse that code. Writing a LinuxCNC component in
27 Python as new to me, but using existing examples in the code
28 repository and the extensive documentation, this was fairly straight
29 forward. The hardest part was creating a automated test for the
30 component to ensure it was working. Testing it in a simulated
31 LinuxCNC machine proved very useful, as I discovered features I needed
32 that I had not thought of yet, and adjusted the code quite a bit to
33 make it easier to test without a operational MQTT broker
36 <p
>The draft is ready and working, but I am unsure which LinuxCNC HAL
37 pins I should collect and publish by default (in other words, the
38 default set of information pieces published), and how to get the
39 machine name from the LinuxCNC INI file. The latter is a minor
40 detail, but I expect it would be useful in a setup with several
41 machines available. I am hoping for feedback from the experienced
42 LinuxCNC developers and users, to make the component even better
43 before it can go into the mainland LinuxCNC code base.
</p
>
45 <p
>Since I started on the MQTT component, I came across
46 <a href=
"https://yewtu.be/watch?v=Bqa2grG0XtA
">another video from Kent
47 VanderVelden where he combine LinuxCNC with a set of screen glasses
48 controlled by a Raspberry Pi
</a
>, and it occured to me that it would
49 be useful for such use cases if LinuxCNC also provided a REST API for
50 querying its status. I hope to start on such component once the MQTT
51 component is working well.
</p
>
53 <p
>As usual, if you use Bitcoin and want to show your support of my
54 activities, please send Bitcoin donations to my address
55 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
60 <title>ONVIF IP camera management tool finally in Debian
</title>
61 <link>https://people.skolelinux.org/pere/blog/ONVIF_IP_camera_management_tool_finally_in_Debian.html
</link>
62 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/ONVIF_IP_camera_management_tool_finally_in_Debian.html
</guid>
63 <pubDate>Sat,
24 Dec
2022 08:
00:
00 +
0100</pubDate>
64 <description><p
>Merry Christmas to you all. Here is a small gift to all those with
65 IP cameras following the
<a href=
"https://www.onvif.org/
">ONVIF
66 specification
</a
>. There is finally a nice command line and GUI tool
67 in Debian to manage ONVIF IP cameras. After working with upstream for
68 a few months and sponsoring the upload, I am very happy to report that
69 the
<a href=
"https://tracker.debian.org/libonvif
">libonvif package
</a
>
70 entered Debian Sid last night.
</p
>
72 <p
>The package provide a C library to communicate with such cameras, a
73 command line tool to locate and update settings of (like password) the
74 cameras and a GUI tool to configure and control the units as well as
75 preview the video from the camera. Libonvif is available on Both
76 Linux and Windows and the GUI tool uses the Qt library. The main
77 competitors are non-free software, while libonvif is GNU GPL licensed.
78 I am very glad Debian users in the future can control their cameras
79 using a free software system provided by Debian. But the ONVIF world
80 is full of slightly broken firmware, where the cameras pretend to
81 follow the ONVIF specification but fail to set some configuration
82 values or refuse to provide video to more than one recipient at the
83 time, and the onvif project is quite young and might take a while
84 before it completely work with your camera. Upstream seem eager to
85 improve the library, so handling any broken camera might be just
<a
86 href=
"https://github.com/sr99622/libonvif/
">a bug report away
</a
>.
</p
>
88 <p
>The package just cleared NEW, and need a new source only upload
89 before it can enter testing. This will happen in the next few
92 <p
>As usual, if you use Bitcoin and want to show your support of my
93 activities, please send Bitcoin donations to my address
94 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
99 <title>Managing and using ONVIF IP cameras with Linux
</title>
100 <link>https://people.skolelinux.org/pere/blog/Managing_and_using_ONVIF_IP_cameras_with_Linux.html
</link>
101 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/Managing_and_using_ONVIF_IP_cameras_with_Linux.html
</guid>
102 <pubDate>Wed,
19 Oct
2022 12:
30:
00 +
0200</pubDate>
103 <description><p
>Recently I have been looking at how to control and collect data
104 from a handful IP cameras using Linux. I both wanted to change their
105 settings and to make their imagery available via a free software
106 service under my control. Here is a summary of the tools I found.
</p
>
108 <p
>First I had to identify the cameras and their protocols. As far as
109 I could tell, they were using some SOAP looking protocol and their
110 internal web server seem to only work with Microsoft Internet Explorer
111 with some proprietary binary plugin, which in these days of course is
112 a security disaster and also made it impossible for me to use the
113 camera web interface. Luckily I discovered that the SOAP looking
114 protocol is actually following
<a href=
"https://www.onvif.org/
">the
115 ONVIF specification
</a
>, which seem to be supported by a lot of IP
116 cameras these days.
</p
>
118 <p
>Once the protocol was identified, I was able to find what appear to
119 be the most popular way to configure ONVIF cameras, the free software
121 <a href=
"https://sourceforge.net/projects/onvifdm/
">ONVIF Device
122 Manager
</a
>. Lacking any other options at the time, I tried
123 unsuccessfully to get it running using Wine, but was missing a dotnet
124 40 library and I found no way around it to run it on Linux.
</p
>
126 <p
>The next tool I found to configure the cameras were a non-free Linux Qt
127 client
<a href=
"https://www.lingodigit.com/onvif_nvcdemo.html
">ONVIF
128 Device Tool
</a
>. I did not like its terms of use, so did not spend
129 much time on it.
</p
>
131 <p
>To collect the video and make it available in a web interface, I
132 found the Zoneminder tool in Debian. A recent version was able to
133 automatically detect and configure ONVIF devices, so I could use it to
134 set up motion detection in and collection of the camera output. I had
135 initial problems getting the ONVIF autodetection to work, as both
136 Firefox and Chromium
<a href=
"https://bugs.debian.org/
1001188">refused
137 the inter-tab communication
</a
> being used by the Zoneminder web
138 pages, but managed to get konqueror to work. Apparently the
"Enhanced
139 Tracking Protection
" in Firefox cause the problem. I ended up
140 upgrading to the Bookworm edition of Zoneminder in the process to try
141 to fix the issue, and believe the problem might be solved now.
</p
>
143 <p
>In the process I came across the nice Linux GUI tool
144 <a href=
"https://gitlab.com/caspermeijn/onvifviewer/
">ONVIF Viewer
</a
>
145 allowing me to preview the camera output and validate the login
146 passwords required. Sadly its author has grown tired of maintaining
147 the software, so it might not see any future updates. Which is sad,
148 as the viewer is sightly unstable and the picture tend to lock up.
149 Note, this lockup might be due to limitations in the cameras and not
150 the viewer implementation. I suspect the camera is only able to
151 provide pictures to one client at the time, and the Zoneminder feed
152 might interfere with the GUI viewer. I have
153 <a href=
"https://bugs.debian.org/
1000820">asked for the tool to be
154 included in Debian
</a
>.
</p
>
156 <p
>Finally, I found what appear to be very nice Linux free software
157 replacement for the Windows tool, named
158 <a href=
"https://github.com/sr99622/libonvif/
">libonvif
</a
>. It
159 provide a C library to talk to ONVIF devices as well as a command line
160 and GUI tool using the library. Using the GUI tool I was able to change
161 the admin passwords and update other settings of the cameras. I have
162 <a href=
"https://bugs.debian.org/
1021980">asked for the package to be
163 included in Debian
</a
>.
</p
>
165 <p
>As usual, if you use Bitcoin and want to show your support of my
166 activities, please send Bitcoin donations to my address
167 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
169 <p
><strong
>Update
2022-
10-
20</strong
>: Since my initial publication of
170 this text, I got several suggestions for more free software Linux
171 tools. There is
<a href=
"https://github.com/quatanium/python-onvif
">a
172 ONVIF python library
</a
> (already
173 <a href=
"https://bugs.debian.org/
824240">requested into Debian
</a
>) and
174 <a href=
"https://github.com/FalkTannhaeuser/python-onvif-zeep
">a python
3
175 fork
</a
> using a different SOAP dependency. There is also
176 <a href=
"https://www.home-assistant.io/integrations/onvif/
">support for
177 ONVIF in Home Assistant
</a
>, and there is an alternative to Zoneminder
178 called
<a href=
"https://www.shinobi.video/
">Shinobi
</a
>. The latter
179 two are not included in Debian either. I have not tested any of these
185 <title>Time to translate the Bullseye edition of the Debian Administrator
's Handbook
</title>
186 <link>https://people.skolelinux.org/pere/blog/Time_to_translate_the_Bullseye_edition_of_the_Debian_Administrator_s_Handbook.html
</link>
187 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/Time_to_translate_the_Bullseye_edition_of_the_Debian_Administrator_s_Handbook.html
</guid>
188 <pubDate>Mon,
12 Sep
2022 15:
45:
00 +
0200</pubDate>
189 <description><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
>
191 <p
>(The picture is of the previous edition.)
</p
>
193 <p
>Almost two years after the previous Norwegian Bokmål translation of
194 the
"<a href=
"https://debian-handbook.info/
">The Debian Administrator
's
195 Handbook
</a
>" was published, a new edition is finally being prepared. The
196 english text is updated, and it is time to start working on the
197 translations. Around
37 percent of the strings have been updated, one
198 way or another, and the translations starting from a complete Debian Buster
199 edition now need to bring their translation up from
63% to
100%. The
200 complete book is licensed using a Creative Commons license, and has
201 been published in several languages over the years. The translations
202 are done by volunteers to bring Linux in their native tongue. The
203 last time I checked, it complete text was available in English,
204 Norwegian Bokmål, German, Indonesian, Brazil Portuguese and Spanish.
205 In addition, work has been started for Arabic (Morocco), Catalan,
206 Chinese (Simplified), Chinese (Traditional), Croatian, Czech, Danish,
207 Dutch, French, Greek, Italian, Japanese, Korean, Persian, Polish,
208 Romanian, Russian, Swedish, Turkish and Vietnamese.
</p
>
210 <p
>The translation is conducted on
211 <a href=
"https://hosted.weblate.org/projects/debian-handbook/
">the
212 hosted weblate project page
</a
>. Prospective translators are
213 recommeded to subscribe to
214 <a href=
"http://lists.alioth.debian.org/mailman/listinfo/debian-handbook-translators
">the
215 translators mailing list
</a
> and should also check out
216 <a href=
"https://debian-handbook.info/contribute/
">the instructions for
217 contributors
</a
>.
</p
>
219 <p
>I am one of the Norwegian Bokmål translators of this book, and we
220 have just started. Your contribution is most welcome.
</p
>
222 <p
>As usual, if you use Bitcoin and want to show your support of my
223 activities, please send Bitcoin donations to my address
224 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
229 <title>Automatic LinuxCNC servo PID tuning?
</title>
230 <link>https://people.skolelinux.org/pere/blog/Automatic_LinuxCNC_servo_PID_tuning_.html
</link>
231 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/Automatic_LinuxCNC_servo_PID_tuning_.html
</guid>
232 <pubDate>Sat,
16 Jul
2022 22:
30:
00 +
0200</pubDate>
233 <description><p
>While working on a CNC with servo motors controlled by the
234 <a href=
"https://en.wikipedia.org/wiki/LinuxCNC
">LinuxCNC
</a
>
235 <a href=
"https://en.wikipedia.org/wiki/PID_controller
">PID
236 controller
</a
>, I recently had to learn how to tune the collection of values
237 that control such mathematical machinery that a PID controller is. It
238 proved to be a lot harder than I hoped, and I still have not succeeded
239 in getting the Z PID controller to successfully defy gravity, nor X
240 and Y to move accurately and reliably. But while climbing up this
241 rather steep learning curve, I discovered that some motor control
242 systems are able to tune their PID controllers. I got the impression
243 from the documentation that LinuxCNC were not. This proved to be not
246 <p
>The LinuxCNC
247 <a href=
"http://linuxcnc.org/docs/html/man/man9/pid
.9.html
">pid
248 component
</a
> is the recommended PID controller to use. It uses eight
249 constants
<tt
>Pgain
</tt
>,
<tt
>Igain
</tt
>,
<tt
>Dgain
</tt
>,
250 <tt
>bias
</tt
>,
<tt
>FF0
</tt
>,
<tt
>FF1
</tt
>,
<tt
>FF2
</tt
> and
251 <tt
>FF3
</tt
> to calculate the output value based on current and wanted
252 state, and all of these need to have a sensible value for the
253 controller to behave properly. Note, there are even more values
254 involved, theser are just the most important ones. In my case I need
255 the X, Y and Z axes to follow the requested path with little error.
256 This has proved quite a challenge for someone who have never tuned a
257 PID controller before, but there is at least some help to be found.
259 <p
>I discovered that included in LinuxCNC was this old PID component
260 at_pid claiming to have auto tuning capabilities. Sadly it had been
261 neglected since
2011, and could not be used as a plug in replacement
262 for the default pid component. One would have to rewriting the
263 LinuxCNC HAL setup to test at_pid. This was rather sad, when I wanted
264 to quickly test auto tuning to see if it did a better job than me at
265 figuring out good P, I and D values to use.
</p
>
267 <p
>I decided to have a look if the situation could be improved. This
268 involved trying to understand the code and history of the pid and
269 at_pid components. Apparently they had a common ancestor, as code
270 structure, comments and variable names were quite close to each other.
271 Sadly this was not reflected in the git history, making it hard to
272 figure out what really happened. My guess is that the author of
273 <a href=
"https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/components/at_pid.c
">at_pid.c
</a
>
275 <a href=
"https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/components/pid.c
">pid.c
</a
>,
276 rewrote it to follow the structure he wished pid.c to have, then added
277 support for auto tuning and finally got it included into the LinuxCNC
278 repository. The restructuring and lack of early history made it
279 harder to figure out which part of the code were relevant to the auto
280 tuning, and which part of the code needed to be updated to work the
281 same way as the current pid.c implementation. I started by trying to
282 isolate relevant changes in pid.c, and applying them to at_pid.c. My
283 aim was to make sure the at_pid component could replace the pid
284 component with a simple change in the HAL setup loadrt line, without
285 having to
"rewire
" the rest of the HAL configuration. After a few
286 hours following this approach, I had learned quite a lot about the
287 code structure of both components, while concluding I was heading down
288 the wrong rabbit hole, and should get back to the surface and find a
289 different path.
</p
>
291 <p
>For the second attempt, I decided to throw away all the PID control
292 related part of the original at_pid.c, and instead isolate and lift
293 the auto tuning part of the code and inject it into a copy of pid.c.
294 This ensured compatibility with the current pid component, while
295 adding auto tuning as a run time option. To make it easier to identify
296 the relevant parts in the future, I wrapped all the auto tuning code
297 with
'#ifdef AUTO_TUNER
'. The end result behave just like the current
298 pid component by default, as that part of the code is identical. The
299 <a href=
"https://github.com/LinuxCNC/linuxcnc/pull/
1820">end result
300 entered the LinuxCNC master branch
</a
> a few days ago.
</p
>
302 <p
>To enable auto tuning, one need to set a few HAL pins in the PID
303 component. The most important ones are
<tt
>tune-effort
</tt
>,
304 <tt
>tune-mode
</tt
> and
<tt
>tune-start
</tt
>. But lets take a step
305 back, and see what the auto tuning code will do. I do not know the
306 mathematical foundation of the at_pid algorithm, but from observation
307 I can tell that the algorithm will, when enabled, produce a square
308 wave pattern centered around the
<tt
>bias
</tt
> value on the output pin
309 of the PID controller. This can be seen using the HAL Scope provided
310 by LinuxCNC. In my case, this is translated into voltage (+-
10V) sent
311 to the motor controller, which in turn is translated into motor speed.
312 So at_pid will ask the motor to move the axis back and forth. The
313 number of cycles in the pattern is controlled by the
314 <tt
>tune-cycles
</tt
> pin, and the extremes of the wave pattern is
315 controlled by the
<tt
>tune-effort
</tt
> pin. Of course, trying to
316 change the direction of a physical object instantly (as in going
317 directly from a positive voltage to the equivalent negative voltage)
318 do not change velocity instantly, and it take some time for the object
319 to slow down and move in the opposite direction. This result in a
320 more smooth movement wave form, as the axis in question were vibrating
321 back and forth. When the axis reached the target speed in the
322 opposing direction, the auto tuner change direction again. After
323 several of these changes, the average time delay between the
'peaks
'
324 and
'valleys
' of this movement graph is then used to calculate
325 proposed values for Pgain, Igain and Dgain, and insert them into the
326 HAL model to use by the pid controller. The auto tuned settings are
327 not great, but htye work a lot better than the values I had been able
328 to cook up on my own, at least for the horizontal X and Y axis. But I
329 had to use very small
<tt
>tune-effort
<tt
> values, as my motor
330 controllers error out if the voltage change too quickly. I
've been
331 less lucky with the Z axis, which is moving a heavy object up and
332 down, and seem to confuse the algorithm. The Z axis movement became a
333 lot better when I introduced a
<tt
>bias
</tt
> value to counter the
334 gravitational drag, but I will have to work a lot more on the Z axis
335 PID values.
</p
>
337 <p
>Armed with this knowledge, it is time to look at how to do the
338 tuning. Lets say the HAL configuration in question load the PID
339 component for X, Y and Z like this:
</p
>
341 <blockquote
><pre
>
342 loadrt pid names=pid.x,pid.y,pid.z
343 </pre
></blockquote
>
345 <p
>Armed with the new and improved at_pid component, the new line will
346 look like this:
</p
>
348 <blockquote
><pre
>
349 loadrt at_pid names=pid.x,pid.y,pid.z
350 </pre
></blockquote
>
352 <p
>The rest of the HAL setup can stay the same. This work because the
353 components are referenced by name. If the component had used count=
3
354 instead, all use of pid.# had to be changed to at_pid.#.
</p
>
356 <p
>To start tuning the X axis, move the axis to the middle of its
357 range, to make sure it do not hit anything when it start moving back
358 and forth. Next, set the
<tt
>tune-effort
</tt
> to a low number in the
359 output range. I used
0.1 as my initial value. Next, assign
1 to the
360 <tt
>tune-mode
</tt
> value. Note, this will disable the pid controlling
361 part and feed
0 to the output pin, which in my case initially caused a
362 lot of drift. In my case it proved to be a good idea with X and Y to
363 tune the motor driver to make sure
0 voltage stopped the motor
364 rotation. On the other hand, for the Z axis this proved to be a bad
365 idea, so it will depend on your setup. It might help to set the
366 <tt
>bias
</tt
> value to a output value that reduce or eliminate the
367 axis drift. Finally, after setting
<tt
>tune-mode
</tt
>, set
368 <tt
>tune-start
</tt
> to
1 to activate the auto tuning. If all go well,
369 your axis will vibrate for a few seconds and when it is done, new
370 values for Pgain, Igain and Dgain will be active. To test them,
371 change
<tt
>tune-mode
</tt
> back to
0. Note that this might cause the
372 machine to suddenly jerk as it bring the axis back to its commanded
373 position, which it might have drifted away from during tuning. To
374 summarize with some halcmd lines:
</p
>
376 <blockquote
><pre
>
377 setp pid.x.tune-effort
0.1
378 setp pid.x.tune-mode
1
379 setp pid.x.tune-start
1
380 # wait for the tuning to complete
381 setp pid.x.tune-mode
0
382 </pre
></blockquote
>
384 <p
>After doing this task quite a few times while trying to figure out
385 how to properly tune the PID controllers on the machine in, I decided
386 to figure out if this process could be automated, and wrote a script
387 to do the entire tuning process from power on. The end result will
388 ensure the machine is powered on and ready to run, home all axis if it
389 is not already done, check that the extra tuning pins are available,
390 move the axis to its mid point, run the auto tuning and re-enable the
391 pid controller when it is done. It can be run several times. Check
393 <a href=
"https://github.com/SebKuzminsky/MazakVQC1540/blob/bon-dev/scripts/run-auto-pid-tuner
">run-auto-pid-tuner
</a
>
394 script on github if you want to learn how it is done.
</p
>
396 <p
>My hope is that this little adventure can inspire someone who know
397 more about motor PID controller tuning can implement even better
398 algorithms for automatic PID tuning in LinuxCNC, making life easier
399 for both me and all the others that want to use LinuxCNC but lack the
400 in depth knowledge needed to tune PID controllers well.
</p
>
402 <p
>As usual, if you use Bitcoin and want to show your support of my
403 activities, please send Bitcoin donations to my address
404 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
409 <title>My free software activity of late (
2022)
</title>
410 <link>https://people.skolelinux.org/pere/blog/My_free_software_activity_of_late__2022_.html
</link>
411 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/My_free_software_activity_of_late__2022_.html
</guid>
412 <pubDate>Mon,
20 Jun
2022 14:
30:
00 +
0200</pubDate>
413 <description><p
>I guess it is time to bring some light on the various free software
414 and open culture activities and projects I have worked on or been
415 involved in the last year and a half.
</p
>
417 <p
>First, lets mention the book
418 <a href=
"http://www.hungry.com/~pere/publisher/
">releases I managed to
419 publish
</a
>. The Cory Doctorow book
"Hvordan knuse
420 overvåkningskapitalismen
" argue that it is not the magic machine
421 learning of the big technology companies that causes the surveillance
422 capitalism to thrive, it is the lack of trust busting to enforce
423 existing anti-monopoly laws. I also published a family of
424 dictionaries for machinists, one sorted on the English words, one
425 sorted on the Norwegian and the last sorted on the North Sámi words.
426 A bit on the back burner but not forgotten is the Debian
427 Administrators Handbook, where a new edition is being worked on. I
428 have not spent as much time as I want to help bring it to completion,
429 but hope I will get more spare time to look at it before the end of
432 <p
>With my Debian had I have spent time on several projects, both
433 updating existing packages, helping to bring in new packages and
434 working with upstream projects to try to get them ready to go into
435 Debian. The list is rather long, and I will only mention my own
436 isenkram, openmotor, vlc bittorrent plugin, xprintidle, norwegian
437 letter style for latex, bs1770gain, and recordmydesktop. In addition
438 to these I have sponsored several packages into Debian, like audmes.
</p
>
440 <p
>The last year I have looked at several infrastructure projects for
441 collecting meter data and video surveillance recordings. This include
442 several ONVIF related tools like onvifviewer and zoneminder as well as
443 rtl-
433, wmbusmeters and rtl-wmbus.
</p
>
445 <p
>In parallel with this I have looked at fabrication related free
446 software solutions like pycam and LinuxCNC. The latter recently
447 gained improved translation support using po4a and weblate, which was
448 a harder nut to crack that I had anticipated when I started.
</p
>
450 <p
>Several hours have been spent translating free software to
451 Norwegian Bokmål on the Weblate hosted service. Do not have a
452 complete list, but you will find my contributions in at least gnucash,
453 minetest and po4a.
</p
>
455 <p
>I also spent quite some time on the Norwegian archiving specification
456 Noark
5, and its companion project Nikita implementing the API
457 specification for Noark
5.
</p
>
459 <p
>Recently I have been looking into free software tools to do company
460 accounting here in Norway., which present an interesting mix between
461 law, rules, regulations, format specifications and API interfaces.
</p
>
463 <p
>I guess I should also mention the Norwegian community driven
464 government interfacing projects Mimes Brønn and Fiksgatami, which have
465 ended up in a kind of limbo while the future of the projects is being
466 worked out.
</p
>
468 <p
>These are just a few of the projects I have been involved it, and
469 would like to give more visibility. I
'll stop here to avoid delaying
472 <p
>As usual, if you use Bitcoin and want to show your support of my
473 activities, please send Bitcoin donations to my address
474 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
479 <title>LinuxCNC translators life just got a bit easier
</title>
480 <link>https://people.skolelinux.org/pere/blog/LinuxCNC_translators_life_just_got_a_bit_easier.html
</link>
481 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/LinuxCNC_translators_life_just_got_a_bit_easier.html
</guid>
482 <pubDate>Fri,
3 Jun
2022 21:
10:
00 +
0200</pubDate>
483 <description><p
>Back in oktober last year, when I started looking at the
484 <a href=
"https://en.wikipedia.org/wiki/LinuxCNC
">LinuxCNC
</a
> system, I
485 proposed to change the documentation build system make life easier for
486 translators. The original system consisted of independently written
487 documentation files for each language, with no automated way to track
488 changes done in other translations and no help for the translators to
489 know how much was left to translated. By using
490 <a href=
"https://po4a.org/
">the po4a system
</a
> to generate POT and PO
491 files from the English documentation, this can be improved. A small
492 team of LinuxCNC contributors got together and today our labour
493 finally payed off. Since a few hours ago, it is now possible to
494 translate
<a href=
"https://hosted.weblate.org/projects/linuxcnc/
">the
495 LinuxCNC documentation on Weblate
</a
>, alongside the program itself.
</p
>
497 <p
>The effort to migrate the documentation to use po4a has been both
498 slow and frustrating. I am very happy we finally made it.
</p
>
500 <p
>As usual, if you use Bitcoin and want to show your support of my
501 activities, please send Bitcoin donations to my address
502 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
507 <title>geteltorito make CD firmware upgrades a breeze
</title>
508 <link>https://people.skolelinux.org/pere/blog/geteltorito_make_CD_firmware_upgrades_a_breeze.html
</link>
509 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/geteltorito_make_CD_firmware_upgrades_a_breeze.html
</guid>
510 <pubDate>Wed,
20 Apr
2022 11:
50:
00 +
0200</pubDate>
511 <description><p
>Recently I wanted to upgrade the firmware of my thinkpad, and
512 located the firmware download page from Lenovo (which annoyingly do
513 not allow access via Tor, forcing me to hand them more personal
514 information that I would like). The
515 <a href=
"https://support.lenovo.com/no/en/search?query=thinkpad firmware bios upgrade iso
&SearchType=Customer search
&searchLocation=Masthead
">download
516 from Lenovo
</a
> is a bootable ISO image, which is a bit of a problem
517 when all I got available is a USB memory stick. I tried booting the
518 ISO as a USB stick, but this did not work. But genisoimage came to
519 the rescue.
</p
>
521 <P
>The geteltorito program in
522 <a href=
"http://tracker.debian.org/cdrkit
">the genisoimage binary
523 package
</a
> is able to convert the bootable ISO image to a bootable
524 USB stick using a simple command line recipe, which I then can write
525 to the most recently inserted USB stick:
</p
>
527 <blockquote
><pre
>
528 geteltorito -o usbstick.img lenovo-firmware.iso
529 sudo dd bs=
10M if=usbstick.img of=$(ls -tr /dev/sd?|tail -
1)
530 </pre
></blockquote
>
532 <p
>This USB stick booted the firmware upgrader just fine, and in a few
533 minutes my machine had the latest and greatest BIOS firmware in place.
</p
>
538 <title>Playing and encoding AV1 in Debian Bullseye
</title>
539 <link>https://people.skolelinux.org/pere/blog/Playing_and_encoding_AV1_in_Debian_Bullseye.html
</link>
540 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/Playing_and_encoding_AV1_in_Debian_Bullseye.html
</guid>
541 <pubDate>Sat,
16 Apr
2022 08:
40:
00 +
0200</pubDate>
542 <description><p
>Inspired by the recent news of
543 <a href=
"https://slashdot.org/story/
22/
04/
03/
2039219/intel-beats-amd-and-nvidia-with-arc-gpus-full-av1-support
">AV1
544 hardware encoding support from Intel
</a
>, I decided to look into
545 the state of AV1 on Linux today. AV1 is a
546 <a href=
"https://web.archive.org/web/
20160618103850/http://www.digistan.org/open-standard:definition
">free
547 and open standard
</a
> as defined by Digistan without any royalty
548 payment requirement, unlike its much used competitor encoding
549 H
.264. While looking, I came across an
5 year
550 <a href=
"https://askubuntu.com/questions/
1061908/how-to-encode-and-playback-video-with-the-av1-codec-on-bionic-beaver-
18-
04">old
551 question on askubuntu.com
</a
> which in turn inspired me to check out
552 how things are in Debian Stable regarding AV1. The test file listed
553 in the question (askubuntu_test_aom.mp4) did not exist any more, so I
554 tracked down a different set of test files on
555 <a href=
"https://av1.webmfiles.org/
">av1.webmfiles.org
</a
> to test them
556 with the various video tools I had installed on my machine. I was
557 happy to discover that AV1 decoding and playback worked with almost
560 <table align=
"center
">
561 <tr
><td
>mediainfo
</td
> <td
>ok
</td
></tr
>
562 <tr
><td
>dragonplayer
</td
> <td
>ok
</td
></tr
>
563 <tr
><td
>ffmpeg / ffplay
</td
> <td
>ok
</td
></tr
>
564 <tr
><td
>gnome-mplayer
</td
> <td
>fail
</td
></tr
>
565 <tr
><td
>mplayer
</td
> <td
>ok
</td
></tr
>
566 <tr
><td
>mpv
</td
> <td
>ok
</td
></tr
>
567 <tr
><td
>parole
</td
> <td
>ok
</td
></tr
>
568 <tr
><td
>vlc
</td
> <td
>ok
</td
></tr
>
569 <tr
><td
>firefox
</td
> <td
>ok
</td
></tr
>
570 <tr
><td
>chromium
</td
> <td
>ok
</td
></tr
>
573 <p
>AV1 encoding is available in Debian Stable from the aom-tools
574 version
1.0.0.errata1-
3 package, using the aomenc tool. The encoding
575 using the package in Debian Stable is quite slow, with the frame rate
576 for my
10 second test video at around
0.25 fps. My
10 second video
577 test took
16 minutes and
11 seconds on my test machine.
</p
>
579 <p
>I tested by first running ffmpeg and then aomenc using the recipe
580 provided by the askubuntu recipe above. I had to remove the
581 '--row-mt=
1' option, as it was not supported in my
1.0.0 version. The
582 encoding only used a single thread, according to
<tt
>top
</tt
>.
</p
>
584 <blockquote
><pre
>
585 ffmpeg -i some-old-video.ogv -t
10 -pix_fmt yuv420p video.y4m
586 aomenc --fps=
24/
1 -u
0 --codec=av1 --target-bitrate=
1000 \
587 --lag-in-frames=
25 --auto-alt-ref=
1 -t
24 --cpu-used=
8 \
588 --tile-columns=
2 --tile-rows=
2 -o output.webm video.y4m
589 </pre
></blockquote
>
591 <p
>As version
1.0.0 currently have several
592 <a href=
"https://security-tracker.debian.org/tracker/source-package/aom
">unsolved
593 security issues in Debian Stable
</a
>, and to see if the recent
594 backport
<a href=
"https://tracker.debian.org/pkg/aom
">provided in
595 Debian
</a
> is any quicker, I ran
<tt
>apt -t bullseye-backports install
596 aom-tools
</tt
> to fetch the backported version and re-encoded the
597 video using the latest version. This time the
'--row-mt=
1' option
598 worked, and the encoding was done in
46 seconds with a frame rate of
599 around
5.22 fps. This time it seem to be using all my four cores to
600 encode. Encoding speed is still too low for streaming and real time,
601 which would require frame rates above
25 fps, but might be good enough
602 for offline encoding.
</p
>
604 <p
>I am very happy to see AV1 playback working so well with the
605 default tools in Debian Stable. I hope the encoding situation improve
606 too, allowing even a slow old computer like my
10 year old laptop to
607 be used for encoding.
</p
>
609 <p
>As usual, if you use Bitcoin and want to show your support of my
610 activities, please send Bitcoin donations to my address
611 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
616 <title>Få en slutt på Digitale utslipp
</title>
617 <link>https://people.skolelinux.org/pere/blog/F__en_slutt_p__Digitale_utslipp.html
</link>
618 <guid isPermaLink=
"true">https://people.skolelinux.org/pere/blog/F__en_slutt_p__Digitale_utslipp.html
</guid>
619 <pubDate>Mon,
14 Mar
2022 22:
00:
00 +
0100</pubDate>
620 <description><p
>På onsdag sendte jeg følgende epost til Utdanningsetaten i Oslo
621 kommune (UDE). Fikk beskjed om at min henvendelse har saksnummer
623 <a href=
"https://www.oslo.kommune.no/etater-foretak-og-ombud/utdanningsetaten/postjournal-utdanningsetaten/
">offentlige
624 postjournalen til UDE
</a
>. Jeg er spent på hva slags respons jeg får.
625 Mistenker jo de fleste som sprer sine nettsideleseres
626 personopplysninger til utlandet ikke har tenkt så nøye igjennom hva de
627 gjør, og at det er håp om at de tenker seg litt nøyere om hvis de blir
628 klar over problemstillingen. Vet du noen som burde få tilsvarede
629 beskjed og spørsmål? Kanskje du kan sende dem en epost. Hvis alle
630 bidrar blir det kanskje litt bedre.
</p
>
633 <p
>To: postmottak (at) osloskolen.no
634 <br
>Subject: Digitale utslipp fra osloskolens nettsider
</p
>
636 <p
>Hei.
</p
>
638 <p
>Jeg ser at osloskolens nettsider har digitale utslipp av
639 personopplysninger til Google, Facebook og andre, blant annet omtalt
640 på
&lt;URL:
<a href=
"https://aktuelt.osloskolen.no/personvernerklaring-for-osloskolen/informasjonskapsler/
">https://aktuelt.osloskolen.no/personvernerklaring-for-osloskolen/informasjonskapsler/
</a
>
643 <p
>&lt;URL:
<a href=
"https://webbkoll.dataskydd.net/
">https://webbkoll.dataskydd.net/
</a
> > kan være et nyttig verktøy for å holde øye med utslippsomfanget på ulike sider.
</p
>
645 <p
>Kanskje det er en ide å gjøre noe med det, jamfør
&lt;URL:
<a href=
"https://www.digi.no/artikler/debatt-det-enkleste-tiltaket-er-a-skru-av-google-analytics/
517378">https://www.digi.no/artikler/debatt-det-enkleste-tiltaket-er-a-skru-av-google-analytics/
517378</a
> >?
</p
>
647 <p
>Et alternativ til Google Analytics kan være en lokalt installert
648 utgave av
&lt;URL:
649 <a href=
"https://matomo.org/
">https://matomo.org/
</a
> >. Den og flere
650 andre alternativer kan finnes via
651 &lt;URL:
<a href=
"https://www.digi.no/artikler/sverige-vil-skrote-amerikansk-skytjeneste-her-er-alternativene/
516223?key=
5QsV0wRG
">https://www.digi.no/artikler/sverige-vil-skrote-amerikansk-skytjeneste-her-er-alternativene/
516223?key=
5QsV0wRG
</a
> >
652 på bakgrunn av at svenske myndigheter har innsett at dagens praksis
653 nok er både lite lur og ulovlig. Der henger Norge litt etter, men
654 osloskolen har her mulighet til å være litt i forkant. :)
</p
>
656 <p
>Fint om dere kan gi beskjed hvilket saksnummer denne henvendelsen får i
657 offentlig postjournal når den er mottatt.
</p
>
661 </p
>Flere og flere innser at slik spredning av personopplysninger er
662 ugreit. Det har pågått i mange år. Ser jeg blogget
663 <a href=
"https://people.skolelinux.org/pere/blog/Det_er_jo_makta_som_er_mest_s_rbar_ved_massiv_overv_kning_av_Internett.html
">første
664 gang om Google Analytics i
2013</a
> og
665 <a href=
"https://people.skolelinux.org/pere/blog/Snurpenot_overv_kning_av_sensitiv_personinformasjon.html
">analyserte
666 omfanget i
2015</a
>, men det er et langt lerret å bleke.
</p
>
668 <p
>Som vanlig, hvis du bruker Bitcoin og ønsker å vise din støtte til
669 det jeg driver med, setter jeg pris på om du sender Bitcoin-donasjoner
671 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
672 Merk, betaling med bitcoin er ikke anonymt. :)
</p
>