VNC configuration in Ubuntu
By configuring the SERVER as a vnc server, other hosts can log on to the SERVER graphically.
It is easy to configure the vnc server in ubuntu as follows:
Server:
1. First install the VNC service program:
Shell code
$ Sudo apt-get install the vnc4-common vnc4server
2. Set the vnc logon password for the current user:
Shell code
$ Vncpasswd
3. Modify the default vnc settings so that gnome can be used as X's desktop at startup (if not set, vnc will use twm. You can try it. I believe you will not get used to it ):
Shell code
$ Vncserver: 1
$ Vncserver-kill: 1
Note: ": 1" indicates the display number. When you log on, you must write the same display number to log on (see the client section below ).
Modify ~ /. Vnc/xstartup file. We recommend that you copy the Xsession configuration file in the system:
Shell code
$ Cp/etc/X11/Xsession ~ /. Vnc/xstartup
Then start the vnc server again:
Shell code
$ Vncserver-geometry1280 x 800: 1
Client:
1. Install the VNC client program:
Shell code
$ Sudo apt-get install vnc4-common xvnc4viewer
2. Then you log on to the Terminal Server Client: Applications-> Internet-> Terminal Server Client; Computer: Server IP: display #, for example: 192.168.10.36: 1; protocol: VNC.
Or command line:
Shell code
$ Vncviewer 192.168.10.36: 1