# TightVNC 1.2.9
# ==============
# Because their binaries are similarly (or identically) named, TightVNC and
# RealVNC can not coexist. If you already have RealVNC installed, see the
# bottom of it's howto for instructions for how to remove it before you
# proceed here.
cd
test -f installed/tightvnc-1.2.9_unixsrc.tar.bz2 &&
mv installed/tightvnc-1.2.9_unixsrc.tar.bz2 .
test ! -f tightvnc-1.2.9_unixsrc.tar.bz2 &&
wget http://download.sf.net/vnc-tight/tightvnc-1.2.9_unixsrc.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "tightvnc-*" -exec rm -r {} \;
tar xjvf ~/tightvnc-1.2.9_unixsrc.tar.bz2
mv -f vnc_unixsrc tightvnc-1.2.9
cd tightvnc-1.2.9
test $UID = 0 && chown -R root:root .
# Build libvncauth, vncviewer, vncpasswd, and vncconnect:
xmkmf
make World
# Run this part to build the VNC server. Before you run make below, either
# make sure that you have a /lib/cpp (mine is a symlink to /usr/bin/cpp) or
# run this:
# echo '#define CppCmd /usr/bin/cpp' >> Xvnc/config/cf/site.def
#
# FYI, I have been able to build the server with gcc 3.3.x, but not 3.4.x
cd Xvnc
./configure
make
cd ..
# Become root to install it
su
./vncinstall /usr/local/bin /usr/local/man
# If you want to install the Java viewer, copy the files somewhere:
mkdir -p /usr/local/vnc/classes
cp classes/* /usr/local/vnc/classes/