Monday, September 10, 2012

x11vnc + lightdm - how to login lightdm remotely

x11vnc usually cannot be used to log into GDM/KDM/LIGHTDM directly, unless there's already someone else logged to that machine.

Here is the solution with xinetd originally blogged here;


Edit /etc/xinetd.d/x11vnc 

Put:


service x11vnc
{
  type = UNLISTED
  disable = no
  socket_type = stream
  protocol = tcp
  wait = no
  user = root
  server = /usr/bin/x11vnc
  server_args = -inetd -o /var/log/x11vnc.log -display :0 -forever -bg -rfbauth /etc/vncpasswd -shared -enablehttpproxy -forever -nolookup -auth /var/run/lightdm/root/:0    
  port = 5900
    flags = IPv6
}


Make it executable;
sudo chmod a+x /etc/xinetd.d/x11vnc

Assign password to be stored;
sudo x11vnc -storepasswd (VNC password) /etc/vncpasswd

No comments:

Post a Comment