Installing X2go Centos 7

For this we need to ad EPEL repo, add it as follows: sudo yum install epel-release Installing x2go yum install -y x2goserver-xsession Installing Xfce: yum groupinstall -y "Xfce" Edit - 2019 - I have recently found out KDE Plasma Workspaces also works with x2go! Installing KDE on Centos…

Installing Xvfb in Centos 6, 7, Fedora

Xvfb, or X virtual frame buffer is needed by selenium and chromedriver or gekodriver so it can run via cron with your PC locked, or without your script taking focus from the user session The Xvfb, or "X virtual frame buffer" will allow scripts and apps to run…

Dump a mysql table without locking

If you want to keep your site/application live, you can dump mysql tables online like so: mysqldump --single-transaction --quick -hhostname -uuser -ppassword database > /path/to/destination-sqlbackup.sql --compress = as it says, enabled compression on the connection to the mysql server. This will always speed up bulk loads 10x…

Compress folder of folders to separate files

Sometimes it is handy to be able to zip a folder to separate files. for i in */; do zip -r "${i%/}.zip" "$i"; done It works great for folders of mysqldumps.…

Google Cloud Platform gcloud SDK

There is no way I can detail even 1% about how to use this tool, but I can tell you how I use it to get you started. Google released the gcloud SDK to control every aspect of Google Cloud Platform. The Google cloud site is a good place to…