You are not logged in.
Pages: 1
Hi all,
I wanted to install XRDP on an arch linux install, but I fai connect to it from any other computer from my local network.
After i start the xorg session I've got a turquoise screen for a few second, then it disconnect.
uname -a
Linux HP8300-Arch 5.6.11-arch1-1 #1 SMP PREEMPT Wed, 06 May 2020 17:32:37 +0000 x86_64 GNU/Linux
neofetch
-` ******@HP8300-Arch
.o+` -------------------
`ooo/ OS: Arch Linux x86_64
`+oooo: Host: HP Compaq Elite 8300 CMT
`+oooooo: Kernel: 5.6.11-arch1-1
-+oooooo+: Uptime: 7 hours, 32 mins
`/:-:++oooo+: Packages: 1226 (pacman), 4 (flatpak)
`/++++/+++++++: Shell: bash 5.0.16
`/++++++++++++++: Resolution: 1920x1080
`/+++ooooooooooooo/` DE: Unity
./ooosssso++osssssso+` Terminal: /dev/pts/1
.oossssso-````/ossssss+` CPU: Intel i5-3470 (4) @ 3.600GHz
-osssssso. :ssssssso. GPU: NVIDIA GeForce GT 1030
:osssssss/ osssso+++. Memory: 355MiB / 7908MiB
/ossssssss/ +ssssooo/-
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/
xrdp --version
xrdp 0.9.13
A Remote Desktop Protocol Server.
Copyright (C) 2004-2018 Jay Sorg, Neutrino Labs, and all contributors.
See https://github.com/neutrinolabs/xrdp for more information.
Configure options:
--prefix=/usr
--sysconfdir=/etc
--localstatedir=/var
--sbindir=/usr/bin
--with-systemdsystemunitdir=/usr/lib/systemd/system
--enable-jpeg
--enable-tjpeg
--enable-fuse
--enable-opus
--enable-rfxcodec
--enable-mp3lame
--enable-pixman
--enable-painter
--enable-vsock
CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt
LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
CPPFLAGS=-D_FORTIFY_SOURCE=2
Compiled with OpenSSL 1.1.1g 21 Apr 2020
sudo systemctl status xrdp
.
● xrdp.service - xrdp daemon
Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2020-05-10 19:35:10 UTC; 41min ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Process: 341278 ExecStart=/usr/bin/xrdp (code=exited, status=0/SUCCESS)
Main PID: 341279 (xrdp)
Tasks: 1 (limit: 9470)
Memory: 2.2M
CGroup: /system.slice/xrdp.service
└─341279 /usr/bin/xrdp
máj 10 19:37:55 HP8300-Arch xrdp[342586]: (342586)(140299132422336)[DEBUG] Closed socket 20 (AF_UNIX)
máj 10 19:37:59 HP8300-Arch xrdp[342586]: (342586)(140299132422336)[ERROR] xrdp_mm_connect_chansrv: connect failed trying again...
máj 10 19:37:59 HP8300-Arch xrdp[342586]: (342586)(140299132422336)[DEBUG] Closed socket 20 (AF_UNIX)
máj 10 19:38:03 HP8300-Arch xrdp[342586]: (342586)(140299132422336)[ERROR] xrdp_mm_connect_chansrv: connect failed trying again...
máj 10 19:38:03 HP8300-Arch xrdp[342586]: (342586)(140299132422336)[ERROR] xrdp_mm_connect_chansrv: error in trans_connect chan
máj 10 19:38:03 HP8300-Arch xrdp[342586]: (342586)(140299132422336)[DEBUG] Closed socket 18 (AF_INET 127.0.0.1:39614)
máj 10 19:38:03 HP8300-Arch xrdp[342586]: (342586)(140299132422336)[DEBUG] Closed socket 12 (AF_INET 192.168.1.112:3389)
máj 10 19:38:03 HP8300-Arch xrdp[342586]: (342586)(140299132422336)[DEBUG] xrdp_mm_module_cleanup
máj 10 19:38:03 HP8300-Arch xrdp[342586]: (342586)(140299132422336)[DEBUG] Closed socket 19 (AF_UNIX)
máj 10 19:38:03 HP8300-Arch xrdp[342586]: (342586)(140299132422336)[DEBUG] Closed socket 20 (AF_UNIX)
~/.vnc/xstartup
#!/bin/sh
def
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
xrdb $HOME/.Xresources
xsetroot -solid grey
kde-session &
What worried me, and didn't find answer for it that: vendor preset: disabled
On the other hand I have a wm with ubuntu gnome and it works:
● xrdp.service - xrdp daemon
Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2020-05-10 18:35:50 CEST; 3h 58min ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Process: 735 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)
Process: 743 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 789 (xrdp)
Tasks: 2 (limit: 7065)
Memory: 24.6M
CGroup: /system.slice/xrdp.service
├─ 789 /usr/sbin/xrdp
└─39354 /usr/sbin/xrdp
máj 10 18:45:15 ubuntuvm xrdp[39354]: (39354)(140666287011648)[DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
máj 10 18:45:15 ubuntuvm xrdp[39354]: (39354)(140666287011648)[INFO ] xrdp_wm_log_msg: sesman connect ok
máj 10 18:45:15 ubuntuvm xrdp[39354]: (39354)(140666287011648)[DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
máj 10 18:45:15 ubuntuvm xrdp[39354]: (39354)(140666287011648)[DEBUG] return value from xrdp_mm_connect 0
máj 10 18:45:15 ubuntuvm xrdp[39354]: (39354)(140666287011648)[INFO ] xrdp_wm_log_msg: login successful for display 10
máj 10 18:45:15 ubuntuvm xrdp[39354]: (39354)(140666287011648)[DEBUG] xrdp_wm_log_msg: started connecting
máj 10 18:45:16 ubuntuvm xrdp[39354]: (39354)(140666287011648)[INFO ] lib_mod_log_peer: xrdp_pid=39354 connected to X11rdp_pid=40326 X11rdp_uid=1000 X11rdp_gid=1000 client_port=57033
máj 10 18:45:16 ubuntuvm xrdp[39354]: (39354)(140666287011648)[DEBUG] xrdp_wm_log_msg: connected ok
máj 10 18:45:16 ubuntuvm xrdp[39354]: (39354)(140666287011648)[DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
máj 10 18:45:17 ubuntuvm xrdp[39354]: (39354)(140666287011648)[DEBUG] Closed socket 16 (AF_INET6 ::1 port 53890)
xrdp --version
xrdp 0.9.12
A Remote Desktop Protocol Server.
Copyright (C) 2004-2018 Jay Sorg, Neutrino Labs, and all contributors.
See https://github.com/neutrinolabs/xrdp for more information.
Configure options:
--enable-ipv6
--enable-jpeg
--enable-fuse
--enable-rfxcodec
--enable-opus
--enable-painter
--enable-vsock
--build=x86_64-linux-gnu
--prefix=/usr
--includedir=${prefix}/include
--mandir=${prefix}/share/man
--infodir=${prefix}/share/info
--sysconfdir=/etc
--localstatedir=/var
--disable-silent-rules
--libdir=${prefix}/lib/x86_64-linux-gnu
--libexecdir=${prefix}/lib/x86_64-linux-gnu
--disable-maintainer-mode
--disable-dependency-tracking
--with-socketdir=/run/xrdp/sockdir
build_alias=x86_64-linux-gnu
CFLAGS=-g -O2 -fdebug-prefix-map=/build/xrdp-GJgww4/xrdp-0.9.12=. -fstack-protector-strong -Wformat -Werror=format-security
LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed
CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2
PKG_CONFIG_PATH=/build/xrdp-GJgww4/xrdp-0.9.12/pkgconfig
Compiled with OpenSSL 1.1.1f 31 Mar 2020
What did I miss?
Should I downgrade on arch XDRP from 0.9.13 to 0.9.12 ?
Offline
Did you start the vnc server as well? Ubuntu does that automatically on install, in arch, you have to enable it. Xrdp needs a running vnc server to connect to it is just a bridge.
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
If I know well, for xrdp, I should install tigervnc?
Offline
● vncserver.service - Remote desktop service (VNC)
Loaded: loaded (/usr/lib/systemd/system/vncserver.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2020-05-11 08:32:58 UTC; 18min ago
Main PID: 59082 (code=exited, status=2)
Offline
Now you have to find out why it fails.
One hint: you probably have to start the server as your user, and like this:
systemctl --user start vncserver@:1zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
kde-session &
should be
exec startplasma-x11
since Plasma 5.63
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
I'm a newbie and confused, so many config file exist. Where can I write this?
Offline
~/.vnc/xstartup
You quoted it yourself in your OP. ![]()
Also:
https://wiki.archlinux.org/index.php/TigerVNC
Last edited by SanskritFritz (2020-05-11 10:07:58)
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
I've found
Changed, but still disconnect ![]()
Offline
I try to follow the wiki, but it take times...
Offline
is it good, and enough?
sudo netstat -antup | grep xrdp
tcp 0 0 127.0.0.1:3350 0.0.0.0:* LISTEN 6304/xrdp-sesman
tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN 6306/xrdp
Last edited by LuckyDime (2020-05-11 15:39:28)
Offline
I'm cursed. Any VNC is pain in my neck.
Offline
plasmashell
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
Félbeszakítva (core készült)
journalctl -xe
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
Pass -q to turn off this notice.
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/l … temd-devel
-- Documentation: man:core(5)
--
-- Process 11141 (plasmashell) crashed and dumped core.
--
-- This usually indicates a programming error in the crashing program and
-- should be reported to its vendor as a bug.
máj 11 22:52:42 HP8300-Arch systemd-coredump[11324]: Process 11322 (plasmashell) of user 1000 dumped core.
Stack trace of thread 11322:
#0 0x00007f282e313ce5 raise (libc.so.6 + 0x3bce5)
#1 0x00007f282e2fd857 abort (libc.so.6 + 0x25857)
#2 0x00007f282e715938 _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x8e938)
#3 0x00007f282eced845 _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv (libQt5Gui.so.5 + 0x12b845)
#4 0x00007f282ecedce1 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt5Gui.so.5 + 0x12bce1)
#5 0x00007f282e932ea5 _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5 + 0x2abea5)
#6 0x00007f282ecf0e80 _ZN22QGuiApplicationPrivate4initEv (libQt5Gui.so.5 + 0x12ee80)
#7 0x00007f282f42cd2f _ZN19QApplicationPrivate4initEv (libQt5Widgets.so.5 + 0x161d2f)
#8 0x0000560e0e5882e7 n/a (plasmashell + 0x1e2e7)
#9 0x00007f282e2ff023 __libc_start_main (libc.so.6 + 0x27023)
#10 0x0000560e0e58923e _start (plasmashell + 0x1f23e)
-- Subject: Process 11322 (plasmashell) dumped core
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/l … temd-devel
-- Documentation: man:core(5)
--
-- Process 11322 (plasmashell) crashed and dumped core.
--
-- This usually indicates a programming error in the crashing program and
-- should be reported to its vendor as a bug.
sudo systemctl start xrdp
[sudo] sirkope jelszava:
Failed to start xrdp.service: Unit xrdp.service failed to load properly: Bad message.
See system logs and 'systemctl status xrdp.service' for details.
systemctl status xrdp.service
● xrdp.service - xrdp daemon
Loaded: error (Reason: Unit xrdp.service failed to load properly: Bad message.)
Active: active (running) since Mon 2020-05-11 15:24:07 UTC; 7h ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Main PID: 6306 (xrdp)
CGroup: /system.slice/xrdp.service
└─6306 /usr/bin/xrdp
/lib/systemd/system/xrdp.service
[Unit]
Description=xrdp daemon
Documentation=man:xrdp(8) man:xrdp.ini(5)
Requires=xrdp-sesman.service
After=network.target xrdp-sesman.service
[Service] Type=forking
#PIDFile=/var/run/xrdp/xrdp.pid
PIDFile=/run/xrdp.pid
ExecStart=/usr/bin/xrdp
ExecStop=/usr/bin/xrdp --kill
RuntimeDirectory=xrdp
EnvironmentFile=-/etc/sysconfig/xrdp
EnvironmentFile=-/etc/default/xrdp
User=xrdp
Group=xrdp
PermissionsStartOnly=true
ExecStartPre=/bin/sh /usr/share/xrdp/socksetup
#ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS
#ExecStop=/usr/sbin/xrdp $XRDP_OPTIONS --kill
[Install]
WantedBy=multi-user.target
systemctl status vncserver
● vncserver.service - Remote desktop service (VNC)
Loaded: loaded (/usr/lib/systemd/system/vncserver.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2020-05-11 15:28:37 UTC; 7h ago
Main PID: 6444 (code=exited, status=2)
Offline
Well the exact same scenario works for me for quite a while now.
First make sure vnc works. Start the vnc server as your user via systemctl --user. Careful, enabling it works only if you enable linger user.
~> cat ~/.vnc/xstartup
#!/bin/sh
exec startplasma-x11
~> systemctl --user status vncserver@:1
● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/usr/lib/systemd/user/vncserver@.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2020-05-11 08:32:00 CEST; 1 day 4h ago
Process: 501 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :1 > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
Process: 507 ExecStart=/usr/bin/vncserver :1 (code=exited, status=0/SUCCESS)
CGroup: /user.slice/user-1000.slice/user@1000.service/vncserver.slice/vncserver@:1.service
├─ 519 /usr/bin/Xvnc :1 -auth /home/frank/.Xauthority -desktop FrankVM:1 (frank) -geometry 1024x768 -pn -rfbauth /home/frank/>
├─ 563 startplasma-x11
├─ 575 /usr/lib/kf5/start_kdeinit --kded +kcminit_startup
├─ 576 kdeinit5: Running...Connect to the vnc session via a vnc viewer: localhost:5901
Then, for xrdp put an entry here:
~> cat /etc/xrdp/xrdp.ini
[FrankVM]
name=FrankVM
lib=libvnc.so
ip=localhost
port=5901
username=na
password=ask
root@FrankVM ~# systemctl status xrdp
● xrdp.service - xrdp daemon
Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2020-05-11 08:31:57 CEST; 1 day 4h ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Process: 441 ExecStart=/usr/bin/xrdp (code=exited, status=0/SUCCESS)
Main PID: 458 (xrdp)
Tasks: 1 (limit: 9536)
Memory: 2.5M
CGroup: /system.slice/xrdp.service
└─458 /usr/bin/xrdp
May 11 08:31:56 FrankVM xrdp[441]: [20200511-08:31:56] [INFO ] listening to port 3389 on 0.0.0.0
May 11 08:31:56 FrankVM xrdp[441]: [20200511-08:31:56] [INFO ] xrdp_listen_pp done
May 11 08:31:56 FrankVM xrdp[441]: [20200511-08:31:56] [DEBUG] Closed socket 7 (AF_INET 0.0.0.0:3389)
May 11 08:31:56 FrankVM xrdp[441]: daemon process 458 started okTry this with rdesktop: rdesktop localhost
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
Progress (sort of)
"Careful, enabling it works only if you enable linger user."
I don't get it what is it for, it seems not doing anything.
"~> cat /etc/xrdp/xrdp.ini
[FrankVM]
name=FrankVM
lib=libvnc.so
ip=localhost
port=5901
username=na
password=ask"
and
"systemctl --user status vncserver@:1 "
helped.(of course I've changed FrankVM to my username
)
I can choose my user session in xrdp login menu. On my 'real' PC after the first login, I start customise desktop, (there wasn't available sound device - another problem), I could start Steam game. But I've made a mistake: I set autologin, then now desktop doesn't load, just a black screen, and the cursor.
In my virtual arch, I could manage running xrdp, but if I logout/reboot/shutdown, for connecting again I have to log into terminal, and run:
systemctl --user status vncserver@:1
then, when I connect,, PolicyKit1-KDE ask root password for authentication.
After that it works, but no sound, just xrdp sink as audio device
Last edited by LuckyDime (2020-05-12 18:22:55)
Offline
● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/usr/lib/systemd/user/vncserver@.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-05-12 17:08:59 UTC; 3h 54min ago
CGroup: /user.slice/user-1000.slice/user@1000.service/vncserver.slice/vncserver@:1.service
├─566 /usr/bin/Xvnc :1 -alwaysshared -desktop sandbox -geometry 1920x1080 -localhost -securitytypes vncauth,tlsvnc -auth /home/******/.Xauthority -fp /usr/share/>
├─683 startplasma-x11
├─694 /usr/lib/kf5/start_kdeinit --kded +kcminit_startup
├─695 kdeinit5: Running...
├─697 /usr/lib/kf5/klauncher --fd=9
└─734 /usr/bin/plasma_session
máj 12 17:08:59 HP8300-Arch kdeinit5[703]: Initializing "kcm_style" : "kcminit_style"
máj 12 17:09:00 HP8300-Arch kaccess[719]: Cannot mix incompatible Qt library (version 0x50e00) with this library (version 0x50e02)
máj 12 17:09:00 HP8300-Arch ksplashqml[686]: file:///home/*****/.local/share/plasma/look-and-feel/Breeze-Noir-Dark/contents/splash/Splash.qml:181: ReferenceError: preLoading>
máj 12 17:09:00 HP8300-Arch ksplashqml[686]: file:///home/*****/.local/share/plasma/look-and-feel/Breeze-Noir-Dark/contents/splash/Splash.qml:195: ReferenceError: webFont is>
máj 12 17:09:00 HP8300-Arch ksmserver[737]: Qt: Session management error: networkIdsList argument is NULL
máj 12 17:09:00 HP8300-Arch ksmserver[737]: Cannot mix incompatible Qt library (version 0x50e00) with this library (version 0x50e02)
máj 12 17:09:00 HP8300-Arch systemd-coredump[724]: Process 717 (drkonqi) of user 1000 dumped core.
Stack trace of thread 717:
#0 0x00007f25e7551ce5 raise (libc.so.6 + 0x3bce5)
#1 0x00007f25e753b857 abort (libc.so.6 + 0x25857)
#2 0x00007f25e796d938 _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x8e938)
This "Cannot mix incompatible Qt library (version 0x50e00) with this library (version 0x50e02)" drives me crazy on this machine, not the first time that I met with it.
Last edited by LuckyDime (2020-05-13 11:01:59)
Offline
Pages: 1