4593248 [rkeene@sledge /home/rkeene/projects/build]$ cat tightvnc.txt
# SHORT DESC: Enhanced VNC Viewer
# LONG DESC: TightVNC is a VNC distribution with many new features, improvements, and bugfixes over VNC. It is optimized for faster operation on slow network links such as modem connections, provides more configuration options in the server, features automatic SSH tunneling in the Unix vncviewer, and more. The modified servers and viewers are fully compatible with the original VNC software.

xmkmf -a || exit 1
make World || exit 1

(
	REMOVE_LIB_CPP=0
	if [ ! -e /lib/cpp ]; then
		ln -s `which cpp` /lib
		REMOVE_LIB_CPP=1
	fi

	cd Xvnc
	./configure
	make

	if [ "${REMOVE_LIB_CPP}" = "1" ]; then
		rm -f /lib/cpp
	fi
)

rm -f /usr/bin/Xvnc
./vncinstall /usr/bin /usr/man

mkdir -p /usr/share/tightvnc
cp classes/index.vnc classes/VncViewer.jar /usr/share/tightvnc
chmod 644 /usr/share/tightvnc/index.vnc /usr/share/tightvnc/VncViewer.jar
chown root:root /usr/share/tightvnc/index.vnc /usr/share/tightvnc/VncViewer.jar

mkdir -p /usr/share/applications || exit 1
cat << __EOF__ > /usr/share/applications/vncviewer.desktop
[Desktop Entry]
Name=VNC Viewer
GenericName=vncviewer
Comment=VNC Client Application
Exec=`which vncviewer`
Icon=/usr/share/pixmaps/Antennae.xpm
StartupNotify=false
Terminal=false
Type=Application
Categories=Application;Network
__EOF__

# Sanity check
ls -l /usr/bin/Xvnc
4593249 [rkeene@sledge /home/rkeene/projects/build]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2012-05-07 00:52:06