Monday, August 8, 2011

Install desktop on ubuntu server remote

1. Ubuntu VPS linux also doesn’t have window manager (GUI) hence we must install it first:
sudo apt-get install ubuntu-desktop or sudo apt-get install kubuntu-desktop


2. Configure the Gnome Desktop Manager and XServer
sudo /etc/init.d/gdm start
sudo dpkg-reconfigure xserver-xorg

3. After we installed a window manager, next step is to install the remote desktop server, for linux we use TightVNC
sudo apt-get install tightvncserver

4. Next we need to configure the remote desktop server and create a password to access the VPS via its GUI. This
command will start the server, you will be asked for a password, this password will be used as authentication when
you connect to the VPS, make sure you have a strong password.
vncserver :1 -geometry 1024×768 -depth 16 -pixelformat rgb565
5. Now, if you execute command
ps aux
You should see an Xtightvnc process:
Xtightvnc :1 -desktop X –auth
This means the setting is OK and VNC server is running fine.
6. The default VNC server doesn’t use Gnome window manager as default, to run Gnome as default we must do some
changes on the configuration file.
sudo nano ~/.vnc/xstartup
Add this on the end of file:
gnome-session &

7. Next, do a reboot. Usually a reboot is not needed, but just to make sure you can do it.
sudo reboot

8. Start the VNC server:
vncserver :1 -geometry 1024×768 -depth 16 -pixelformat rgb565

9. Download Tight VNC client here: http://www.tightvnc.com/download.html

10. After you install it, run the VNC client and insert your VPS IP address and VNC server number on the VNC Server
field and click on “Connect”. In this tutorial the VNC server number is :1, so you must fill in :1

No comments:

Post a Comment