Category Archives: General

Adding Additional Disk Drives to CentOS

Adding a new drive to CentOS or RedHat systems. Making use of a second drive for extra space? Here’s a quick run-down: 1) Make sure you know which disk is being formatted. First, second, and third drives will be /dev/sda, … Continue reading

Posted in CentOS, Dedicated Server, General, Tips and Tricks | Leave a comment

SolusVM Mass Starting/Stopping Virtual Servers

If you need to mass start your virtual servers, run the following code in SSH on the host: Xen PV/HVM START CFGS=/home/xen/vm*/;for cfg in $CFGS;do xm create $cfg*.cfg;done STOP xm shutdown -aw OpenVZ START CFGS=`vzlist -S -Ho ctid`;for cfg in $CFGS;do vzctl … Continue reading

Posted in CentOS, Dedicated Server, General, Tips and Tricks | Leave a comment

Using Screen

Screen is like a window manager for your console. It will allow you to keep multiple terminal sessions running and easily switch between them. It also protects you from disconnection, because the screen session doesn’t end when you get disconnected. … Continue reading

Posted in CentOS, Dedicated Server, General, Tips and Tricks, VPS | Leave a comment

scp examples

Example syntax for Secure Copy (scp) What is Secure Copy? scp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and same level of security as ssh. … Continue reading

Posted in General, Tips and Tricks | Leave a comment

Command Line Ping Sweep

Sometimes it can be handy to ‘see’ what is around you on a network, for instance when you’re using DHCP on a network and you want to find which addresses are already taken. Or you want to see whether specific … Continue reading

Posted in CentOS, Dedicated Server, General, Tips and Tricks | Leave a comment

Full Server Backup and Move Using rsync

Need to make a quick backup of your server? Maybe even move all your important files? Use the following commands to backup or replicate your entire Linux server without any pain. If you are sending the backup to a remote … Continue reading

Posted in General | Leave a comment

Installing CSF (ConfigServer Security & Firewall)

The CSF, ConfigServer Security & Firewall, is a powerful firewall that is made for Linux systems. It comes with an easy to use CLI (Command Line Interface) and integrates with DirectAdmin and cPanel control panels as a graphical user interface … Continue reading

Posted in General, Tips and Tricks | Leave a comment

Synchronizing folders with rsync

** 100% Credit to Juan Valencia – http://www.jveweb.net/en/archives/2010/11/synchronizing-folders-with-rsync.html     The basics of rsync rsync is a very versatile copying and backup tool that is included by default in almost every Linux distribution. It can be used as an advanced … Continue reading

Posted in General, Tips and Tricks | Leave a comment

Rsync with a non-standard ssh port

After some searching, the man page of rsync finally offered a solution: # rsync -avz -e “ssh -p $portNumber” user@remoteip:/path/to/files/ /local/path/ or # rsync -avz -e “ssh -p $portNumber” /local/folder user@remoteip:/path/to/files Passing the port parameter to ssh with the -e … Continue reading

Posted in General, Tips and Tricks | Leave a comment

Better Network Performance

As we all know a basic install of any OS is never tweaked out for performance but setup for general use.  One of the biggest problems in the Linux (CentOS, Ubuntu, Fedora, I have not tested other OS’s) is the … Continue reading

Posted in Dedicated Server, General, Tips and Tricks | Leave a comment