How to connect XManager to centos
After reading a lot of information, it took several minutes to connect XManager to centos.
Step 1:
Download the graphic interface GNOME first
Yum groupinstall "Desktop"
Yum groupinstall "X Window System"
Yum groupinstall "Chinese Support"
Step 2:
Modify/etc/X11/xdm/Xaccess
If the directory does not contain xdm, you need to install xdm
Yum install xdm
Use vi to open and find
# ** Any host can get a login window
Remove the previous #
** Any host can get a login window
Step 3:
Modify/etc/TPD/custom. conf
[Daemon]
[Security]
AllowRemoteRoot = true // Add 1
[Xdmcp]
Port = 177 // Add 2
Enable = 1 // Add 3
[Gui]
[Greeter]
[Chooser]
[Debug]
If startx is started as follows:
[Root @ cloud ssh] # startx
Xauth: creating new authority file/root/. serverauth.3234
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove/tmp/. X0-lock
And start again.
(EE)
Please consult the CentOS support
Athttp: // wiki.centos.org/Documentation
For help.
(EE)
Or the following error occurs during start-up
[Root @ cloud ssh] # gmtr
** (TPD-binary: 3256): WARNING **: Failed to acquire org. gnome. DisplayManager
** (TPD-binary: 3256): WARNING **: cocould not acquire name; bailing out
No effect.
Next, use XManager4 to connect
I am using Xstart
Enter the host name, select SSH, user name, password for the Protocol, select GNOME for the command, and click run.
Note:
Sent password.
Sent password.
Access granted.
Sent X11 forwarding request...
Failed.
If the preceding conditions occur, modify them.
/Etc/ssh/sshd_config
# X11Forwarding no
Change to: X11Forwarding yes
Then restart ssh
Service sshd restart