Just in case you have been living under a rock: Linux is now 30 years old and while it still hasn't conquered the desktop, there are few smart phones that would work without it and also on the server side it's pretty strong (I have been maintaining Linux servers on the side for more than … Continue reading 30 years of Linux
Category: Linux
When initramfs gives you cryptic error messages
Note to self: If during a Linux update you get the following error: [bash] update-initramfs: Generating /boot/initrd.img-whatever W: initramfs-tools configuration sets RESUME=UUID=some-uuid-goes-here W: but not matching swap device is available. I: The initramfs will attempt to resume from /some/device I: (some-other-uuid-goes-here) I: Set the RESUME variable to override this [/bash] Check the content of the … Continue reading When initramfs gives you cryptic error messages
Adding a Windows 10 computer to a Samba (NT4) domain
Microsoft is trying to force everybody to update from the old NT4 domain system to the "new" (as in "was new >10 years ago") Active Directory system. While that's probably a good idea for most people there are some like me stuck with a working Samba installation that for some reason needs to continue to … Continue reading Adding a Windows 10 computer to a Samba (NT4) domain
Allow svn:author to be changed for a subversion repository
Note to self: In order to allow changes to the author of an svn commit, the pre-revprop-change hook of the repository must be changed like this: Insert the line [bash] if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:author" ]; then exit 0; fi [/bash] just below the existing, similar line that allows changing svn:log. … Continue reading Allow svn:author to be changed for a subversion repository
Extract jpeg files from mjpeg video on Linux
Just in case I ever need it again: Extracting all frames from an mjpeg video as jpegs is easy and very fast with ffmpeg, because it does not need to decode and encode the pictures, just prepend the DHT to each one: [bash] ffmpeg -i inputmpeg.avi -c:v copy -bsf:v mjpeg2jpeg frame_%d.jpg [/bash] Source ffmpeg documentation.
Installing Webmin on Ubuntu 18.04 Server
I just tried to install Webmin on a fresh install of Ubuntu 18.04 Server in the same way as I did on 16.04. Unfortunately it failed on the command [bash] apt install webmin [/bash] because the package apt-show-versions was not found. I solved this by adding the universe repository to apt with [bash] sudo add-apt-repository … Continue reading Installing Webmin on Ubuntu 18.04 Server
DeltaChat Messenger
DeltaChat is a messenger that uses email as the transport medium, so potentially almost everybody already has an account for it. Today, they announced a new release, not only for the existing Android app but also for Desktop (Mac and Linux only so far) and iOS. I think that is a very interesting project since … Continue reading DeltaChat Messenger
If your Samba logon script does not get executed
... even though you can open and read it fine in an editor: You should check its Linux access permissions. If it is not marked as executable, this might be the cause. Change it with chmod like this: [bash] root@server:/home/netlogon$ ls -la total 12 drwxrwxr-x+ 2 root root 4096 Apr 13 09:04 . drwxr-xr-x 46 … Continue reading If your Samba logon script does not get executed
Creating a properly aligned partition with parted
Parted is a flexible tool for working with partition tables under Linux. Unfortunately it sometimes seems rather stupid. For example when you create a new partition you may get the warning "The resulting partition is not properly aligned for best performance". It could then of course proceed to suggest the proper alignment, but it doesn't, … Continue reading Creating a properly aligned partition with parted
Write the name of a newly connected USB device to the console in Linux
In theory it is easy to detect when the user plugs in a USB device to a Linux computer and notify him what was detected. In practice it's still easy as long as you know how to do it. First thing to do is add a file to[bash]/etc/udev/rules.d[/bash] The file name should follow the convention … Continue reading Write the name of a newly connected USB device to the console in Linux