1. Check whether VNC is installed
Yum groupinstall "Chinese Support"
Yumgroupinstall "Desktop"
Open the configuration file directory: cd/etc/sysconfig
2) edit the configuration file vi i18n.
3) With # number to the first line (LANG = "en_US.UTF-8") Comment out, in fact, directly in this line of change is also possible, but the insurance points of practice, or comment out first, it is not long before deletion.
Add a new line under the first line, input (LANG = "zh_CN.UTF-8"), save the file, restart the system, and you will be able to see the friendly Chinese.
It seems that after 6.0, the VNC name was changed from vnc to tigervnc.
[Root @ xen ~] # Rpm-qa | grep tigervnc
Tigervnc-1.0.90-0.17.20110314svn4359.el6.x86_64
Tigervnc-server-1.0.90-0.17.20110314svn4359.el6.x86_64
If not, install it.
[Root @ xen ~] # Yum install tigervnc-server
Add a startup Item
[Root @ xen ~] # Chkconfig -- add vncserver
[Root @ xen ~] # Chkconfig vncserver on
2. Set the VNC Password
[Root @ xen ~] # Vncserver
Creating default startup script/root/. vnc/xstartup
Starting applications specified in/root/. vnc/xstartup
Log file is/root/. vnc/xen: 1.log
The. vnc directory and configuration file are generated in the current user's home directory.
[Root @ xen ~] # Vncpasswd
Password:
Verify:
The SET Password is stored in/root/. vnc/passwd.
Iii. VNC Configuration
Modify the xstartup file and add gnome-session to the last twm & delete file &
[Root @ xen ~] # Cd/root/. vnc/
[Root @ xen. vnc] # tail-n 3 xstartup
Xsetroot-solid gray
Xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&
Gnome-session &
If you start
[Root @ xen. vnc] #/etc/init. d/vncserver start
Starting VNC Server: no displays configured [failed]
Therefore, add the following content to the/etc/sysconfig/vncservers file:
VNCSERVERS = "2: root"
# Desktop number: the user listens to port 590 *
VNCSERVERARGS [2] = "-geometry 800x600"
After this modification, even if the start mode of/etc/inittab is 3, the graphic interface can be normally entered.
Start vncserver
[Root @ xen ~] #/Etc/init. d/vncserver start
Starting VNC Server: 2: root xauth: (stdin): 1: bad display name "xen: 2" in "add" command
New 'xen: 2 (root) 'desktop is xen: 2
Starting applications specified in/root/. vnc/xstartup
Log file is/root/. vnc/xen: 2.log