First of all you have to define new service in particular port. Add line bellow into /etc/services
vnc1024 5901/tcp # VNC & GDMnow create service description for xinetd. Go to directory /etc/xinetd.d
cd /etc/xinetd.dand create file vnc1024
service vnc1024Move to runlevel 3
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -geometry 1024x800 -depth 16 -once -fp unix/:7100 -securitytypes=none
}
init 3Restart xinetd
/etc/init.d/xinetdMove back to runlevel 5
init 5And that's it. Now try connect via VNCviewer to port 6901
No comments:
Post a Comment