How to install UltraVNC Repeater for Linux (Debian & CentOS) #We have created a version based on the repeater014.zip version which is at #http://koti.mbnet.fi/jtko/uvncrepeater/repeater014.zip #So, you can download UltraVNC repeater by giving #wget http://www.wisdomsoftware.gr/download/uvncrep017-ws.tar.gz #Get build packages #For Debian use apt-get install linux-headers-`uname -r` libx11-6 libx11-dev x-window-system-core x-window-system xspecs libxtst6 psmisc build-essential #For CentOS use: yum install linux-headers-`uname -r` libx11-6 libx11-dev x-window-system-core x-window-system xspecs libxtst6 psmisc build-essential #Get source into /usr/local/src cd /usr/local/src wget http://www.wisdomsoftware.gr/download/uvncrep017-ws.tar.gz #Unzip source file gunzip uvncrep017-ws.tar.gz tar -xvf uvncrep017-ws.tar #Install startup script cd uvncrep017-ws make; make install; #Add a user for the service useradd uvncrep #Edit /etc/uvnc/uvncrepeater.ini according to your needs. #Check the following parameters: viewerport = 5901 maxsessions = 10 runasuser = uvncrep logginglevel = 2 srvListAllow1 = 192.168.0.0 ;Allow network 192.168.x.x srvListDeny0 = 127.0.0.1 ;Deny loopback requirelistedserver=1 #Start the service /etc/init.d/uvncrepeater start Enjoy! P.S. You can also check our post at: http://forum.ultravnc.info/viewtopic.php?p=80701 =================================================================== uvncrepeater on ubuntu 10.04 (ubuntu is based on debian) 1.- To add a user, best use: adduser --no-create-home --system uvncrep 2.- The /etc/init.d/uvncrepeater script: #!/bin/sh ####### #Filename: uvncrepeater #Version: v1.02 #Location: /etc/init.d #Author: Fafakos Panayiotis - Greece #Licence: GNU-GPL ####### # Version info #------- # v1.02 - 20101122 - Corrected restart option #------- # v1.01 - 20101015 - Updated release for CentOS # - Added small corrections to make it work under CentOS # (update-rc.d and start-stop-daemon do not exist in CentOS) #------- # v1.00 - Initial release for Debian ####### ### BEGIN INIT INFO # Provides: uvncrepeater # Required-Start: $network $syslog # Required-Stop: # Default-Start: 2 3 5 # Default-Stop: 0 6 # Short-Description: Start ultravnc repeater daemon at boot time # Description: Enable ultravnc repeater service. ### END INIT INFO PATH=/sbin:/bin SCRIPTNAME=$0 UVNCREPPID=/var/run/uvncrepeater.pid UVNCREPLOG=/var/log/uvncrepeater.log UVNCREPRUN=/usr/sbin/uvncrepeater-log UVNCREPSVC=/usr/sbin/uvncrepeatersvc UVNCREPINI=/etc/uvnc/uvncrepeater.ini SYSTYPE=Debian ##type start-stop-daemon if test $? -gt 0 ; then echo This is not a Debian system, or start-stop-daemon has not been installed. SYSTYPE=other fi #if service file does not exist then exit the script if test ! -x $UVNCREPSVC ; then echo $UVNCREPSVC file was not found. echo Exiting... exit 2 fi #Create the file to start the service if it does not exist if test ! -x $UVNCREPRUN ; then echo '#!/bin/sh' > $UVNCREPRUN echo 'exec' $UVNCREPSVC $UVNCREPINI '2>>' $UVNCREPLOG >> $UVNCREPRUN chmod +x $UVNCREPRUN fi pidof_uvncrepeatersvc() { # if there is actually an apache2 process whose pid is in PIDFILE, # print it and return 0. if [ -e "$UVNCREPPID" ]; then if pidof $UVNCREPSVC |grep $(cat $UVNCREPPID); then return 0 fi fi return 1 } case "$1" in start) echo -n "Running UltraVNC Repeater..." if [ "$SYSTYPE" = "Debian" ]; then start-stop-daemon --start -b -m -p $UVNCREPPID --exec $UVNCREPRUN -- $UVNCREPLOG else $UVNCREPRUN -- $UVNCREPLOG & echo $! > $UVNCREPPID fi echo "." ;; stop) echo "Stopping UltraVNC Repeater..." if [ "$SYSTYPE" = "Debian" ]; then start-stop-daemon --stop -p $UVNCREPPID else UVNCPID=`cat $UVNCREPPID` echo $UVNCREPRUN should be running at $UVNCPID if [ -e /proc/$UVNCPID -a /proc/$UVNCPID/exe ]; then echo Seems that this process exists. Trying to stop it... kill -15 $UVNCPID rm -f $UVNCREPPPID fi fi rm $UVNCREPPID ;; restart) "$SCRIPTNAME" stop && "$SCRIPTNAME" start ;; force-reload) "$SCRIPTNAME" stop && "$SCRIPTNAME" start ;; status) PID=$(pidof_uvncrepeatersvc) || true if [ -n "$PID" ]; then echo "UvncRepeaterSvc is running (pid $PID)." exit 0 else echo "UvncRepeaterSvc is NOT running." exit 1 fi ;; *) echo "Usage: $BASENAME {start|stop|restart|force-reload|status}" exit 1 ;; esac exit 0