Install on ubuntu server a light desktop and x2go server

Sometimes I buy a VPS somewhere and I install a desktop to surf anonymous on the internet. Windows server is not so cheap so i install an Ubuntu version. It has to be o light desktop for a faster connection with x2go for remote desktop.

Install on Ubuntu 12.04 Precise server a light desktop and x2go server

If you don’t have a user other than root  create one and log in into it

adduser USERNAME

passwd USERNAME

nano /etc/sudoers
And at the end of the file
USERNAME    ALL=(ALL:ALL) ALL

Switch on the new username

su USERNAME
sudo apt-get update

sudo apt-get install software-properties-common

sudo apt-get install python-software-properties

sudo add-apt-repository ppa:landronimirc/elementary-xfce

sudo apt-get install xfce4 xfce4-goodies xubuntu-icon-theme firefox

sudo apt-get update

For auto login

sudo nano /etc/init/tty1.conf

Comment or delete this

exec /sbin/getty -8 38400 tty1

and add

exec /bin/login -f USERNAME < /dev/tty1 > /dev/tty1 2>&1

Change USERNAME with your user



sudo nano ~/.bashrc

and add at the end of the file

if [ $(tty) == "/dev/tty1" ]; then 
startx 
fi

Install x2go server

sudo add-apt-repository ppa:x2go/stable

sudo apt-get update

sudo apt-get install x2goserver x2goserver-xsession

sudo apt-get install plasma-widget-x2go

If when you try to connect on x2go server (from x2go client, your computer) have the error

stdin: is not a tty

then

sudo nano /root/.profile

Replace

mesg n
 
with this 
 
if `tty -s`; then 
   mesg n 
fi

Done.  After reboot ubuntu desktop start automatically. You can start x2goclient on your home computer and connect on ubuntu desktop with IP address, user  and on session type choose XFCE

Good luck.

Leave a Reply

Your email address will not be published. Required fields are marked *