Using a single computer is not enough today, we are in need to use one more of it for testing even for a small modification we make to. Hence virtualization plays a vital role.

In the world of virtualization you may come / came across VNC (Virtual Network Computing). For more info google “VNC”

I am going to show some simple steps to be followed while configuring VNC for debian desktop.

Installation of VNC server is like cutting piece of cake

$ sudo apt-get install vnc4server

You can choose a geometry for viewing,

$ vnc4server -geometry 1024x768 -depth 24

This will prompt us to set a password and will verify once.

password:
verify:

Your password will be available at ~/.vnc/passwd

Now,

To start a new server that runs on your machine

$ vnc4server 
New 'boss:1 (cot)' desktop is boss:1

Starting applications specified in /home/cot/.vnc/xstartup

Log file is /home/cot/.vnc/boss:1.log

It tells that newer server has been started with respective details for tracing.

To Kill the process (stop VNC server)

$ vnc4server -kill :1

Killing Xvnc4 process ID 16592 

To access remote machine (server) you need to know HOSTNAME of server(machine)

On remote machine enter the below command

$ xvnc4viewer boss:1

VNC Viewer Free Edition 4.1.1 for X - built Mar 10 2010 21:40:13
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.

Thu Apr 11 11:42:53 2013
 CConn: connected to host boss port 5901
 CConnection: Server supports RFB protocol version 3.8
 CConnection: Using RFB protocol version 3.8
Password:

After issuing password,


Thu Apr 11 11:44:29 2013
 TXImage: Using default colormap and visual, TrueColor, depth 24.
 CConn: Using pixel format depth 6 (8bpp) rgb222
 CConn: Using ZRLE encoding

A new window will open up by holding the terminal of server (machine), you can’t access any GUI, but it is rather very much helpful for creating, running, debugging new applications.

Enjoy…!

Advertisements

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