Resources for Unix like systems, especially linux.
I have a home server I use for all kinds of stuff when I’m away. I have set it up recently so that it can serve a folder mounted over the network from a Windows machine. And this is where the fun started! The folders and files appear correctly, I can navigate and I...
Read more »
Tags: apache, cifs, mount, network, share, smbfs, symlink
Posted in *nix, Networking, Web | No Comments »
A backup NAS I set up for a client had some problems – i.e. from time to time the network card would hang forcing a reboot (the machine was headless). The disks in the nas are RAID 1 providing redundancy in case of failure. We wanted the same with the network. So, nothing easier...
Read more »
Tags: bond, bonding, failover, network, redudancy, slackware, trunk, trunking
Posted in *nix, Networking | No Comments »
Let’s say you run a headless server and you want to fsck the main partition. The easy solution in this case is (if possible) to force fsck to run on the next boot. If you run slackware than all you really need is to create an empty file in /etc called forcefsck You could...
Read more »
Tags: bash, force, fsck, touch
Posted in Bash scripting, Tips and tricks | No Comments »
I have some albums that were ripped in wma form (yes a shame I know). I wanted them converted into mp3 so my collection remains consistent. So this would be a command to run in a folder filled with .wma files. This keeps the names but not the tags so be sure to use...
Read more »
Posted in Bash scripting, Tips and tricks | No Comments »
I’m using this excellent tool on my hosting server called denyhosts. It basically scans trough auth.log for repeated failed attempts to login in order to block brute force attackers. It can also get a list of offending ip-s from other usesrs of DenyHosts who configured their instalation to share attacker ip’s. All nice and...
Read more »
Posted in *nix, Tips and tricks | No Comments »
Did you ever need to have e-mail's sent from within a bash script? Maybe alert you of errors encountered? Me too.
Here's an easy way on how to do it:
Read more »
Tags: automation, bash, email, error, message, script
Posted in Bash scripting | No Comments »
It’s a mystery for me why on windows firefox developers have conceived one use for backspace and another for firefox on linux. If you are coming from windows and moving onto linux you might be used to press backspace to go back one page in Firefox. Well you’re in for a small surprise –...
Read more »
Tags: back, backspace, firefox
Posted in *nix, Tips and tricks, Windows | 1 Comment »
I outgrew my shared hosting and decided to go for a dedicated virtual server. I chose Linode but I will leave that for another article. I decided to use postfix + courier + mysql and virtual domains for my mail setup. Everythig was configured fine and dandy according to the documentation. But I kept...
Read more »
Tags: authentication, courier, mysql, password, postfix
Posted in *nix | No Comments »
Recently I set-up a machine in my closet to act as a backup server. One of it’s jobs is to download via pop3 all the email from our Gmail accounts just in case the cloud goes puf . For this job I used fetchmail to fetch the emails to local users on the machine....
Read more »
Tags: deliver, domain, email, exist, sendmail
Posted in *nix, Networking | No Comments »
Sometimes is needed to have all files in a folder in the same case. Here’s a small script to rename all files in the folder to lower case: for i in *; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
Read more »
Tags: bash, folder, rename, script
Posted in Bash scripting | No Comments »