piątek, 10 maja 2013

[Linux] VNC on display :0








Install

yum install x11vnc

Find line

ps wwaux | grep auth

1 1.7 13308 8840 tty7 Ss+ 12:35 1:14 /usr/bin/X -br -nolisten tcp :0 vt7 -auth /var/run/xauth/A:0-LluidB

Copy bold part

Open

nano /etc/xinetd.d/x11vnc

Paste to file

service x11vnc 
{
   port = 5900 type = UNLISTED  
   socket_type = stream 
   protocol = tcp  
   wait = no 
   user = root  
   server = /usr/bin/x11vnc 
   server_args = -inetd -o /var/log/x11vnc.log -display :0 -auth */var/run/xaut/A:0-LluidB* -many -bg 
   disable = no 
}




Restart xinetd
/etc/init.d/xinetd restart

Try
vncviewer yourHostAdress:0


If you need password

mkdir ~/.x11vnc x11vnc -storepasswd yourPassword ~/.x11vnc/passwd

and run display

x11vnc -viewonly -display :0 -rfbauth ~/.x11vnc/passwd



Brak komentarzy:

Prześlij komentarz

facebook