xrdp 설치 후 접속을 시도하면 초록색 화면만 나오네요.
정확히는 맥OS에서 Microsoft Remote Desktop 앱으로 아치리눅스에 xrdp 접속을 시도했습니다.
아래 로그 메시지를 보면 로그인 자체는 되는 것 같습니다:
12월 22 17:17:37 ICL xrdp[1444]: [INFO ] connecting to sesman on 127.0.0.1:3350
12월 22 17:17:37 ICL xrdp[1444]: [INFO ] xrdp_wm_log_msg: sesman connect ok
12월 22 17:17:37 ICL xrdp[1444]: [INFO ] sesman connect ok
12월 22 17:17:38 ICL xrdp[1444]: [INFO ] sending login info to session manager. Please wait...
12월 22 17:17:38 ICL xrdp[1444]: [INFO ] xrdp_wm_log_msg: login successful for user woncheol on display 10
12월 22 17:17:38 ICL xrdp[1444]: [INFO ] login successful for user woncheol on display 10
12월 22 17:17:38 ICL xrdp[1444]: [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
12월 22 17:17:38 ICL xrdp[1444]: [INFO ] started connecting
12월 22 17:17:38 ICL xrdp[1444]: [INFO ] lib_mod_connect: connecting via UNIX socket
아래 링크를 보면 초록 화면은 아니고 '검은 화면' 증상에 대해 나오는데요:
https://wiki.archlinux.org/title/Xrdp
If you get a black screen and you use a desktop environment, it may be a result of D-Bus not being properly initialized. Try running the desktop environment with dbus-launch --exit-with-session in your ~/.xinitrc file. For KDE Plasma, you can use the command /usr/lib/plasma-dbus-run-session-if-needed startplasma-x11.
이게 도대체 뭔 소린지 모르겠습니다.
~/.xinitrc 파일을 편집해서 dbus-launch --exit-with-session 라는 문구를 써넣으라는 얘기일까요? 아무 데나 써넣으면 되나요? 맨 마지막에 넣어 봤더니 증상이 그냥 똑같네요.
desktop environment는 xfce 입니다.
그리고 이런 로그 파일도 생성되네요:
.xorgxrdp.10.log
[ 3485.723]
X.Org X Server 1.21.1.6
X Protocol Version 11, Revision 0
[ 3485.723] Current Operating System: Linux ICL 6.0.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 08 Dec 2022 11:03:38 +0000 x86_64
[ 3485.723] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=37cd5b54-a2e2-4c2f-9eaf-de5454f1c77a rw resume=UUID=d1d27a8e-6899-4da4-90dc-b4706980cb11 loglevel=3 nowatchdog nvme_load=YES
[ 3485.723]
[ 3485.723] Current version of pixman: 0.42.2
[ 3485.723] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 3485.723] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 3485.723] (++) Log file: ".xorgxrdp.10.log", Time: Thu Dec 22 17:29:16 2022
[ 3485.723] (EE) Unable to locate/open config file: "xrdp/xorg.conf"
[ 3485.723] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 3485.723] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 3485.723] (==) No Layout section. Using the first Screen section.
[ 3485.723] (==) No screen section available. Using defaults.
[ 3485.723] (**) |-->Screen "Default Screen Section" (0)
[ 3485.723] (**) | |-->Monitor "<default monitor>"
[ 3485.724] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 3485.724] (==) Automatically adding devices
[ 3485.724] (==) Automatically enabling devices
[ 3485.724] (==) Automatically adding GPU devices
[ 3485.724] (==) Automatically binding GPU devices
[ 3485.724] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 3485.724] (WW) The directory "/usr/share/fonts/misc" does not exist.
[ 3485.724] Entry deleted from font path.
[ 3485.724] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[ 3485.724] Entry deleted from font path.
[ 3485.724] (Run 'mkfontdir' on "/usr/share/fonts/TTF").
[ 3485.724] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 3485.724] Entry deleted from font path.
[ 3485.724] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 3485.724] Entry deleted from font path.
[ 3485.724] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[ 3485.724] Entry deleted from font path.
[ 3485.724] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[ 3485.724] Entry deleted from font path.
[ 3485.724] (==) FontPath set to:
[ 3485.724] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 3485.724] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 3485.724] (II) Module ABI versions:
[ 3485.724] X.Org ANSI C Emulation: 0.4
[ 3485.724] X.Org Video Driver: 25.2
[ 3485.724] X.Org XInput driver : 24.4
[ 3485.724] X.Org Server Extension : 10.0
[ 3485.726] (EE) systemd-logind: failed to get session: PID 1634 does not belong to any known session
[ 3485.727] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 3485.727] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[ 3485.729] (--) PCI:*(0@0:2:0) 8086:0152:144d:b091 rev 9, Mem @ 0xf7800000/4194304, 0xe0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[ 3485.729] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 3485.729] (II) LoadModule: "glx"
[ 3485.729] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 3485.731] (II) Module glx: vendor="X.Org Foundation"
[ 3485.731] compiled for 1.21.1.6, module version = 1.0.0
[ 3485.731] ABI class: X.Org Server Extension, version 10.0
[ 3485.731] (==) Matched intel as autoconfigured driver 0
[ 3485.731] (==) Matched modesetting as autoconfigured driver 1
[ 3485.731] (==) Matched fbdev as autoconfigured driver 2
[ 3485.731] (==) Matched vesa as autoconfigured driver 3
[ 3485.731] (==) Assigned the driver to the xf86ConfigLayout
[ 3485.731] (II) LoadModule: "intel"
[ 3485.731] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 3485.731] (II) Module intel: vendor="X.Org Foundation"
[ 3485.731] compiled for 1.21.1.1, module version = 2.99.917
[ 3485.731] Module class: X.Org Video Driver
[ 3485.731] ABI class: X.Org Video Driver, version 25.2
[ 3485.731] (II) LoadModule: "modesetting"
[ 3485.731] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 3485.732] (II) Module modesetting: vendor="X.Org Foundation"
[ 3485.732] compiled for 1.21.1.6, module version = 1.21.1
[ 3485.732] Module class: X.Org Video Driver
[ 3485.732] ABI class: X.Org Video Driver, version 25.2
[ 3485.732] (II) LoadModule: "fbdev"
[ 3485.732] (WW) Warning, couldn't open module fbdev
[ 3485.732] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 3485.732] (II) LoadModule: "vesa"
[ 3485.732] (WW) Warning, couldn't open module vesa
[ 3485.732] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 3485.732] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 3485.733] (II) intel: Driver for Intel(R) HD Graphics
[ 3485.733] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[ 3485.733] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[ 3485.733] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 3485.733] (EE)
Fatal server error:
[ 3485.733] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[ 3485.733] (EE)
[ 3485.733] (EE)
Please consult the The X.Org Foundation support
for help.
[ 3485.733] (EE) Please also check the log file at ".xorgxrdp.10.log" for additional information.
[ 3485.733] (EE)
[ 3485.733] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[ 3485.733] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[ 3485.733] (EE) Server terminated with error (1). Closing log file.
고치는 시간 보다 빨라요..
둘째로는 어떤 문서를 보고 설치 하셨는지 공유 해주시면 도움 받기 좋으실 것 같아요. 저 같은 경우 xrdp에 퍼미션을 몇가지 주곤 합니다, 스크립트를 통해 설치하면서요. 이런 식이죠.
$ sudo adduser xrdp ssl-cert
$ sudo adduser xrdp video
$ sudo adduser xrdp lightdm
감사합니다. 아치리눅스와는 경우가 좀 다른 것 같지만, ssl-cert 키워드를 넣고 검색하다가 제대로 된 해결책을 제시하는 글을 찾았습니다.
https://www.adamlabay.net/2021/08/28/xrdp-on-manjaro-fixing-the-blank-screen-issue/
이거 따라하니까 잘되네요. 아오...
* xrdp 를 이미 설치하여 접속이 안되는 사용자는
$ sudo apt-get install xserver-xorg-core
$ sudo apt-get install xorgxrdp
$ sudo apt-get -y install xserver-xorg-input-all
$ sudo vi /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla
# 아래와 같이 입력한다.
[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes
# 입력 후 서비스 재구동 또는 리부팅
$ sudo reboot
비슷할듯 합니다...