Friday, February 22, 2013

Xubuntu Precise 12.04 VNC at login

I often login to our office desktops to give people a hand.

I used to use vino-server, but it only starts once the desktop is running. I wanted to be able to login from the login screen itself before the desktop loads. Time for a dive into using upstart.

After a hunt I found a good site with how to do it here VNC startup login

Anyway, in brief for Xubuntu I did this :

sudo apt-get install x11vnc

sudo touch /etc/init/x11vnc.conf

Edit the file and add the following :


start on login-session-start
script
/usr/bin/x11vnc -xkb -auth /var/run/lightdm/root/:0 -noxrecord -noxfixes -noxdamage -rfbauth /etc/x11vnc.pass -forever -bg -rfbport 5900 -o /var/log/x11vnc.log
end script


Now set your password here :

sudo x11vnc -storepasswd /etc/x11vnc.pass

Reboot and job done !

No comments:

Post a Comment