General

Setting up a lubuntu desktop

First get you a vps from a quality company, example Digital Ocean. Once you have your vps, reload the OS to Ubuntu 18.X Lubuntu Desktop Installation Login to your VPS server as root via SSH. Firstly, update system packages by issuing following command: apt-get update Then Install the Lubuntu Desktop: apt-get install lubuntu-desktop It may take about 10 -15 minutes for the installation. After…

Continue Reading

CentOS, Dedicated Server, General, Tips and Tricks

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 start $cfg;done STOP CFGS=`vzlist -S -Ho ctid`;for cfg in $CFGS;do vzctl stop $cfg;done KVM CFGS=/home/kvm/kvm*/;for cfg in $CFGS;do virsh create…

Continue Reading

CentOS, Dedicated Server, General, Tips and Tricks, VPS

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. You’ll need to make sure that screen is installed on the server you are connecting to. If that server is…

Continue Reading

General, Tips and Tricks

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. Examples Copy the file “foobar.txt” from a remote host to the local host $ scp your_username@remotehost.edu:foobar.txt /some/local/directory Copy the file…

Continue Reading

General

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 server, use the second command. Both commands will backup non-system files (not software, only settings and user files) which is…

Continue Reading

General, Tips and Tricks

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 copying tool, allowing us to copy files both locally and remotely. It can also be used as a backup tool.…

Continue Reading

General, Tips and Tricks

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 option worked like a charm.  This is why Unix rocks.