# RealVNC 4.0
# ===========
# Because their binaries are similarly (or identically) named, RealVNC and
# TightVNC can not coexist. If you already have TightVNC installed, see the
# bottom of it's howto for instructions for how to remove it before you
# proceed here.
cd
test -f installed/vnc-4.0-unixsrc.tar.gz &&
mv installed/vnc-4.0-unixsrc.tar.gz .
test ! -f vnc-4.0-unixsrc.tar.gz &&
wget http://www.realvnc.com/dist/vnc-4.0-unixsrc.tar.gz
cd /usr/local/src
find -type d -maxdepth 1 -name "vnc-*" -exec rm -r {} \;
tar xzvf ~/vnc-4.0-unixsrc.tar.gz
cd vnc-4.0-unixsrc
chown -R root.root .
# If you use gcc 3.4.x (3.4.2 is current right now), apply this patch to fix
# a build problem:
wget -nc http://englanders.cc/pub/linux/patches/vnc-4.0-unixsrc-gcc34.patch &&
patch -p1 < vnc-4.0-unixsrc-gcc34.patch
# To build vncviewer, vncconfig and vncpasswd:
./configure --with-installed-zlib
make
# If you also want to build and install the VNC server, download the XFree86
# sources, patch them for VNC, and build them. Note: even though XFree86
# 4.4.0 is the latest, we use 4.2.0 here because the xc.patch was written for
# version 4.2.0 Before you run 'make World' below, make sure that you have
# a /lib/cpp (mine is a symlink to /usr/bin/cpp).
wget ftp://ftp.xfree86.org/pub/XFree86/4.2.0/source/X420src-1.tgz
# If you installed the server above, to turn your X server into a VNC server,
# add a Load "vnc" line to the Module section of your X configuration file
# (/etc/X11/XF86Config or /etc/X11/xorg.conf). The settings referred to in
# 'man Xvnc' can be set as options in the config file. For example:
# Option "passwordFile" "/root/.vnc/passwd"
# When you're done with the configuration file, (re-)start X.
# If you want to install the Java viewer, copy the files somewhere:
cd /usr/local/src/vnc-4.0-unixsrc
mkdir -p /usr/local/vnc/classes
cp java/* /usr/local/vnc/classes/
# If you ever need to uninstall RealVNC:
rm -f /usr/X11R6/lib/modules/extensions/vnc.so
( cd /usr/local/bin ; rm -f Xvnc vncconfig vncpasswd vncserver vncviewer \
x0vncserver )
( cd /usr/local/man/man1 ; rm -f Xvnc.1 vncconfig.1 vncpasswd.1 vncserver.1 \
vncviewer.1 x0vncserver.1 )