Pages

Ads 468x60px

Labels

Linkie ♥

02 January, 2013

X11VNC on MK802 Lubuntu




   Install X11VNC on MK802 Lubuntu 12.04 whit auto logon. Can remote from PC to MK802 without mouse/keyboard/HDMI (need ip address)

1.Install X11VNC from user root
root@linaro-alip:~# sudo apt-get install x11vnc
root@linaro-alip:~# x11vnc -storepasswd
   Enter VNC password: <youpassword>
   Verify password: <youpassword>
   Write password to /root/.vnc/passwd? [y]/n y
   Password written to: /root/.vnc/passwd

2. start X11VNC and test remote from VNC Client on PC
root@linaro-alip:~# x11vnc -forever -usepw -bg
          run vncclient connet to you MK802 ipaddress: "192.168.0.1"
Run VNC Client from PC
Input VNC Password
VNC Screen
 3.Set auto Login for Lubuntu 12.04 on LightDM (LUDM)
root@linaro-alip:~# vi /etc/lightdm/lightdm.conf[SeatDefaults]
   autologin-user=root
   autologin-user-timeout=0
   greeter-session=lightdm-gtk-greeter
   user-session=Lubuntu
4. Set autostart x11VNC after logon sesseion.  (root)
root@linaro-alip:~# mkdir /root/.config/autostart
root@linaro-alip:~# vi /root/.config/autostart/X11VNCStart.desktop
[Desktop Entry]Encoding=UTF-8Type=Application
   Name=X1VNCStart
   Comment= X11vnc Startup background
   Exec=x11vnc -forever -usepw -bg
   StartupNotify=false
   Terminal=false
   Hidden=false
   Icon=computer
   Categories=Network;RemoteAccess;

1 comments:

  1. Hi Therd, I'm having a strange error I'm hoping you can help me out with. When I run the command "x11vnc -forever -usepw -bg" I get the following error:

    08/06/2013 23:26:07 -usepw: found /root/.vnc/passwd
    08/06/2013 23:26:07 x11vnc version: 0.9.12 lastmod: 2010-09-09 pid: 1367
    08/06/2013 23:26:07 XOpenDisplay("") failed.
    08/06/2013 23:26:07 Trying again with XAUTHLOCALHOSTNAME=localhost ...
    08/06/2013 23:26:07
    08/06/2013 23:26:07 *** XOpenDisplay failed. No -display or DISPLAY.
    08/06/2013 23:26:07 *** Trying ":0" in 4 seconds. Press Ctrl-C to abort.
    08/06/2013 23:26:07 *** 1 2 3 4
    08/06/2013 23:26:11 XOpenDisplay(":0") failed.

    Any suggestions? This is a headless setup operated via SSH.

    ReplyDelete