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 »
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 »
Elementary OS 5 comes with a very limited systray functionality that needs to be fixed. For this you need to install wingpanel-indicator-ayatana that can be installed via a PPA and change autostart config of the indicator app. Install wingpanel-indicator-ayatana Change autostart config Open the config file with and change the line to Then reboot your
add systray to elemtary os Read More »
I installed a Nvidia GeForce GTX 2070 Super (https://geizhals.at/msi-geforce-rtx-2070-super-gaming-x-trio-v372-257r-a2091022.html) in my system removing a GTX 980. The system has a dual boot with Win10 and elementary OS 5. Both system were using the nvidia native driver. There was no extra effort neither in Windows nor elementary OS. Windows took about a minute to switch to
Nvidia GeForce GTX 2070 Super under Linux Read More »
After installing kvm on my enlightenment 5 system I had a login for qemu libvirt to choose in the login screen. To remove it I ran: On the next login the entry was gone.
remove qemu libvirt user from lightdm login screen Read More »