« Consolas, only for Vista | Main | Flash Player 9 »

Setting up a vnc server in Ubuntu 6.10

I can never find the exact answer I'm looking for, so I try to write it down when I finally figure it out. This episode? How to get a fast VNC server on Ubuntu 6.10.

First, get the right packages

% sudo apt-get install vnc4server

This gets you a 'vnc' module for your xorg X server, which can export an X session as a vnc host, and also let you use it on your local display as well (unlike Xvnc and vncserver commands).

Once you've installed the packages, you need to edit your /etc/X11/xorg.conf. In your "Module" section, add the line:

Load "vnc"

In your "Screen" section, add the line:

Option "PasswordFile" "/root/.vnc/passwd"

Now you need to create the actual password file. You need to switch to root and run the realvncpasswd utility:

% sudo su
% realvncpasswd
(enter password)

You should be all set. Restart your X server and give it a shot.

Comments (2)

If you want text copy/paste to work, you also need to run the 'vncconfig' program. You can run it in a UI-less daemon mode using 'vncconfig --nowin'; just add that to your session startup or .xinitrc or whatever.

Note that it doesn't work on 64-bit hosts because people are retards.

Mahasati Neo:

Cool, it work.
Thank you very much.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on December 21, 2006 5:23 PM.

The previous post in this blog was Consolas, only for Vista.

The next post in this blog is Flash Player 9.

Many more can be found on the main index page or by looking through the archives.