Get script directory in Bash
If you need to get the script directory of an executed bash script you can use the following snippet to cd to the script directory:
Get script directory in Bash Read More »
If you need to get the script directory of an executed bash script you can use the following snippet to cd to the script directory:
Get script directory in Bash Read More »
If you want your server to install docker updates automatically then you need to add the docker repository to the list of allowed origins. Otherwise docker updates will stay untouched by unattended-update which will looks similar to this when you login and check which updates need to be installed. Had that quite some times until
Add docker to unattended-upgrades in ubuntu 20.04 Read More »
If you want to host your own teamspeak server this can be done quite easily with a server and docker-compose. Here is the example I tried: You will need a dns entry or the ip of the server to connect with your teamspeak client. With the client you can then add a password to protect
After some updates the installation/the database needs to be fixed. This can be done with the command line tool on a debian system where the installation belongs to the apache user www-data:
Nextcloud fix installation Read More »
Zoom didn’t want to accept a background video so I tried to find a way to shrink its size to 1080p. There is a simple command to do that with ffmpeg:
Resize mp4 with ffmpeg Read More »
DaVinci Resolve doesn’t support import or export of mp4 format on Linux. It is working on Windows 10, but I really don’t want to switch to boot into Windows for rendering. So i looked around and found a workflow for using Resolve under Linux: ffmpeg is my tool of choice to change formats so that
DaVinci Resolve 16 Linux mp4/h.264 encode/decode Read More »
You can use softlinks (linux: ln -s source target) under windows. The example mklink /D jdk11 jdk-11.0.7.10-hotspot will create a softlink with name jdk11 to folder jdk-11.0.7.10-hotspot in the same directory.
Windows ln style softlinks with mklink Read More »
if you need to move wordpress to a new url then the following sql script will be handy (update the urls in it of course):
change wordpress url in database Read More »
To get elementary os 5 to use double click for files instead of single click you can simply run this command in shell:
elementary os with double click instead of single click Read More »
I recentely found out about OpenStreetMap Nominatim and its reverse geocoding feature. And same as OSM it can be installed on a local server. I followed the installation steps documented in online manual and everything runs very smoothly. #!/bin/bash # steps for 18.04 LTS with latest updates # run as root export USERNAME=nominatim export USERHOME=/srv/nominatim
Install OSM Nominatim in Ubuntu LTS 18.04 for private reverse geocoding Read More »