x11vnc Remote Control in Ubuntu 12.04 with Xfce Desktop

Use x11vnc with XFCE in Ubuntu

Use x11vnc with XFCE in Ubuntu

Recently I was working on an Ubuntu project that required the use of the Xfce desktop instead of Ubuntu’s default unity desktop. One thing I needed was to have remote access to the desktop. Instead of using my usual VNC setup, I had to use x11vnc. Here is how I set it up.

On the Ubuntu computer that you want to remotely control that had the XFCE desktop, open up the Terminal and type the following:

sudo apt-get install x11vnc

Next you should set up a password and its associated password file. To do this, from the terminal just type: x11vnc -storepasswd and follow the prompts, and don’t forget the password.

One thing about x11vnc is that it won’t auto start, which is what I wanted. So at the XFCE desktop, click on  Settings then Settings Manager then Session and Startup

Click on the Application Audostart tab and click the add button in the lower left.

You should see the following:

how to Install x11vnc  in Ubuntu on a xfce desktop

how to Install x11vnc in Ubuntu on a xfce desktop

 

Enter the following into the command field:

x11vnc -safer -forever -display :0 -ncache_cr -rfbauth /home/<USER>/.vnc/passwd -bg

Pleas note in the line above the <USER> part is the username under which x11vnc will be running. You will need to change that to reflect this.

There are all kinds of command line options which I won’t explain, but the ones above work for me. For a full list of x11vnc command line options you can go here. Click OK when finished and close all of this down. The next time this user logs in, x11vnc will be running.

Doing all of the above allows one to login and remotely control this computer. On another computer that you want to connect, its just a simple matter of running the following in a terminal:

sudo apt-get install xtightvncviewer

This article was originally posted on www.mikestechblog.com Any reproduction on any other site is prohibited and a violation of copyright laws.