如何设置Linux使用Xmanager远程访问KDE/GNOME桌面
How to configure Linux XDMCP(KDE/GNOME) settings for Xmanager
Affected Files
Step 1. Change runlevel to enable gdm or kdm.
Affected Files
For runlevel : | /etc/inittab |
For GDM : | /etc/X11/gdm/gdm.conf /etc/gdm/custom.conf (Fedora Core 5) |
For KDM : | /etc/X11/xdm/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 |
- Open /etc/inittab file.
- Change the runlevel to 5 as following:
id:5:initdefault:
- Open /etc/X11/gdm/gdm.conf file. (/etc/gdm/custom.conf for Fedora Core 5)
- Go to the [xdmcp] section.
- Set the value of Enable option to true or 1.
- Open /etc/X11/xdm/xdm-config file.
- Comment out "requestPort" option as following:
DisplayManager.requestPort: 0
==>
!DisplayManager.requestPort: 0 - Open /etc/X11/xdm/Xaccess file.
- Remove the initial "#" character for the following line:
#* #any host can get a login window
==>
* #any host can get a login window - Open /etc/X11/xdm/kdmrc,
/usr/share/config/kdm/kdmrc or
/etc/opt/kde2/share/config/kdm/kdmrc file. - Change the value of "Enable" option to "true".
- Open /etc/sysconfig/ipchains file.(/etc/sysconfig/iptables for Fedora Core 5)
- 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 -s 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 -s 0/0 -d 0/0 login -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 exec -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 shell -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 7100 -j ACCEPT