VNC server setup on Ubuntu 11.10

As a platform for testing OMDistro – the packaged solution for check_mk and nagios and some other monitoring components I choose a ubuntu distribution. After quite a lot of configuration and additional elements I got the system running but wanted to see if a simpler installation and configuration was possible.

Using a desktop ubuntu 10.10 image I had from a previous test – I did an across the network upgrade to 11.10 before installing the OMD distro from the site

Once installed it worked without any other changes. Just what I was after. The final piece was getting a vnc server working to continue to use this virtual machine for testing. The following steps were what I used to complete the setup.

David Johnson on said:

Hi there,

I found your website and it really helped me to get x11vnc working before login.

Here is what I did to get it to work for Ubuntu 11.10 (your thoughts on this would be appreciated):

1 – Install x11vnc from Software Centre or use apt-get install x11vnc

2 – run command

sudo x11vnc -storepasswd yourpasswordhere /etc/x11vnc.pass

3 – run command:

sudo chmod 744 /etc/x11vnc.pass

4 – run command:

sudo gedit /etc/lightdm/lightdm.conf

5 – Add following line of code to the lightdm.conf file:

greeter-setup-script=/usr/bin/x11vnc -auth /var/run/lightdm/root/:0 -noxrecord -noxfixes -noxdamage -rfbauth /etc/x11vnc.pass -forever -bg -rfbport 5900 -o /tmp/x11vnc.log

6 – Save file and restart computer and you should now be able to connect remotely using a VNC viewer