AWStats GeoIP not working on CentOS 5.9
If you’re getting the following error after activating the GeoIP module in AWStats Error: Plugin load for plugin ‘geoipfree’ failed with return code: Error: Can’t locate Geo/IPfree.pm in @INC you’re missing the Perl module required for this.
To install it, SSH to your system and…
List all files a particular string occurs in
If you ever need to search for a particular string in a large amount of files (like checking which domain zones are configured to use a particular nameserver), the following command will come in quite handy:
grep –directories=skip -i -l “searched-string” *.extension
Freespace check and warning Perl script
A while back I needed a warning system for when my backups disk runs out of free space.
Gathering information from various other existing scripts, I wrote a small Perl script that check the available space and send warning emails if it drops below a defined level.
Skip Avira’s Free Antivirus reboot request on updates
If you’re using Avira’s Free antivirus and are a mad computer user like me that never reboots his computer (unless something blows up), you might have noticed that Avira periodically updates its program (beside the virus definitions) and asks for a system restart to complete this.
Using rsync to syncronize files between two systems
Rsync is a very handy tool at synchronizing the contents of two folders/directories.
And while being great for local folders, it also works remotely, via SSH, thanks to the -e ssh parameter: # rsync -ave ssh sourceserver:/home/user/ /home/user will sync /home/user from the sourceserver with /home/user on the local machine.
List hidden files using ls
By default ls does not display hidden files (files with names starting with a dot).
To list hidden files, ls requires the usage of the -A parameter; for example ls -lA. To list only hidden (dotted) files, use this instead: ls -l .??*
Song of the day: Alternosfera – Asta vara (Last summer)
Alternosfera is an alternative rock band from Chişinău, Republic of Moldova. Their sound is unique on the Moldovan market, their influences varying from 80’s motifs to the Seattle alternative rock of the ’90s.
Configure hibernation and hiberfil.sys filesize
To configure the size of the hibernation file, use the PowerCfg command-line utility that is included with Windows 7 and Windows Server 2008 R2. You must run PowerCfg from an elevated command prompt and include the /HIBERNATE and /SIZE parameters, as follows: