CentOS6.5 installation of Vncserver for graphical access

Source: Internet
Author: User
Tags root access

I. Installing the GNOME graphical desktop

#Yum"X window System"#yum"Desktop"  #yum"Chinesesupport"


Two. Install Vncserver and configure (VNC is an excellent remote control software)

1. Installing Vncserver

#Yuminstall -y tigervnc-server


2. Configure Vncserver

1). configured to boot from

345 Vncserver on

2). Configure the VNC password

#vncserverYou would require a password to access your desktop. Password:verify:


3). Configure to use the GNOME desktop
Modify the file Xstratup, put the last twm & Delete plus gnome-session &.

Vim/root/.vnc/xstartup


4). Configure Vncserver to listen for ports and environment parameters after startup

Modify the/etc/sysconfig/vncservers file to add the following content

vncservers="1:root"# Desktop Number: User monitoring 590*   Port vncserverargs[1 ]="-geometry 1200x800"


5). Restart Vncserver Service

#service vncserver Restart

Three. Allow root access to the graphical interface and generate new Machine-id

#sed's/.*!= root.*/#&/' /etc/pam.d/GDM #dbus-uuidgen >/var/lib /dbus/machine-ID

The first sentence of the SED command means to add a # to the front of the line that matches the/.*!= root.*/
The second sentence means that the UUID generated by the Dbus-uuidgen is output to the Machine-id file

Four. Turn off SELinux and NetworkManager services

1. Check the SELinux service and close ( confirm that the value of the SELinux field is disabled, and if not, change to disabled)

#vim/etc/selinux/config


2. Close the NetworkManager service

#chkconfig--del NetworkManager


Five. Test login:

CentOS6.5 installation of Vncserver for graphical access

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.