Notes on compiling VNC master: untar into /tmp/build/vnc # make # make install # cd Xvnc # make # make install Now copy the vncserver to a special version with the password code commented out: # cd /usr/local/bin # cp vncserver vncserverboot # chmod 700 vncserverboot (we only want root to do this bad bad ting) Edit /usr/local/bin/vncserverboot and commente out the lines that call vncpasswd: # Make sure the user has a password. # #($z,$z,$mode) = stat("$vncUserDir/passwd"); #if (!(-e "$vncUserDir/passwd") || ($mode & 077)) { # warn "\nYou will require a password to access your desktops.\n\n"; # system("vncpasswd $vncUserDir/passwd"); # if (($? >> 8) != 0) { # exit 1; # } #} Make the tar file on kinscoe: # cd /usr/local/bin # mkdir /tmp/vnc # find . -mtime 0 -print -depth | cpio -pvdm /tmp/vnc # cd /tmp/vnc # tar cvf /pub/soft/install/vnc_3_3_r2_sol_8.tar * # cd /tmp # rm -Rf vnc On the new machine: copy the tar file from kinscoe.harcourt.com: ftp://kinscoe.harcourt.com/pub/soft/install/vnc_3_3_r2_sol_8.tar save this to the /tmp directory # mkdir -p /usr/local/bin if it does not already exist # cd /usr/local/bin - IMPORTANT!! # tar xvf /tmp/vnc_3_3_r2_sol_8.tar # chmod +x * # rm /tmp/vnc_3_3_r2_sol_8.tar Now create the startup script: edit /etc/init.d/vncserver (note I usually use display 2 for VNC, 1 for Xvfb and 0 for Sunx) #!/sbin/sh # # start/stop the vncserver # # Kevin P. Inscoe # case "$1" in 'start') HOME=/; export HOME PATH=$PATH:/usr/openwin/bin:/usr/local/bin; export PATH /usr/local/bin/vncserverboot :2 >/dev/msglog 2>&1 & DISPLAY=localhost:2.0; export DISPLAY /usr/openwin/bin/xhost + ;; 'stop') PID=`/bin/ps -ef | /bin/grep "Xvnc" | /bin/grep -v grep | /bin/tail -1 | /bin/awk '{ print $2 }'` if [ "x$PID" = "x" ]; then /bin/echo "vncserver not running." else /usr/local/bin/vncserver -kill ":2" fi ;; *) echo "Usage: $0 { start | stop }" exit 1 ;; esac exit 0 # chmod +x /etc/init.d/vncserver Create the boot-time: # ln -s /etc/init.d/vncserver /etc/rc2.d/S99vncserver To start manually: # /etc/rc2.d/S99vncserver start access control disabled, clients can connect from any host To stop manually: # /etc/rc2.d/S99vncserver stop Killing Xvnc process ID 1386