Technical Notes
These notes are my personal online notebook of useful commands and "how-to's". You are welcome to make use of them if you find them helpful. They obviously don't come with any warranty! Click on one of...
View ArticlePDF printing under ubuntu
To install: sudo apt-get install cups-pdf There are a couple of pitfalls:Getting unreadable PDF Due to wrongly selecting ☒ print to file (which creates an EPS, not a pdf but can be read with some pdf...
View ArticleSetting up Syncthing on an Ubuntu 16.04 server
Resourcesapt.syncthing.net Syncthing’s instructions for installing their PPAwww.digitalocean.com/…tu-14-04 install from GitHub.read more
View ArticleInstall php 5.6 on Ubuntu 16.04
By default Ubuntu 16.04 (Xenial) now comes with php 7.0You can install php 5.6 in parallel and switch between them using the following instructions: add-apt-repository ppa:ondrej/php apt update apt...
View ArticleInstalling libsass on Ubuntu
The most minimal way of doing an installation is using sassc, the C binding. apt install git build-essential cd /opt git clone https://github.com/sass/libsass.git git clone...
View ArticleSetting up NFS on Ubuntu 16.04
Make sure userid’s and groupid’s match between the systemse.g. usermod -u 1001 -g 504 -c "Andrew Fountain" andrewfSet up the serverset up the fully qualified domain name, e.g.read more
View Articleiptables configuration on a linux server
List current tables with line numbers and statsiptables -L INPUT --line-numbers -vAppend another ruleiptables -A INPUT -s 58.245.23.126/24 -j DROPDelete rule #3iptables -D INPUT 3The moment you apply...
View ArticleWiping a Hard Drive Clean
To securely wipe a hard drive of all data, do: apt install wipe shred -vfz -n 2 /dev/sdb Options above are verbose, force, zero out in an extra passNumber of passes: -n 2
View ArticleFixing a Linux broken boot
If the system has been corrupted, and there is no grub menu, then boot from a live CD, open a terminal and do this: sudo fdisk -l # find the root filesystem sudo mount /dev/sda2 /mnt #whatever your...
View ArticlePreventing false mouse double-clicks under linux
Newer versions of Kubuntu are missing the advanced mouse options which let you debounce the mouse sudo apt install xserver-xorg-input-evdev sudo mkdir -p /etc/X11/xorg.conf.d Then edit...
View Article