Adding Remote Desktop Access to Ubuntu
29 January 2014 02:29 PM
In some instances, you may want to add remote desktop access to an Ubuntu server. This can be done by installing a GUI and VNC service.
1. Install ubuntu desktop, this is done by running the following command:
$sudo apt-get install ubuntu-desktop
2. Install the vnc server, we recommend x11vnc. You will also need to set up a password for access via a vnc client (such as TightVNC).
$sudo apt-get install x11vnc
$x11vnc - storepasswd
3. Add a startup script to rc.local.
$sudo nano /etc/rc.local
add "/etc/rc.vnc" to the end of the file:
4. Create the startup script with:
$sudo nano /etc/rc.vnc
and add the following line:
/usr/bin/x11vnc -forever -rfbport 5900 -rfbauth /home/YourUsernameHere/.vnc/passwd -auth /var/run/lightdm/root/:0 -bg
$sudo chmod +x /etc/rc.vnc
5. Finally, reboot the server, and you will be able to access your remote desktop via a VNC client.