VNC setup in Digitalocean
Install xfce
desktop environment
$ sudo apt-get install xfce4 xfce4-goodies
Install TightVNC
for VNC server
$ sudo apt-get install tightvncserver
Initialize VNC server + run VNC server once + enter and verify password + ignore view-only password
$ vncserver
Password:
Verify:
View-only password:
To configure VNC, first kill the running VNC server
$ vncserver -kill :1
Killing Xtightvnc process ID 13456
Backup xstartup
configuration file
$ mv ~/.vnc/xstartup ~/.vnc/xstartup.orig
Edit xstartup
file
$ vim ~/.vnc/xstartup
And add following content
*~/.vnc/xstartup*
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
~/.Xresources
file for VNC's GUI framework information
+ Start XFCE whenever VNC server is started
Provide executable permission for ~/.vnc/xstartup
file
$ sudo chmod +x ~/.vnc/xstartup
Start VNC server
$ vncserver -geometry 1280x800