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.

2 thoughts on “Setting up a vnc server in Ubuntu 6.10

  1. 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.

    Like

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 )

Connecting to %s