1
2011
Setup VNC on Ubuntu Linux
Install the following packages :
1. vnc4server – This is the vnc server application. It is run on the system which is to be viewed remotely.
2. xvnc4viewer – This is the client application. It will connect to a remote vnc system.
sudo apt-get install vnc4server xvnc4viewer
Now run vncserver from terminal
desktop:~$ vncserver :12 -geometry 1024x768 New 'enlightened-desktop:12 (enlightened)' desktop is enlightened-desktop:12 Starting applications specified in /home/enlightened/.vnc/xstartup Log file is /home/enlightened/.vnc/enlightened-desktop:12.log
The :12 is the display number. It can be any number and will open vncserver on that number. You can have multiple vncservers running. If you are running vncserver command for the first time it will ask for a password.
Once vncserver is running , its time to run the vnc client.
desktop:~$ xvnc4viewer VNC Viewer Free Edition 4.1.1 for X - built Apr 9 2010 18:41:55 Copyright (C) 2002-2005 RealVNC Ltd. See http://www.realvnc.com for information on VNC. Server:
It is asking for the server. Enter localhost:12
desktop:~$ xvnc4viewer VNC Viewer Free Edition 4.1.1 for X - built Apr 9 2010 18:41:55 Copyright (C) 2002-2005 RealVNC Ltd. See http://www.realvnc.com for information on VNC. Server: localhost:12 Tue Nov 1 15:26:01 2011 CConn: connected to host localhost port 5912 CConnection: Server supports RFB protocol version 3.8 CConnection: Using RFB protocol version 3.8 Password: Tue Nov 1 15:26:04 2011 TXImage: Using default colormap and visual, TrueColor, depth 24. CConn: Using pixel format depth 6 (8bpp) rgb222 CConn: Using ZRLE encoding
Now a VNC window will open up with a terminal showing.
For more information :
1. https://help.ubuntu.com/community/VNC
2. https://help.ubuntu.com/community/VNC/Clients
3. https://help.ubuntu.com/community/VNC/Servers
4. https://help.ubuntu.com/community/VNC/Reverse
Popularity: 2% [?]
Related Posts
Leave a comment
Subscribe
Recent Posts
- Login into phpmyadmin without username and password
- 10+ tips to localise your php application
- 40+ Techniques to enhance your php code – Part 3
- 40+ Techniques to enhance your php code – Part 2
- 40+ Techniques to enhance your php code – Part 1
- CSSDeck – Collection of Pure CSS Creations
- Execute shell commands in PHP
- Php get list of locales installed on system
- Sound cracking in Ubuntu 11.10
- PHP script to perform IP whois
An article by




