透過 XDMCP 到 GDM 開啟會話

透過 XDMCP 到 GDM 開啟會話

我有一個 RHEL6 伺服器,我們透過 XDMCP 連線。如果我啟動 xdm ( xdm &) 它可以工作,但登入畫面是舊的 xdm 簡單登入而不是 gdm。我們的 RHEL5 伺服器可以很好地連接到 gdm。問題是 GDM 沒有運作。當我嘗試啟動 GDM ( gdm &) 時,它給出以下訊息:

** (gdm-binary:3229): WARNING **: Couldn't connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

我也嘗試過使用 (gdm-binary &) 並得到相同的訊息。

cat /etc/gdm/custom.conf
# GDM configuration storage
[daemon]
[security]
DisallowTCP=false
AllowRemoteRoot=true
[xdmcp]
Enable=true
[greeter]
IncludeAll=true
[chooser]
[debug]

在 /etc/X11/xdm/Xaccess 中,我有以下未註解的內容: * #any host can get a login window

在 /etc/X11/xdm/xdm-config 中,我嘗試註解和取消註解以下內容: DisplayManager.requestPort: 0

我參考了幾個教程,例如:

http://www.yolinux.com/TUTORIALS/GDM_XDMCP.html

http://kosala-linux.blogspot.com/2013/02/x-manager-configurations-for-rheloel.html

答案1

此警告:

** (gdm-binary:3229): WARNING **: Couldn't connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

表示系統D-Bus訊息匯流排沒有運作。 D-Bus 提供者可用於與其他程式通訊的訊息匯流排:通常有一個系統訊息匯流排和每個使用者會話的訊息匯流排。

messagebus在 RHEL 上,系統訊息匯流排由軟體包提供的 init 腳本啟動dbus

要啟動系統訊息總線,您必須安裝該dbus軟體包,並且可能會發出service messagebus restart.

相關內容