Using `notify-send` and `yagmail` to send an alert if /boot partition is about to run out of space

Sometimes, you need to send both a visual and email alert for something that is checked using a background process (for example, running a `crontab` job): `notify-send` and `yagmail` provide a more user-friendly alternative on Ubuntu Linux desktop than scraping logs. … More Using `notify-send` and `yagmail` to send an alert if /boot partition is about to run out of space

HOW-TO Encrypt an archive file

Private/Public keypair Create the private key (one-off): openssl genrsa -out ~/.ssh/key.pem 2048 chmod 400 ~/.ssh/key.pem then extract the public key from it: openssl rsa -in ~/.ssh/key.pem -out ~/.ssh/key.pub -outform PEM -pubout NOTE The whole mechanism revolves around keeping the secret key key.pem, well, secret. This is the only critical part of the scheme. Everything else, … More HOW-TO Encrypt an archive file

NFS mount fails with “access denied by server”

Symptom When mounting a valid share, NFS denies access: $ mount /mnt/backup mount.nfs: access denied by server while mounting server:/share/USBDisk1 Solution The mount point is not exported. Find out where the mount point points to on the client side (although, that info was already in the error message): $ cat /etc/fstab # /etc/fstab: static file … More NFS mount fails with “access denied by server”