Category: Admin’s Little Helpers

chroot and serial console to fix ubuntu distro upgrade gone wrong

I had to fix a do-distro-upgrade from 16.04 to 18.04 due to a severed ssh connection, and no screen running (apparently earlier distro upgrades used screen to prevent this kind of problem) the machine as a PCengine apu2, so no video. also, the root file system is sitting on a miniPCI ssd. eventually, my thinkpad

Continue Reading…

Install and monitor skypool’s Nimiq client via ansible playbook, systemd and ruby & cron

INTRODUCTION This is a short entry to document installation and monitoring of the skypool nimiq client. The Nimiq network is a decentralized payment network that runs in the browser and is installation-free. Personally, i believe that the Litecoin and Ethereum projects have been so far able to generate a strong economy around them, however, projects

Continue Reading…

Quick way to forward mails via postfix

Thanks to https://www.bentasker.co.uk/documentation/linux/173-configuring-postfix-to-automatically-forward-mail-for-one-address-to-another Assuming you’re running Postfix, it’s as simple as the steps below First we make sure the virtual mappings file is enabled vim /etc/postfix/main.cf # Scroll down until you find virtual_alias_maps # Make sure it reads something like virtual_alias_maps = hash:/etc/postfix/virtual # We also need to make sure the domain is enabled virtual_alias_domains=example.com

Continue Reading…

How to create a self-signed (wildcard) certificate

This is a quick step to generate self-signed certificate : openssl genrsa 2048 > host.key openssl req -new -x509 -nodes -sha1 -days 3650 -key host.key > host.cert #[enter *.domain.com for the Common Name] openssl x509 -noout -fingerprint -text < host.cert > host.info cat host.cert host.key > host.pem chmod 400 host.key host.pem from here