* Note that this is for debian based distro’s.
If you want to connect to your desktop or server that is running X you can install a vnc server to do so..
We will use gdm and xinetd to get it working so that if you boot up the computer it should all work at once.
To install a vnc server you need atleast the following packages installed:
Then you will need to add a new service to the services list in /etc/services
–here add at the end of the file:
vncserver 5900/tcp # vnc server
Then you need to change the gdm.conf file
— Here find the line [xdmcp] and change the option Enable=false to:
Then add a file in /etc/xinetd.d/ called vncserver
disable = no
socket-type = stream
protocol = tcp
group = tty
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -geometry 1024×768 -depth 16 -once -fp unix/:7100 -securitytypes=none
Restart xinetd and you should be done..
Try to connect to the box using a vnc viewer to :0