linux7打开xdmcp,xdmcp for CentOS 7

XDMCP can still run on CentOS 7 , but the display manager should not be Gnome. lightdm is well documented and can replace gnome.

Since XDMCP does not have encryption, so it can only be used within intranet. For a better security, use xrdp for CentOS 7 .

Installation of lightdm , Xfce:

# yum install lightdm Xfce

Edit /etc/lightdm/lightdm.conf:

...

[SeatDefaults]

greeter-hide-users=true

greeter-show-manual-login=true

allow-guest=false

...

[XDMCPServer]

enabled=true

...

There is some bugs in lightdm for CentOS 7, as it fails to read the parameter “greeter-show-manual-login=true”. To fix this, you should set classic as theme-name in configuration file “/etc/lightdm/lightdm-kde-greeter.conf”

...

[greeter]

theme-name=classic

...

Disable Gnome Desktop rather than uninstalling it as it is required by lots of other utilities:

# cd /usr/share/xsessions

# mv gnome-classic.desktop gnome-classic.desktop.backup

# mv gnome.desktop gnome.desktop.backup

# mv gnome-custom-session.desktop gnome-custom-session.desktop.backup

Stop and disable Gnome Display Manager, and change to use lightdm

# systemctl stop gdm

# systemctl disable gdm

# systemctl start lightdm

# systemctl enable lightdm

Since XDMCP connection use UDP 177, setup firewall to release the port for connection.

Start “xlaunch” from Windows 7 Client and test XDMCP connection to linux host:

411c76c13972481fcc905b39940c1b78.png

5761d2eded121de089d47cf233660498.png

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值