Xdmcp
是否可以在螢幕外提供 XDMCP 服務?
提供 XDMCP 服務本身並不難。使用 XDM 進行一些配置就足夠了。
但是XDM必須啟動一個X程序並顯示一些東西,如果有一些硬體問題,它就會啟動。而在我看來,XDMCP 伺服器是純 CPU 任務。
那麼,是否可以不使用顯卡或螢幕提供XDMCP服務呢?就像在後台執行 Nginx 一樣?
當我在我的情況下嘗試它時,由 XDM 啟動的 X 程序由於“未找到螢幕”而死亡。我不想關注修復它,因為本地監視器對我來說毫無意義。
我按照https://wiki.archlinux.org/index.php/XDMCP進行修改。xdm.log 說:
xdm info (pid 1048): Starting xdm 1.1.12 xdm error (pid 1048): error binding socket address 177: Cannot assign requested address xdm info (pid 1048): Starting X server on :0 X.Org X Server 1.20.5 X Protocol Version 11, Revision 0 Build Operating System: Linux Arch Linux Current Operating System: Linux 9b8258ba662e 4.14.122-rancher #1 SMP Tue May 28 01:50:21 UTC 2019 x86_64 Kernel command line: BOOT_IMAGE=../vmlinuz-4.14.122-rancher printk.devkmsg=on rancher.state.dev=LABEL=RANCHER_STATE rancher.state.wait panic=10 console=tty0 initrd=../initrd-v1.5.2 Build Date: 30 May 2019 06:44:40PM Current version of pixman: 0.38.4 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jun 5 07:05:01 2019 (==) Using system config directory "/usr/share/X11/xorg.conf.d" (EE) Fatal server error: (EE) no screens found(EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. (EE) (EE) Server terminated with error (1). Closing log file. xdm error (pid 1048): server unexpectedly died xdm error (pid 1048): Server for display :0 can't be started, session disabled
xdm
在配置的任何 X 伺服器上啟動會話/etc/X11/xdm/Xservers
,行如下:0 local /usr/bin/X11/X vt7 otherhost:0 remote
在
local
線路的情況下,它將嘗試在連接到它之前啟動指定的 X 伺服器。用 .註釋掉任何你不想要的行
#
。如果您只想要 XDMCP,您可以將它們全部註釋掉。