Tag Archives: VNC

Add vnc to xbuntu xbmc

This is so I can control my XBMC downloader PC running xubuntu via my iPad with myVNC.

The discussion here is being limited to XUbuntu 12.04 LTS, however pretty much any version of *nix will work in principle.

Start by ensuring your system is up to date.

sudo aptitude update
my case was sudo apt-get update
sudo aptitude upgrade
my case was sudo apt-get upgrade

Install the server.

sudo aptitude install x11vnc

my case was sudo apt-get install x11vnc

Setup a password file
sudo x11vnc -storepasswd /etc/x11vnc.pass
This command will ask you to provide a password and confirm it.
Once the password file is created, restrict the permissions of the file so only root can access it.

chmod 600 /etc/x11vnc.pass

Automatically start the server
You may want to start the server automatically when ever the computer is running. If you do want this behavior, you will want the server to start even before a user has logged in. In order to accomplish this, place the following code in a file called

/etc/init/x11vnc.conf

start on login-session-start
script
x11vnc -xkb -noxrecord -noxfixes -noxdamge -display :0 -auth /var/run/lightdm/root/:0 -forever -shared -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc.pass -rfbport 5901 -localhost

Remove carriage returns if pasting.

start on login-session-start
script
x11vnc -xkb -noxrecord -noxfixes -noxdamge -display :0 -auth /var/run/lightdm/root/:0 -forever -shared -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc.pass -rfbport 5901 -localhost
end script

Vnc viewer xbuntu ipaddress:5901

You can manually start x11vnc

SSH into box type

x11vnc -usepw

Vic will be on port 5900

Extracts from this page http://robot.wpi.edu/wiki/index.php/Setting_up_an_XUbuntu_VNC_Serverlink

This is so I can control my XBMC downloader PC via my iPad with myVNC.