log

Setup Unbound DNS on Arch

16.07.2020

pacman -S unbound
systemctl start unbound
systemctl enable unbound
echo -e "[main]\ndns=none" > /etc/NetworkManager/conf.d/no-dns.conf
systemctl restart NetworkManager.service
echo nameserver 127.0.0.1 >/etc/resolv.conf
echo nameserver ::1 >>/etc/resolv.conf

Setting up ProtonVPN on Manjaro Linux

17.11.2019

I had some problems setting up ProtonVPN with the instructions provides by Protonmail
sudo su - root
pacman -S openvpn dialog python-pip
pip3 install protonvpn-cli

# Enable Logging - logs are found in the /root/.pvpn-cli
export PROTONVPN_CLI_LOG=true
protonvpn init

Now answer the questions
I tried to connect with "protonvpn c" but this did not work
cd /root/.pvpn-cli

Now open the pvpnpass file and enter the openvpn credentials from https://account.protonvpn.com/account
After that i was able to connect to the servers.

Setting up Let's Encrypt certbot on Ubuntu 18.04

08.10.2019

The cleanest approach of setting up certbot on Ubuntu is to use virtualenv.
apt-get install python3-venv
apt-get install libaugeas-dev
mkdir -p /opt/certbot
cd /opt/certbot/
python3 -m venv .
source bin/activate
pip install -U pip
pip install wheel
pip install certbot-apache
bin/certbot

Nagios NRPE: Could not complete SSL - dh key too small error (Ubuntu 18.04)

07.10.2019

Ubuntu 18.04 ships a check_nrpe version that is broken. It can't communicate with older versions of nrpe-server. Neither the -n nor the -2 flag is working. The only way to get it work is to copy a check_nrpe version from an older Ubuntu.
https://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/+bug/1782650

Install VNC on server

06.10.2019

user=jon.doe
host=example.com
apt-get install xfce4 xfce4-goodies tightvncserver
apt-get install firefox firefox-locale-de thunderbird thunderbird-locale-de
adduser $user
#### Login
ssh $username@$host  vncserver -localhost -geometry 1440x900
ssh -L 5901:localhost:5901 -N -f -l $user $host
### Start Remmina with vnc plugin connect to 127.0.0.1:5901