Update Python to 3.11 on Raspbian Bullseye

I found a guide how to build (compile) the most recent Python-versions on the Pi here. This guide still works on “Bullseye” and also with Python 3.11. However, I’d recommend to miss out the part with deletion of the symlink at /usr/bin though, but use the “update-alternatives”-tool instead. One just need some patience as the… Continue reading Update Python to 3.11 on Raspbian Bullseye

Linux batch rename one-liner

Just in case I need it again and don’t remember: for f in <OLDPATTERN>; do mv “$f” “$(echo “$f” | sed ‘s/<OLDPATTERN>/<NEWPATTERN>/’)”; done And to batch-rename strings in all text-type files in a folder: for f in <FILEPATTERN>; do if [[ $(file “$f” | grep “text”) != “” ]]; then sed -i ‘s/<OLDPATTERN>/<NEWPATTERN>/g’ “$f”; fi;… Continue reading Linux batch rename one-liner

Get “yum” on old CentOS working again

If you have some older CentOS VMs for testing or cross-compiling, you may run into the problem that you can’t install or update the system via “yum” any more: # yum update Loaded plugins: fastestmirror, priorities Determining fastest mirrors YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/… Continue reading Get “yum” on old CentOS working again

Using command timeouts inside of bash scripts

Sometimes one needs to terminate a command after a period of time and this particular command does not offer a timeout function itself. This could be a real show-stopper when it’s about running commands synchronously inside of scripts. Somehow I didn’t manage to get “timeout” from the coreutils working correctly inside of a bash script… Continue reading Using command timeouts inside of bash scripts

OwnCloud: Fix ‘home storage for user not writable’ error

The popular problem… I recently went into trouble with an OwnCloud installation on one of our servers. A few users had problems accessing any files or even upload new ones with errors like “404 not found” or “Forbidden”… It figured out, that these problems must be connected to the move of the datastore-folder some time… Continue reading OwnCloud: Fix ‘home storage for user not writable’ error

Running Jenkins with SSL on default HTTPS port

Note: Since Jenkins is a java application running with limited system permission, it’s socket listeners can’t listen on ports below 1024. So if you want to run Jenkins with HTTPS enabled on the default HTTPS-port 443, you need some work around. Basic solution (complete): Here are the complete steps I took when switching one of… Continue reading Running Jenkins with SSL on default HTTPS port

get phpVirtualBox 5.0.5 running with VirtualBox 5.2.x

If you haven’t already, upgrade to phpVirtualBox 5.0.5. Open file “endpoints/lib/config.php” on your phpvirtualbox installation in an editor of your choice. Change the line “define(‘PHPVBOX_VER’, …) as following: define(‘PHPVBOX_VER’, ‘5.2-0’); Download SDK for VirtualBox 5.2 from https://www.virtualbox.org/wiki/Downloads Extract the SDK-archive contents somewhere. Copy the files “bindings/webservice/vboxweb.wsdl” and “bindings/webservice/vboxwebService.wsdl” of the SDK to the folder “endpoints/lib”… Continue reading get phpVirtualBox 5.0.5 running with VirtualBox 5.2.x

Remove obsolete *.log-files from openLDAP DB-folder

If you use the openLDAP-server you will probably run into the problem that the *.log-files located in the DB’s folder will comsume more and more free space. It seems that the automatic maintenance service that should clean up no longer used log-files is somehow broken. Luckly there is a command that removes any log-files that… Continue reading Remove obsolete *.log-files from openLDAP DB-folder

The movement to rid the world of the Flash Player plugin

Flash Player is dead. Its time has passed. It’s buggy. It crashes a lot. It requires constant security updates. It doesn’t work on most mobile devices. It’s a fossil, left over from the era of closed standards and unilateral corporate control of web technology. Websites that rely on Flash present a completely inconsistent (and often… Continue reading The movement to rid the world of the Flash Player plugin