Use xmanager2.0 to remotely access Linux9.
There is a description on the network of this method. Here I will add:
2. XDMCP connection fails for Linux. How do I Configure My Linux box?
How to configure Linux XDMCP (KDE/gnome) settings for xmanager
Affected files
For runlevel:
/Etc/inittab
For TPD:
/Etc/X11/TPD. conf
For KDM:
/Etc/X11/xdm-config
/Etc/X11/xdm/xaccess
/Etc/X11/xdm/kdmrc
/Usr/share/KDM/kdmrc
/Usr/share/config/KDM/kdmrc
/Etc/opt/kde2/share/config/KDM/kdmrc
For Firewall:
/Etc/sysconfig/ipchains
Step 1. Change runlevel to enable TPD or KDM.
1. Open/etc/inittab file.
2. Change the runlevel to 5 as following:
ID: 5: initdefault:
Step 2. When the Linux is using TPD)
1. Open/etc/X11/TPD. conf file.
2. Go to the [XDMCP] section.
3. Set the value of "enable" option to "1 ".
Step 3. KDM configuration (when the Linux is using KDM)
1. Open/etc/X11/xdm-config file.
2. Comment out "requestport" option as following:
Displaymanager. requestport: 0
==>
! Displaymanager. requestport: 0
3. Open/etc/X11/xdm/xaccess file.
4. Remove the initial "#" character for the following line:
# * # Any host can get a login window
==>
* # Any host can get a login window
5. Open/etc/X11/xdm/kdmrc,
/Usr/share/config/KDM/kdmrc or
/Etc/opt/kde2/share/config/KDM/kdmrc file.
6. Change the value of "enable" option to "true ".
Step 4. firewall configuration (if the firewall has been configured)
1. Open/etc/sysconfig/iptables file.
2. Add the following lines at the top of the file:
-A input-p udp-s 0/0-D 0/0 177-J accept
-A input-P TCP/IP 0/0-D 0/0 telnet-J accept
-A input-p tcp-s 0/0-D 0/0 ssh-J accept
-A input-P TCP/IP 0/0-D 0/0 login-J accept
-A input-P TCP/IP 0/0-D 0/0 Exec-J accept
-A input-P TCP/IP 0/0-D 0/0 shell-J accept
-A input-p tcp-s 0/0-D 0/0 7100-J accept
Step 5. Restart your Linux to activate the changes.
In this example, the IP address cannot access X.
Step 2 of Setup 3 5th and setup 4 are both important and are not mentioned in General tutorials.
Now you can connect to X.
If you select connection, a logon window will appear. However, after you enter the login username and password, you cannot enter the Linux Desktop. A session error will be reported, indicating that a font file cannot be opened. Before that:
Finally, I had to select Add font server. I found that I had opened port 7100 before and thought it would be possible to download the text set from the server.
However, you cannot connect to the server.
I checked the settings of/etc/sysconfig/iptables:
Found:
-A RH-Lokkit-0-50-INPUT-I lo-J accept
-A RH-Lokkit-0-50-INPUT-p tcp-m tcp -- dport -- syn-J reject
-A RH-Lokkit-0-50-INPUT-p tcp-m tcp -- dport 2049 -- syn-J reject
-A RH-Lokkit-0-50-INPUT-p udp-m udp -- dport-J reject
-A RH-Lokkit-0-50-INPUT-p udp-m udp -- dport 2049-J reject
-A RH-Lokkit-0-50-INPUT-p tcp-m tcp -- dport 6000: 6009 -- syn-J reject
-A RH-Lokkit-0-50-INPUT-p tcp-m tcp -- dport 7100 -- syn-J reject
-A input-p udp-s 0/0-D 0/0 177-J accept
-A input-P TCP/IP 0/0-D 0/0 telnet-J accept
-A input-p tcp-s 0/0-D 0/0 ssh-J accept
-A input-P TCP/IP 0/0-D 0/0 login-J accept
-A input-P TCP/IP 0/0-D 0/0 Exec-J accept
-A input-P TCP/IP 0/0-D 0/0 shell-J accept
-A input-p tcp-s 0/0-D 0/0 7100-J accept
The following sentence is found:
-A RH-Lokkit-0-50-INPUT-p tcp-m tcp -- dport 7100 -- syn-J reject
This indicates that my 7100 account is disabled.
Use it # comment out
Save and use xmanager to connect. If no connection is reported, the port is accessible.
However, we still cannot enter X and report that A. pinyi font cannot be read:
I can't help it later. I went to http://www.netsarang.com/products/xmg_faq.htmlto read the instructions in the workshop, and I am exhausted ~~ Full English:
Suddenly I found this introduction:
14. gnome terminal fails to open in RedHat 7.3.
The problem occurs due to the font used by gnome-terminal.
To fix this problem, configure XFS program and add the specific font server into the font list of xconfig.
- Comment the following line out in the file/etc/X11/fs/config.
# No-Listen = TCP
- RestartXFSProcess or reboot the system.
- Open xconfig utility.
- ChooseFontTab.
- ClickAdd Font ServerButton.
- InHostBox, enter the hostname or IP address of Linux.
- InPortBox, enter 7100.
- Restart xmanager.
Make sure that the font server shocould be listed in the bottom of the font list.
Add # as required
Restart XFS. in Linux, enter:
$ Service XFS restart
Access again through xmanager2.0 and find beautiful Linux Desktop
There is also a small problem here, because I previously added
Export display = 192.168.1.xxx
Therefore, an error will be reported before you enter XWindow. See the following instructions in the document:
So add # comment out:
24. I entered correct username and password in the login screen but the Remote Desktop is still not displayed.
When the DISPLAY variable is manually assigned, the remote machine may not find X Server (xmanager). DISPLAY variable is set automatically by xmanager so you do not need to manually assign it.
Please check your login script (. cshrc,. Profile,. login,. bashrc, and etc) andComment out the line that starts with "export display..." or "setenv display ..."As the following statements.
# Export display = 192.168.1.xxx
# Setenv display 192.168.1.xxx
--------------------------------
Other posts:
Check:
Service iptables stop
Then
Netstat-an | grep 177
Netstat-an | grep 7100
Netstat-an | grep 21
-----------------
Add my IP address and host name in/etc/hosts
Xmanger can log on successfully.