1.修改/etc/sysconfig/displaymanager文件

vi /etc/sysconfig/displaymanager

DISPLAYMANAGER_ROOT_LOGIN_REMOTE="yes"

DISPLAYMANAGER_STARTS_XSERVER="yes"

DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="no"

DISPLAYMANAGER_AUTOLOGIN=""

DISPLAYMANAGER_PASSWORD_LESS_LOGIN="no"

DISPLAYMANAGER_AD_INTEGRATION="no"

DISPLAYMANAGER_SHUTDOWN="root"

DISPLAYMANAGER_XSERVER="Xorg"

2.修改/etc/X11/xdm/xdm-config

vi /etc/X11/xdm/xdm-config

!DisplayManager.requestPort: 0

3.修改/etc/gdm/custom.conf

 vi /etc/gdm/custom.conf

[daemon]

[security]

[xdmcp]

[greeter]

[chooser]

[debug]

4.重启

systemctl restart xdm  suse 15

rcxdm restart  suse 12sp2

5.防火墙开启

vi /etc/sysconfig/SuSEfirewall2

W_SERVICES_EXT_TCP="22 177"

防火墙关停操作

systemctl start/stop/disable/status SuSEfirewall2.service

posted on 2022-05-11 14:46  非凡8928  阅读(314)  评论(0)    收藏  举报