Home > Bash, Linux, Scripting, Ubuntu, Web > How to Enable VNC server / connectivity in Linux ( Ubuntu 12.04 LTS )

How to Enable VNC server / connectivity in Linux ( Ubuntu 12.04 LTS )

VNC connectivity is not set up by default on most Linux distributions.

Follow the steps below to get VNC up and running so that you can connect using VNC Viewer, or some other VNC client application.

1. Install x11vnc:

sudo apt-get install x11vnc

2. Create /etc/init/x11vnc.conf file using vi or gedit:
start on login-session-start
script
x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log
end script

3. After restarting, 11vnc should listen on vnc standard port (port 5900).

The script is based on upstart event mechanism when Lightdm emits login-session-start event, x11vnc is started.

Reference: http://mlepicki.com/2011/10/remote-vnc-login-to-ubuntu-11-10

Steps 2 & 3 above … not working. (probably for an older version of Ubuntu and something has changed.)

However, once it has been installed (Step #1) it can be run as an application that requires no password by simply running
$x11vnc

Then, connect to the machine’s IP via VNC Viewer.

—Review steps #2 and #3 so that this will automatically start up on system startup.

About these ads
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 134 other followers

%d bloggers like this: