CentOS5.5 install vnc-server to install the corresponding desktop environment and vnc server and client: # yumgroupinstall "gnometrictopenvironment" (CentOS5.x install GNOME Desktop Environment) # yumgroupinstall "XWindowSystem" "Desktop" (CentOS6.x install GNOME Desktop Environment) # yumgroup
Install vnc-server in CentOS 5.5
Install the corresponding desktop environment and vnc server and client:
# Yum groupinstall "GNOME Desktop Environment" (CentOS 5.x install GNOME Desktop Environment)
# Yum groupinstall "X Window System" "Desktop" (CentOS 6.x install GNOME Desktop Environment)
# Yum groupinstall Xfce (optional)
# Yum install vnc-server vnc * (in CentOS 5.x)
# Yum install tigervnc-server tigervnc (in CentOS 6.x)
Note: Xfce, KDE, and Gnome are both graphic desktop environments. They are characterized by a smaller resource occupation: Gnome> KDE> Xfce. The specific situation depends on the version. Generally, the newer the version, the larger the resource usage.
VNC startup and restart:
#/Etc/init. d/vncserver restart
Note: Sometimes an error is reported when the preceding command is started. You can run the command directly:
# Vncserver
Note: Disable the vncserver command: vncserver-kill: 1 vncserver-kill: 2
Set vnc access password:
# Vncpasswd
If login is used at this time. The interface is ugly. What is this ?!? You need to perform the following operations:
Modify the remote desktop display configuration file. This file does not exist at the beginning. You need to run the # vncserver command to automatically generate the file:
# Vim/root/. vnc/xstartup
Copy the following code to overwrite it.
#! /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 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&
Gnome-session & # set starting GNOME desktop
# Startkde & # kde desktop
# Twm & # Text interface
#/Usr/bin/startxfce4
# Exec/usr/bin/fluxbox