Linux script to check if your hard disk is nearly full

Here is a simple script that will check if your specified partition is almost full and will notify you if it is. In order to have an email send, you must have mailx installed, for installation check my post here.

Read more »

ro.me

ok, this must be the most impresive web-site I’ve ever seen.

Technologies being used among others are webGL, html5 & java scripts

Read more »

Howto backup cpanel via rsync

Cpanel has a nice backup system especially in case you’ll have to restore the server. What I don’t like about it is the absence of ssh as a protocol to transfer the data to a remote server. There are two ways to backup to a remote server :

Read more »

script to place webalizer stats outside cpanel

Here is a script I made for my cpanel servers, to place webalizer stats outside cpanel. Users will be able to goto http://www.mydomain.com/stats and see their webstats.

NOTE: This script is for the server administrator, if you have a cpanel account you can do the procces manually (a google search will return lots of howtos).

Read more »

Linux server info script

Here is a script that will quickly provide you information about your linux server such as cpu model, frequency, number of cores, amount of ram & swap, system uptime and test server download & I/O speed

cpu, ram and system uptime info are taken from “/proc/cpuinfo” , “free” and “uptime” respectively

download speed is measured by downloading a test file from cachefly, while I/O speed is measured by creating a 1GB file from null characters (/dev/zero)

Read more »

linux script to check if a service is running and start it, if it’s stopped

Here is a simple script that will check if your specified service is running and will start it if it’s stopped.

You will have to replace “replace_me_with_a_valid_service” with the name of the service you want to check

Read more »

debian 5 lenny openvz template with wrong /etc/apt/sources.list

I was getting 404 Not found errors using my new openvz with debian lenny

elephant:~# apt-get update
Hit http://ftp.debian.org lenny Release.gpg
Ign http://ftp.debian.org lenny/volatile Release.gpg
Ign http://ftp.debian.org lenny/updates Release.gpg
Hit http://ftp.debian.org lenny Release
Ign http://ftp.debian.org lenny/volatile Release
Ign http://ftp.debian.org lenny/updates Release
Ign http://ftp.debian.org lenny/main Packages/DiffIndex
Ign http://ftp.debian.org lenny/contrib Packages/DiffIndex
Ign http://ftp.debian.org lenny/non-free Packages/DiffIndex

Read more »

queues not working after reboot on trixbox 2.8.0.4

There is a bug in trixbox 2.8.0.4. After a reboot, queues won’t parse calls to agents.

The solution is quite easy. All you need to do is edit modules.conf

Read more »

howto setup lnmp on centOS

lnmp is an alternative setup to lamp. The difference between lamp & lnmp is the web server, lamp uses apache whereas lnmp uses nginx. lnmp stands for

Read more »

Network error: could not connect to server: ip:5925

I was getting the above error message whenever I was trying to get console access to my kvm vps from vnc either from the java client from solusvm or vnc client from my pc.

when you turn on or off vnc in solusvm, a notification appears saying : “you need to reboot the virtual server for the changes to take affect”.

Read more »