[debian] VNC Server remote desktop

# install vnc server
apt-get install vnc4server
# install xfce desktop
apt-get install xfce4

# start server
vncserver :0

# stop server
vncserver -kill :0

Start xfce4 automaticaly

# Edit
nano ~/.vnc/xstartup

# Add at the end
xfce4-session &

Connect to the server

vncviewer SERVERIP:5900

VNC through SSH

# Create SSH tunnel
ssh -N -L 5900:127.0.0.1:5900 user@SERVERIP

# Connect
vncviewer 127.0.0.1:5900