Install vncserver (as root):
This package provides a vncserver to which X clients can connect and the server generates a display that can be viewed with a vncviewer.
#apt-get install vnc4server
Vnc4server -geometry 1024x768 -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.
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:
Open the VNC viewer on your remote machine, enter the hostname:screen and password (use a hostname or IP that your client machine understands), and your Linux desktop will open in a window! Network speed and processor power will affect performance, but it's amazing how many apps will run fine under VNC. You might not be able to play Frozen Bubble, but you can use productivity applications without any trouble.
To kill the server enter a command similar to this, using the appropriate settings:
vnc4server -kill :1
If you wish to change the way the server runs you've got a couple of choices.
You can modify the global configuration by editing the file /etc/vnc.conf, copying this file to your home directory and naming it .vncrc will affect just servers you start.
once you've started one of the servers you'll need a client. One popular client is xvn4cviewer.
Installing VNC Client is simple: Once it's installed you can connect to a running server by using: If invoked with no arguments you'll be prompted for the host you wish to connect to, and if necessary a password.
#apt-get install xvnc4viewer
Installing VNC Client is simple:
Once it's installed you can connect to a running server by using:
If invoked with no arguments you'll be prompted for the host you wish to connect to, and if necessary a password.