Today is Debian's 27th anniversary. We recently wrote
about some ideas to celebrate the DebianDay,
you can join the party or organise something yourselves :-)
Today is also an opportunity for you to start or resume your
contributions to Debian. For example, you can scratch your creative itch
and suggest a wallpaper to be part of the artwork for the next release,
have a look at the DebConf20 schedule
and register to participate online (August 23rd to 29th, 2020),
or put a Debian live image in a DVD or USB
and give it to some person near you, who still didn't discover Debian.
Our favorite operating system is the result of all the work we do together.
Thanks to everybody who has contributed in these 27 years, and happy birthday Debian!
ffmpeg -i video.mp4 -i video.eng.srt -map 0:v -map 0:a -c copy -map 1 \
-c:s:0 mov_text -metadata:s:s:0 language="eng" video-out.mp4
ffmpeg -i video.mp4 -i video.deu.srt -i video.eng.srt -map 0:v -map 0:a \
-c:v copy -c:a aac -map 1 -c:s:0 mov_text -metadata:s:s:0 language="deu" \
-map 2 -c:s:1 mov_text -metadata:s:s:1 language="eng" video-out.mp4
ffmpeg -i video.mp4 -vf subtitles=video.eng.srt video-out.mp4
-vf option is no longer enough:
ffmpeg -i video.mp4 -i overlay.jpg -filter:a "volume=10" \
-filter_complex '[0:v][1:v]overlay[outv];[outv]subtitles=video.eng.srt' \
video-out.mp4
Following Antonio Terceiro s post on tips for using ffmpeg for
editing
video,
I will also share a bit of my experience producing my video for my
session in
DebConf20.
I recorded my talk today. As Terceiro mentioned, even though I m used
to speaking in front of my webcam (i.e. for my classes and some
smaller conferences I ve worked on during the COVID lockdown), it does
feel a bit weird to present a live talk to nobody :-
OK, one step back. Why are we doing this? Because our hardworking
friends of the DebConf20 video team recommended so. In order to
minimize connecitvity issues from the variety of speakers throughout
the world, we were requested to pre-record the exposition part of
our talks, send them to the video team (deadline: today
2020-08-16, in case you still owe yours!), and make sure to be present
at the end of the talk for the Q&A session. Of course, for a 45 minute
talk, I prepared a 30 minute presentation, saving time for said Q&A
session.
Anyway, I used the excellent OBS
studiolive video mixing/editing program (of
course, Debian packages are
available. This allowed me
to set up several predefined views (combinations and layouts of the
presentation, webcam, and maybe some other sources) and
professionally and elegantly switch between them on the fly.
I am still a newbie with OBS, but I surely see it becoming a part of
my day to day streaming. Of course, my setup still was obvious (me
looking right every now and then to see or control OBS, as I work on a
dual-monitor setup )
Anyway, the experience was very good, much smoother and faster than
what I usually have to do when editing video. But just as I was
finishing thanking the (future) audience and closing the
recording I had to tell the camera, oh, fuck!
The button labeled Start Recording Had not been pressed. So, did
I just lose 30 minutes of my life, plus a half-decent delivered talk?
No, fortunately not. I had previously been playing with OBS, and
configured some things. The button I did press was Start
Streaming .
So, my talk (swearing included, of course) was dutifully streamed over
to my YouTube channel. It
seems up to five people got a sneak preview as to what will my DebConf
participation be (of course, I ve de-listed the video). I pulled it
with the always-handy
youtube-dl, edited out my
curses using kdenlive, and
pushed it to the DebConf video server.
Oh, make sure you follow the advice for recording
presentations. It
has all the relevant advice, the settings you should use, and much
more welcome information if you are new to this.
So Next week, DebConf20! Be there or be square!
autopkgtest, ci.debian.net and friends. We will provide the latest updates
on autopkgtest, autodep8, debci, ci.debian.net, and its integration with the
Debian testing migration software, britney.
We agreed on a split of the content, each one recorded their part, and I
offered to join them together. The logical chaining of the topics is such that
we can't just concatenate the recordings, so we need to interlace our parts.
So I set out to do a full video editing work. I have done this before, although
in a simpler way, for one of the MiniDebconfs we held in Curitiba. In that
case, it was just cutting the noise at the beginning and the end of the
recording, and adding beginning and finish screens with sponsors logos etc.
The first issue I noticed was that both our recordings had a decent amount of
audio noise. To extract the audio track from the videos, I resorted to
How can I extract audio from video with ffmpeg?
on Stack Overflow:
ffmpeg -i input-video.avi -vn -acodec copy output-audio.aac
I then edited the audio with Audacity. I
passed a noise reduction filter a couple of times, then a compressor filter to
amplify my recording on mine, as Paul's already had a good volume. And those
are my more advanced audio editing skills, which I acquired doing my own
podcast.
I now realized I could have just muted the audio tracks from the original clip
and align the noise-free audio with it, but I ended up creating new video files
with the clean audio. Another member of the Stack Overflow family came to the rescue,
in How to merge audio and video file in ffmpeg. To replace the audio stream, we can do something like this:
ffmpeg -i video.mp4 -i audio.wav -c:v copy -c:a aac -map 0:v:0 -map 1:a:0 output.mp4
Paul's recording had a 4:3 aspect ratio, while the requested format is 16:9.
This late in the game, there was zero chance I would request him to redo the
recording. So I decided to add those black bars on the side to make it the
right aspect when showing full screen. And yet again the quickest answer I could
find came from the Stack Overflow empire:
ffmpeg: pillarbox 4:3 to 16:9:
ffmpeg -i "input43.mkv" -vf "scale=640x480,setsar=1,pad=854:480:107:0" [etc..]
The final editing was done with pitivi, which is what
I have used before. I'm a very basic user, but I could do what I needed. It
was basically splitting the clips at the right places, inserting the slides as
images and aligning them with the video, and making most our video appear small
in the corner when presenting the slides.
P.S.: all the command lines presented here are examples, basically copied from
the linked Q&As, and have to be adapted to your actual input and output
formats.
The system running planet.gnu.org was upgraded/reinstalled to Debian 10 "buster" 
The Debian Janitor is an automated
system that commits fixes for (minor) issues in Debian packages that can be
fixed by software. It gradually started proposing merges in early
December. The first set of changes sent out ran lintian-brush on sid packages maintained in
Git. This post is part of a series about the progress of the
Janitor.
The bot has been submitting merge requests for about seven
months now. The rollout has happened gradually across the
Debian archive, and the bot is now enabled for all packages
maintained on Salsa, GitLab, GitHub and Launchpad.
There are currently over 1,000 open merge requests, and
close to 3,400 merge requests have been merged so far.
Direct pushes are enabled for a number of large Debian
teams, with about 5,000 direct pushes to date. That covers
about 11,000 lintian tags of varying severities (about 75 different varieties) fixed across Debian.
For more information about the Janitor's lintian-fixes efforts, see the landing page
apt install curl certbot /usr/bin/letsencrypt certonly --standalone -d j.example.com,auth.j.example.com -m you@example.com curl https://download.jitsi.org/jitsi-key.gpg.key gpg --dearmor > /etc/apt/jitsi-keyring.gpg echo "deb [signed-by=/etc/apt/jitsi-keyring.gpg] https://download.jitsi.org stable/" > /etc/apt/sources.list.d/jitsi-stable.list apt-get update apt-get -y install jitsi-meetWhen apt installs jitsi-meet and it s dependencies you get asked many questions for configuring things. Most of it works well. If you get the nginx certificate wrong or don t have the full chain then phone clients will abort connections for no apparent reason, it seems that you need to edit /etc/nginx/sites-enabled/j.example.com.conf to use the following ssl configuration:
ssl_certificate /etc/letsencrypt/live/j.example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/j.example.com/privkey.pem;Then you have to edit /etc/prosody/conf.d/j.example.com.cfg.lua to use the following ssl configuration:
key = "/etc/letsencrypt/live/j.example.com/privkey.pem"; certificate = "/etc/letsencrypt/live/j.example.com/fullchain.pem";It seems that you need to have an /etc/hosts entry with the public IP address of your server and the names j.example.com j auth.j.example.com . Jitsi also appears to use the names speakerstats.j.example.com conferenceduration.j.example.com lobby.j.example.com conference.j.example.com conference.j.example.com internal.auth.j.example.com but they aren t required for a basic setup, I guess you could add them to /etc/hosts to avoid the possibility of strange errors due to it not finding an internal host name. There are optional features of Jitsi which require some of these names, but so far I ve only used the basic functionality. Access Control This section describes how to restrict conference creation to authenticated users. The secure-domain document [2] shows how to restrict access, but I ll summarise the basics. Edit /etc/prosody/conf.avail/j.example.com.cfg.lua and use the following line in the main VirtualHost section:
authentication = "internal_hashed"Then add the following section:
VirtualHost "guest.j.example.com"
authentication = "anonymous"
c2s_require_encryption = false
modules_enabled =
"turncredentials";
Edit /etc/jitsi/meet/j.example.com-config.js and add the following line:
anonymousdomain: 'guest.j.example.com',Edit /etc/jitsi/jicofo/sip-communicator.properties and add the following line:
org.jitsi.jicofo.auth.URL=XMPP:j.example.comThen run commands like the following to create new users who can create rooms:
prosodyctl register admin j.example.comThen restart most things (Prosody at least, maybe parts of Jitsi too), I rebooted the VM. Now only the accounts you created on the Prosody server will be able to create new meetings. You should be able to add, delete, and change passwords for users via prosodyctl while it s running once you have set this up. Conclusion Once I gave up on the idea of running Jitsi on the same server as anything else it wasn t particularly difficult to set up. Some bits were a little fiddly and hopefully this post will be a useful resource for people who have trouble understanding the documentation. Generally it s not difficult to install if it is the only thing running on a VM.
Welcome to gambaru.de. Here is my monthly report (+ the first week in August) that covers what I have been doing for Debian. If you re interested in Java, Games and LTS topics, this might be interesting for you.
Debian Games

Recently, I discovered bashtop, yet another fancy top-like utility that s mostly written in bash (it uses some python3-psutil and shells out to other common system utilities). I like its use of high-colour graphics and despite being written in bash, it s not as resource heavy as I would have expected and also quite snappy (even on a raspberry pi). While writing this post, I also discovered that the author of bashtop ported it to Python and that the python version is called bpytop (hmm, doesn t quite have the same ring to it), which is even faster and less resource intensive than the bash version (although I haven t tried that yet, I guess I will soon ).
I set out to package it, but someone beat me to it, but since I m also on the backports team these days, I went ahead and backported it for buster. So if you have backports enabled, you can now install it using apt install bashtop -t buster-backports .
Dylan A ssi, who packaged bashtop in Debian, has already filed an ITP for bpytop, so we ll soon have yet another top-like tool in our collection :-)



$ nmcli con show
NAME UUID TYPE DEVICE
br-59d010130b86 d8672d3d-7cf6-484f-9ef8-e6ec3e73bef7 bridge br-59d010130b86
FRITZ!Box 7411 1ed1cec1-f586-4e75-ba6d-c9f6f4cba6e2 wifi wlp4s0
[...]
Step 2: Request to view the PSK for this network based on the UUID
$ nmcli --show-secrets --fields 802-11-wireless-security.psk con show '1ed1cec1-f586-4e75-ba6d-c9f6f4cba6e2'
802-11-wireless-security.psk: 0815471123420511111
When I did the work described earlier in template
haskell, I also explored generic programming
in Haskell to solve a particular problem. StrIoT is a program generator: it
outputs source code, which may depend upon other modules, which need to be
imported via declarations at the top of the source code files.
The data structure that StrIoT manipulates contains information about what
modules are loaded to resolve the names that have been used in the input code,
so we can walk that structure to automatically derive an import list. The
generic programming tools I used for this are from
Scrap Your Boilerplate
(SYB), a module written to complement
a paper of the same name.
In this code snippet, everything and mkQ are from SYB:
extractNames :: Data a => a -> [Name]
extractNames = everything (++) (\a -> mkQ [] f a)
where f = (:[])
The input must be any type which implements typeclass Data, as must all its
members (and their members etc.): This holds for the Template Haskell Exp
types. The output is a normal list of Names. The utility function has a
more specific type Name -> [Name]. This is all that's needed to walk over
the heterogeneous data structures and do something specific (f) when we
encounter a Name.
Post-processing the Names to get a list of modules is simple
nub . catMaybes . map nameModule . concatMap extractNames
Unfortunately, there's a weird GHC behaviour relating to the module names
for some Prelude functions that makes the above less useful in practice.
For example, the Prelude function words :: String -> [String] can normally
be used without an explicit import (since it's a Prelude function). However,
once round-tripped through a Name, it becomes GHC.OldList.words. Attempting
to import GHC.OldList fails in some contexts, because it's a hidden module or
package. I've been meaning to investigate further and, if necessary, file a GHC
bug about this.
For this reason I've scrapped all the above and gone with a different plan. We
go back to requiring the user to specify their required import list explicitly.
We then walk over the Exp data type prior to code generation and decanonicalize
all the Names. I also use generic programming/SYB to do this:
unQualifyNames :: Exp -> Exp
unQualifyNames = everywhere (\a -> mkT f a)
where f :: Name -> Name
f n = if n == '(.)
then mkName "."
else (mkName . last . splitOn "." . pprint) n
I've had to special-case composition (.) since that code-point is also used
as the delimiter between package, module and function. Otherwise this looks
very similar to the earlier function, except using everywhere and mkT (make
transformation) instead of everything and mkQ (make query).
Picolibc Updates
I thought work on picolibc would slow down at some point, but I keep
finding more things that need work. I spent a few weeks working in
libm and then discovered some important memory allocation bugs in the
last week that needed attention too.
Cleaning up the Picolibc Math Library
Picolibc uses the same math library sources as newlib, which includes
code from a range of sources:
void * nano_calloc(malloc_size_t n, malloc_size_t elem)
ptrdiff_t bytes;
void * mem;
if (__builtin_mul_overflow (n, elem, &bytes))
RERRNO = ENOMEM;
return NULL;
mem = nano_malloc(bytes);
if (mem != NULL) memset(mem, 0, bytes);
return mem;
Note the naming here -- nano_mallocr uses nano_ prefixes in the code,
but then uses #defines to change their names to those expected in the
ABI. (No, I don't understand why either). However, GCC sees the real
names and has some idea of what these functions are supposed to do. In
particular, the pattern:
foo = malloc(n);
if (foo) memset(foo, '\0', n);
is converted into a shorter and semantically equivalent:
foo = calloc(n, 1);
Alas, GCC doesn't take into account that this optimization is occurring
inside of the implementation of calloc.
Another sequence of code looked like this:
chunk->size = foo
nano_free((char *) chunk + CHUNK_OFFSET);
Well, GCC knows that the content of memory passed to free cannot
affect the operation of the application, and so it converted this
into:
nano_free((char *) chunk + CHUNK_OFFSET);
Remember that nano_mallocr stores the size of the chunk just before
the active memory. In this case, nano_mallocr was splitting a large
chunk into two pieces, setting the size of the left-over part and
placing that on the free list. Failing to set that size value left
whatever was there before for the size and usually resulted in the
free list becoming quite corrupted.
Both of these problems can be corrected by compiling the code with a
couple of GCC command-line switches (-fno-builtin-malloc and
-fno-builtin-free).
Reworking Malloc
Having spent this much time reading through the nano_mallocr code, I
decided to just go through it and make it easier for me to read today,
hoping that other people (which includes 'future me') will also find
it a bit easier to follow. I picked a couple of things to focus on:
mem = nano_malloc(new_size);
if (mem)
memcpy(mem, old, MIN(old_size, new_size));
nano_free(old);
return mem;
However, this really performs badly when the application is growing a
buffer while accumulating data. A couple of simple optimizations
occurred to me:
for (element = head; element; element = element->next)
do stuff ...
However, this becomes pretty complicated when 'do stuff' includes
removing something from the list:
prev = NULL;
for (element = head; element; element = element->next)
...
if (found)
break;
...
prev = element
if (prev != NULL)
prev->next = element->next;
else
head = element->next;
An extra variable, and a test to figure out how to re-link the list.
Bob showed me a simpler way, which I'm sure many people are familiar
with:
for (ptr = &head; (element = *ptr); ptr = &(element->next))
...
if (found)
break;
*ptr = element->next;
Insertion is similar, as you would expect:
for (ptr = &head; (element = *ptr); ptr = &(element->next))
if (found)
break;
new_element->next = element;
*ptr = new_element;
In terms of memory operations, it's the same -- each 'next' pointer is
fetched exactly once and the list is re-linked by performing a single
store. In terms of reading the code, once you've seen this pattern,
getting rid of the extra variable and the conditionals around the list
update makes it shorter and less prone to errors.
In the nano_mallocr code, instead of using 'prev = NULL', it actually
used 'prev = free_list', and the test for updating the head was 'prev
== element', which really caught me unawares.
System Parameters
Any malloc implementation needs to know a couple of things about the
system it's running on:
typedef struct
char c;
union
void *p;
double d;
long long ll;
size_t s;
u;
align_t;
#define MALLOC_ALIGN (offsetof(align_t, u))
Because C requires struct fields to be stored in order of
declaration, the 'u' field would have to be after the 'c' field, and
would have to be assigned an offset equal to the largest alignment
necessary for any of its members. Testing on a range of machines
yields the following alignment requirements:
| Architecture | Alignment |
|---|---|
| x86_64 | 8 |
| RISC-V | 8 |
| aarch64 | 8 |
| arm | 8 |
| x86 | 4 |
156. This version includes the following changes:
[ Chris Lamb ]
* Update PPU tests for compatibility with Free Pascal versions 3.2.0 or
greater. (Closes: #968124)
* Emit a debug-level logging message when our ppudump(1) version does not
match file header.
* Add and use an assert_diff helper that loads and compares a fixture output
to avoid a bunch of test boilerplate.
[ Frazer Clews ]
* Apply some pylint suggestions to the codebase.
The publisher MDPI is a spammer and lies.
If you upload a paper draft to arXiv, MDPI will send spam to the authors
to solicit submission. Within minutes of an upload I received the
following email (sent by MDPI staff, not some overly eager new editor):
We read your recent manuscript "[...]" on
arXiv, and sincerely invite you to submit it to our journal Future
Internet, if it has not been published or submitted elsewhere.
Future Internet (ISSN 1999-5903, indexed by Scopus, Ei compendex,
*ESCI*-Web of Science) is a journal on Internet technologies and the
information society. It maintains a rigorous and fast peer review system
with a median publication time of 35 days from submission to online
publication, and 3 days from acceptance to publication. The journal
scope is shown here:
https://www.mdpi.com/journal/futureinternet/about.
Editorial Board: https://www.mdpi.com/journal/futureinternet/editors.
Since Future Internet is an open access journal there is a publication
fee. Your paper will be published, with a 20% discount (amounting to 200
CHF), and provided that it is accepted after our standard peer-review
procedure.
Short status update on my KDE/Plasma packages for Debian sid and testing:
postgres), or generating/updating cache files.
Triggers are a kind of hook which run when other packages are installed. For
example, on Debian, the man(1) package
comes with a trigger which regenerates the search database index whenever any
package installs a manpage. When, for example, the
nginx(8) package is installed, a
trigger provided by the man(1) package
runs.
Over the past few decades, Open Source software has become more and more
uniform: instead of each piece of software defining its own rules, a small
number of build systems are now widely adopted.
Hence, I think it makes sense to revisit whether offering extension via hooks
and triggers is a net win or net loss.
find shard*/src/*/debian -regex ".*\(pre\ post\)\(inst\ rm\)$" on a Debian
Code Search instance.
apropos(1) command, so I don t
appreciate the man(1) package s trigger
which updates the database used by
apropos(1). The process takes a long
time and, because hooks and triggers must be executed serially (see previous
section), blocks my installation or update.
When I tell people this, they are often surprised to learn about the existance
of the apropos(1) command. I suggest
adopting an opt-in model.
PATH) via a wrapper bash script, I noticed that the overhead of those
wrapper bash scripts quickly becomes significant. For example, when using the
excellent magit interface for Git in Emacs, I encountered
second-long delays when using hermetic packages compared to standard
packages. Re-implementing wrappers in a compiled language provided a significant
speed-up.
Similarly, getting rid of an extension point which mandates using shell scripts
allows us to build an efficient and fast implementation of a predefined set of
primitives, where you can reason about their effects and interactions.
magit needs to run git a few times for displaying the full status, so small
overhead quickly adds up.
./configure && make && make install (including commonly used flags) to
build a distribution package. Integrating upstream software into a distribution
should not require custom hooks. For example, instead of requiring a hook which
updates a cache of schema files, the library used to interact with those files
should transparently (re-)generate the cache or fall back to a slower code path.
Distribution maintainers are hard to come by, so we should value their time. In
particular, there is a 1:n relationship of packages to distribution package
maintainers (software is typically available in multiple Linux distributions),
so it makes sense to spend the work in the 1 and have the n benefit.
/etc/passwd just once.
If the hook is specific to the package, it should be moved into the package
contents. This typically means moving the functionality into the program start
(or the systemd service file if we are talking about a daemon). If (while?)
upstream is not convinced, you can either wrap the program or patch it. Note
that this case is relatively rare: I have worked with hundreds of packages and
the only package-specific functionality I came across was automatically
generating host keys before starting OpenSSH s
sshd(8) .
There is one exception where moving the hook doesn t work: packages which modify
state outside of the system, such as bootloaders or kernel images.
Even that can be moved out of a package-specific hook, as Fedora
demonstrates.
--help output.
The better alternative is to configure your build system such that it stops when
any dependency was not found, and thereby have packagers acknowledge each
optional dependency by explicitly disabling the option.
--disable-nls to disable
internationalization.
However, optional dependencies are broken so often that I conclude they are
overused. Read on and see for yourself whether you would rather commit to best
practices or not introduce an optional dependency.
--disable flag.--version.Next.