Debian VNC server setup

Note to self, grab the required packages,

apt-get install xfce4
apt-get install tightvncserver

Initialize for the first time and set the password,

tightvncserver :1

then kill the process,

tightvncserver -kill :1



and add,

xfce4-session &

To connect, setup the tunnel,

ssh -L 5901:localhost:5901 -p 8722

and start VNC,

tightvncserver -geometry 800x600 :1

Use a VNC client (like Chicken of the VNC) to connect to your SSH tunnel,

  • connect to localhost (or
  • display 1, because of port 5901 (display 0 would be port 5900)
  • enter your VNC password