Chances are if you have a Linux server in your home, you’ll want it to be able to send you emails, e.g. its daily logwatch or the output from cron jobs. But most ISPs block SMTP so you can’t directly send emails from your server to wherever they need to go, which is what the […]Read more "Configuring sendmail to use a Smart Host"
I use vim all the time, but I can never remember off the top of my head. I have to look it up every time. So I’ve made a note of it here. This command simply replaces all occurrences of string with replace. Simple! :%s/search/replace/gRead more "Search and replace in vim"
I’ve just written a module for Nagios that will determine if the currently running kernel is the latest kernel available on the system. It will not tell you if there is a newer kernel in a yum repository or similar. The main gotcha is that you need an RPM-based system for my script to work, […]Read more "Checking for the latest kernel with Nagios"
Sometimes you need to change the log verbosity of wpa_supplicant for debugging purposes. First check which log verbosity you are currently running with. ps -ef | grep wpa_supplicant | grep -v grep -d represents verbose -dd represents extra verbose To change the log verbosity, edit /usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service and add -d or -dd as appropriate. Example: [D-BUS […]Read more "Changing the verbosity of wpa_supplicant on Ubuntu"
In this article I will talk you through how to set up automatic backups from your Linux computer, to another Linux/Unix computer of some description. This works for OS X, too. I have tested these instructions on Fedora and Ubuntu. These backups will use rsync, a handy program for copying only the files that have […]Read more "Automated backups on Linux"