Ubuntu
Server:
Vnc4server-free software, which can be found from the source.
Sudo apt-Get install vnc4server
Configuration:
1. Generate a passwd file
Vnc4passwd
Generate a passwd file under the $ home/. VNC directory.
$ Home/. VNC is a key directory of vnc4server.
2. Enable vnc4server
Input: vnc4server
The name of the desktop, which is used for client connection. If it is desktop: 1, enter: IP: 5901 when connecting to the client, and so on. If it is desktop 2,
Enter IP: 5902 at client time ....
The first run will prompt you to generate the. VNC/xstartup file, which contains the configuration when you log on to start X.
Note:
Now, log on from UltraVNC and you may get a simple window, because the WM started by vnc4server is TWM by default. If you want to start gnome, you need to change. VNC/xstartup
Comment out all the text, and add gnome-session &
#...........
# Xterm-geometry 80x24 + 10 + 10-ls-title "$ vncdesktop desktop "&
# TWM &
Gnome-session &
3. Restart the VNC service.
Vnc4server-kill: 1
Vnc4server
Client:
RealVNC for http://www.realvnc.com/
It is also a free software. RealVNC includes server and client, but I only installed client.
Sometimes the keyboard input is unavailable in X-window, which may be the reason why the Chinese Input Method is enabled.
Ubuntu VNC vnc4server
Source: http://www.linuxdiyf.com/bbs/redirect.php? Tid = 76256 & goto = lastpost
Http://blog.163.com/beautiful_flame/blog/static/70702574200872354637942/
Http://www.linuxeden.com/html/softuse/20080409/54952.html
We have been using putty + pagent to remotely log on to Ubuntu and use command lines to operate and configure the Ubuntu system.
However, I always think that something is missing and that the graphic interface is also good, especially after Ubuntu-Joes is installed, the idea is even more intense.
In the past, the graphic interface program can be run in putty + xming, but the font is relatively small.
You can use VNC to remotely manipulate the Ubuntu interface.
I have tried two types of VNC server software: vnc4server and vncserver. The client uses UltraVNC and other VNC client software such as TightVNC.
Vnc4server
Server:
Vnc4server-free software, which can be found from the source.
Sudo apt-Get install vnc4server
Client:
UltraVNC for Windows
It is also a free software. UltraVNC contains the server and client, but I only installed the client.
It is particularly worth mentioning that this software plug-in contains a dsmplugin, which can implement encrypted transmission, which is very good.
Download UltraVNC:
Http://ultravnc.sourceforge.net/
Download dsmplugin (not available here ):
Http://msrc4plugin.home.comcast.net /~ Msrc4plugin/index.html
Configuration:
1. Generate a passwd file
Vnc4passwd
Generate a passwd file under the $ home/. VNC directory.
$ Home/. VNC is a key directory of vnc4server.
2. Enable vnc4server
Input: vnc4server
The name of the desktop, which is used for client connection. For desktop: 1, enter: IP: 5901 when connecting to the client, and so on. For desktop 2, enter: IP: 5902 when connecting to the client ....
The first run will prompt you to generate the. VNC/xstartup file, which contains the configuration when you log on to start X.
Note:
Now, log on from UltraVNC and you may get a relatively simple window, because the default WM started by vnc4server is TWM. If you want to start gnome, you need to change. VNC/xstartup. My configuration is as follows:
#! /Bin/sh
# Uncomment the following two lines for normal desktop:
# Unset session_manager
# Exec/etc/X11/xinit/xinitrc
[-X/etc/VNC/xstartup] & exec/etc/VNC/xstartup
[-R $ home/. Xresources] & xrdb $ home/. Xresources
Xsetroot-solid gray
Vncconfig-iconic &
Xterm-geometry 1024x768 + 10 + 10-ls-title "$ vncdesktop desktop "&
Gnome-session &
In this way, gnome is automatically started during logon.
If you do not really understand the principle or have problems, you can view the/usr/bin/vnc4server file. This is a perl file and you will understand the operating principles.
Vncserver:
If vncserver is used, the default configuration file is $ home /. in vncrc, the global configuration file of the vncserver system is in/etc/VNC. in Conf, you can see how it works from/usr/bin/vncserver (also a perl file.
In addition, you also need to change/etc/VNC. conf. Because vncserver uses the xfree system by default, You need to modify the configuration file as follows:
$ Xfconfigpath = "/etc/X11/Xorg. conf ";
Of course, other variables such as vncstartup can be seen here. If you want to start the default X system, you can configure the following:
$ Vncstartup = "/etc/X11/xsession ";
If you configure $ home/. vncrc as follows:
# Configure the X system as Xorg
$ Xfconfigpath = "/etc/X11/Xorg. conf ";
# Start the default xsession
$ Vncstartup = "/etc/X11/xsession ";
# Resolution
$ Geometry = "800x600 ";
After logon, the system automatically goes to the default desktop, such as gnome.
In addition, we can see that xinited and vncserver are used to implement backend services. However, I think the risk is still relatively high because it runs with root by default and requires caution.
Linux VNC is a good tool for Xorg's C/S system!