CentOS, Dedicated Server, Tips and Tricks

How to setup HAProxy as Load Balancer for Nginx

Basic Concept with HAProxy HAProxy or High Availability Proxy is an open source TCP and HTTP load balancer and proxy server software. HAProxy has been written by Willy Tarreau in C, it supports SSL, compressions, keep-alive, custom log formats and header rewriting. HAProxy is a fast and lightweight proxy server and load balancer with a small memory footprint and low…

Continue Reading

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, Tips and Tricks, VPS

Install XenServer tools in your VM

Install XenServer tools Next step is to install those tools. Also I’ll give you some tips. For any VM, go in the console view on your VM, and insert the appropriate ISO: xs-tools.iso for XenServer 6 and older guest-tools.iso for XenServer 7 and high Then, each system is a bit different. For Linux VMs Debian, Ubuntu (deb based) For a Debian VM,…

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

Tips and Tricks

Install, Edit, or Remove Cron Jobs

1. Install Crontab in Batch Mode By specifying the file name as an argument to crontab command, you can install the new cron jobs from a text file as shown below. First create a text file with all your cron job entries. $ cat cron-file.txt * * * * * /bin/date >> /tmp/date-out * * * * * /bin/ls >>…

Continue Reading