Because it is CentOS based, I had to go through things differently and had to use parts and pieces from different locations.
The biggest pain was the repeater part since they are a bit tough to find, and tougher to find a CentOS compatible version.
Luckily Scientific Linux includes a few vnc options, so I used on already available in their yum repos, TigerVNC.
Then need vncrepeater:
I had better luck with #2, the git option:
wget http://www.wisdomsoftware.gr/download/u ... -ws.tar.gz
tar -xvf uvncrep017-ws
git clone https://github.com/stefanklug/uvncrepeater.git
Add a user for the service (and related password)
adduser --no-create-home --system uvncrep
Copy repeater to sbin: cp repeater /usr/sbin/repeater
#Edit /etc/uvnc/uvncrepeater.ini according to your needs.
#Check the following parameters:
viewerport = 5901
serverport = 5902
maxsessions = 10
runasuser = uvncrep
logginglevel = 2
srvListAllow1 = 192.168.0.0 ;Allow network 192.168.x.x
srvListDeny0 = 127.0.0.1 ;Deny loopback
Run the repeater: /usr/sbin/repeater
Make it run as a service, since the included service related files only work with Debian/Ubuntu distros.
First create vnc service file:
- Code: Select all
# vnc: start/stop/restart the VNC repeater server
# chkconfig: 3 20 80
# description: VNC repeater server
if [ ! -f /etc/uvncrepeater.ini ]; then
echo "File /etc/uvncrepeater.ini does not exist. Aborting."
/usr/sbin/repeater 2>>/var/log/vnc.log &
pgrep repeater >/var/run/vnc.pid
if [ -r /var/run/vnc.pid ]; then
kill `cat /var/run/vnc.pid`
echo "Killing repeater in the absence of /var/run/vnc.pid"
case "$1" in
echo "usage $0 start|stop|restart"
Then install as service
chmod +x /etc/init.d/vnc
chkconfig --add vnc
chkconfig --level 3 vnc on
Log is in /var/log/uvncrepeater.log
iptables rules needed:
iptables -I INPUT 4 -p tcp -m tcp --dport 5901 -j ACCEPT
iptables -I INPUT 5 -p tcp -m tcp --dport 5902 -j ACCEPT
service iptables save
Then install and use/compile ChunkVNC like normal and works great! In the case mentioned above:
Server: 5902 (443 will not work here)