—————-实际操作——————————-
For GDM: Gnome桌面
***********1**************
/etc/gdm/custom.conf
[xdmcp]
Enable=1
***********2**************
/etc/gdm/custom.conf
[security]
DisallowTCP=false
************3*************
/usr/share/gdm/defaults.conf(该文件为readonly 用vim或更改为readwrite)
[security]
# Allow root to login. It makes sense to turn this off for kiosk use, when
# you want to minimize the possibility of break in.
AllowRoot=true
# Allow login as root via XDMCP. This value will be overridden and set to
# false if the /etc/default/login file exists and contains
# "CONSOLE=/dev/login", and set to true if the /etc/default/login file exists
# and contains any other value or no value for CONSOLE.
AllowRemoteRoot=true
# This will allow remote timed login.
AllowRemoteAutoLogin=false
# 0 is the most restrictive, 1 allow
—————-End——————————-
【Linux】配置linux主机使得可以使用Xmanager的xbrowser登陆图形界面 .
Xmanager服务器端的配置方法
1. XDM Configuration
1. Change runlevel to 5
Open/etc/inittab and set the initial runlevel to 5 as following:
id:5:initdefault:
2. Enable XDMCP
For GDM: Gnome桌面
Open Open /etc/gdm/custom.conf and set the Enable entry to 1 in the [xdmcp] section as following.
[xdmcp]
Enable=1
Open Open /etc/gdm/custom.conf and set the DisallowTCP entry to false in the [security] section as following.
[security]
DisallowTCP=false
For KDM:KDE桌面
Open /etc/X11/xdm/xdm-config comment out the "requestPort" option as following:
DisplayManager.requestPort: 0 ==>
!DisplayManager.requestPort: 0
Open /etc/X11/xdm/Xaccess and remove the initial "#" character for the following line:
#* #any host can get a login window ==>
* #any host can get a login window
Open /etc/kde/kdm/kdmrc and set the Enable entry to true in the [xdmcp] section as following.
[xdmcp]
Enable=true
2. Firewall (TCP/UDP Ports) Configuration
Open UDP port 177 from the PC to the remote host direction.
Open incoming TCP ports 6000~6010 from the remote host to your PC.
3. Reboot the remote host and start Xmanager
# init 3; init 5
————————————————————–
如果允许Root用户连接到XMANAGER 需要修改以下内容:
# vim /usr/share/gdm/defaults.conf
[security]
# Allow root to login. It makes sense to turn this off for kiosk use, when
# you want to minimize the possibility of break in.
AllowRoot=true
# Allow login as root via XDMCP. This value will be overridden and set to
# false if the /etc/default/login file exists and contains
# "CONSOLE=/dev/login", and set to true if the /etc/default/login file exists
# and contains any other value or no value for CONSOLE.
AllowRemoteRoot=true
# This will allow remote timed login.
AllowRemoteAutoLogin=false
# 0 is the most restrictive, 1 allow
4. Xbrower
右键,new,xmanager session,(XDM query),填入IP地址,确定即可!