*nix

Resources for Unix like systems, especially linux.

Apache 2.2 will not serve corectly from CIFS mounted share

July 27, 2010
By silviu

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: , , , , , ,
Posted in *nix, Networking, Web | No Comments »

Network interface bonding in Slackware (version 13.1)

July 20, 2010
By silviu

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: , , , , , , ,
Posted in *nix, Networking | No Comments »

Force fsck on next reboot

July 19, 2010
By silviu
fsck

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: , , ,
Posted in Bash scripting, Tips and tricks | No Comments »

Wma to Mp3 a folder in one command line

June 29, 2010
By silviu

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 »

Whitelist a host when using denyhosts

March 26, 2010
By silviu
denyhosts

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 »

Easily send mail from a bash script

March 18, 2010
By silviu

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: , , , , ,
Posted in Bash scripting | No Comments »

Configure the behaviour of backspace in Firefox for Linux

March 15, 2010
By silviu
backspace

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: , ,
Posted in *nix, Tips and tricks, Windows | 1 Comment »

Authentication problems with postfix, courier, mysql and virtual domains

March 15, 2010
By silviu
Hash

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: , , , ,
Posted in *nix | No Comments »

Sendmail says “domain does not exist”

February 13, 2010
By silviu
sendmail

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: , , , ,
Posted in *nix, Networking | No Comments »

Rename all files in a folder from upper to lower case.

February 12, 2010
By silviu

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: , , ,
Posted in Bash scripting | No Comments »

Website personal

Daca sunteti interesati de activitatea mea personala sau serviciile oferite acesta este site-ul pe care doriti sa-l vizitatiro.sgvulcan.com

Follow me:

Subscribe via RSS Subscribe via Email