Oct 052006

Sponsored Link

VNC stands for Virtual Network Computing. It is, in essence, a remote display system which allows you to view a computing `desktop' environment not only on the machine where it is running, but from anywhere on the Internet and from a wide variety of machine architectures.

Install vncserver (as root) in Debian

This package provides a vncserver to which X clients can connect and the server generates a display that can be viewed with a vncviewer.

It contains an X server connector so clients can connect to your local X desktop directly.

Note: This server does not need a display. You need a vncviewer to see something. This viewer may also be on a computer running other operating systems.

#apt-get install vnc4server

Choose your desired window size and color depth, then, as an ordinary user, open a terminal and type:

#vnc4server -geometry 1024×768 -depth 24

This will prompt you to create a password:

You will require a password to access your desktops.


This will save a scrambled password in the file ~/.vnc/passwd.


This is what i got from my debian machine

# vnc4server -geometry 1024×768 -depth 24

You will require a password to access your desktops.

xauth: creating new authority file /root/.Xauthority

New ‘debiantest:1 (root)' desktop is debiantest:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/debiantest:1.log

Once that's been done you can create a new server by invoking


This will start a new server and show you the "desktop" it is running upon. This is something that you'll need to know when connecting to the server.

The server will start and tell you where to access it


This is from my debian desktop


New ‘debiantest:2 (root)' desktop is debiantest:2

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/debiantest:2.log

Connecting to VNC Server

I am using windows xp client to connect to debian server (where vnc server is running) for this you need to download vnc viewer.There are many VNC viewers i am using tight vnc viewer downloaded and install from here

Open the VNC viewer on your remote machine, enter the hostname:screen (use a hostname or IP that your client machine understands).

Enter your password here

your Linux desktop will open in a window with grey background with console you can see the screen as follows

from here if you want to open gnome or kde you need to enter the following





I am trying to strat GNOME session and you can see in the below screen

I have started my GNOME session and you can see this in action in the following screen