提供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
答案1
xdm
在配置的任何 X 服务器上启动会话/etc/X11/xdm/Xservers
,使用类似以下的行
:0 local /usr/bin/X11/X vt7
otherhost:0 remote
对于local
线路,它将在连接之前尝试启动指定的 X 服务器。
用 注释掉您不想要的任何内容#
。如果你只想要XDMCP,你可以将它们全部注释掉。