|
CentOS 6.5 installation VNCServer implement graphical access
A. Installing gnome graphical desktop
#yum groupinstall -y "X Window System"
#yum groupinstall -y "Desktop"
#yum groupinstall -y "Chinese Support"
II. Installing and configuring vncserver (vnc is an excellent remote control software)
1. Install vncserver
#yum install -y tigervnc-server
2. Configure vncserver
1). Configured to boot from the start
#chkconfig --level 345 vncserver on
2) Configuration vnc password
#vncserver
You will require a password to access your desktop.
Password:
Verify:
3) configured to use the gnome desktop
Modify the file xstratup, delete the last twm & plus gnome-session &.
vim /root/.vnc/xstartup
4) After the configuration vncserver start listening port and environmental parameters
Modify / etc / sysconfig / vncservers file add the following
VNCSERVERS = "1: root"
# Desktop Number: 590 * user listening port
VNCSERVERARGS [1] = "- geometry 1200x800"
5) Restart vncserver service
#service vncserver restart
III. Allow root access graphical interface and a new generation of machine-id
#sed -i 's /.*!= root. * / # & /' /etc/pam.d/gdm
# Dbus-uuidgen> / var / lib / dbus / machine-id
Front row of the first sentence of the sed command means that a match /.*!= root. * / Plus a #
The second sentence means that by dbus-uuidgen generated uuid output file to machine-id
IV. Close selinux and NetworkManager service
1. Check selinux service and close (confirmation value inside SELINUX field is disabled, if it is not changed to disabled)
#vim / etc / selinux / config
2. Turn off the NetworkManager service
#chkconfig --del NetworkManager |
|
|
|