VNC server on Unix

Starting the VNC server on Unix for the First time

VNC Server installs in /usr/local/bin, you need to make sure you have both /usr/local/bin and /usr/openwin/bin in your path, also the first time you run vnc you need to setup a vnc password, this is done with the /usr/local/bin/vncpassword command. After the vncpasswd command has been run, you will find a .vnc directory under your home directory, copy the xstartup file (below) into this directory and chmod 755 xstartup.

Starting the VNC server

Telnet onto the server and run:

PATH=/usr/local/bin:/usr/openwin/bin:$PATH
export PATH
vncserver

Make a note of the display number allocated. i.e. New ‘hostname:1’, you will need this when you use the vncviewer e.g. bart:1

Killing the VNC server

vncserver -kill :screen
ie vncserver -kill :1

http / options

vncserver -geometry 1280x1024 -depth 24
vncserver --httpPort 8080

Connect to host on port 5901 if :1, 5902 if :2 etc

Vnc viewer for windows

save the vncviewer onto your desktop, run it and supply the hostname:screen or ipadderss:screen, eg sulu:1 or 10.1.1.53:1 (replace the :1 with the number you noted when you started the vncserver