Thứ Sáu, 9 tháng 8, 2013

on linux

1)#su -
2)#xhost + [using this is not recoomende but only for testing... remember that]
3)#vncserver

New 'X' desktop is localhost:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost:1.log

open a new shell 
4)vncviewer 
Ur_ipaddress:1 
[the one mentioned here is there in the output of #vncserver command ie. --> New 'X' desktop is localhost:1 ] 

5)#netstat -a | grep 59 
[Output ---> tcp 0 0 *:5901 *:* LISTEN ]

vncserver ports normally are opened from 5900 upwards 
in my case as u can see its 5901

and then on WIndows download Tightvnc --->

run the---> vncviewer
Ur_ipaddress::5901 {***Note the two colons and then the port }

Enter ur password when prompted

It should work...



if it doesnt work

# ls -a 
[the above command will give u a list of all normal + hidden files]

there is a hidden folder .vnc in ur root directory which there is a {log} of what is happening open it and post it...

also post the output of #tail /var/log/messages 

it will dispaly the log file... 


Good Luck!!!!

Không có nhận xét nào:

Đăng nhận xét