Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Gui Launching. (Manjaro) #1500

Closed
ameeno opened this issue Feb 13, 2020 · 7 comments
Closed

No Gui Launching. (Manjaro) #1500

ameeno opened this issue Feb 13, 2020 · 7 comments
Labels
question or troubleshoot question or trouble shoot, not confirmed as xrdp bug or issue yet

Comments

@ameeno
Copy link

ameeno commented Feb 13, 2020

Hello, I have tried to follow the guides on arch wiki/ aur and belive all my xinitrc/xauthorities ect are set up correctly.

after Initial screen (I see a login window for xrdp) I get a black screen then the session disconnects.

Here are the xrdp.log & xrdp-sesman.log (which I cleared before attempting a single connection, to make it easier to debug)

I cant see the issue, can you direct me, please?

xrdp.log

[20200213-16:39:37] [INFO ] Socket 12: AF_INET connection received from 192.168.88.30 port 36440
[20200213-16:39:37] [DEBUG] Closed socket 12 (AF_INET 192.168.0.30:3389)
[20200213-16:39:37] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20200213-16:39:37] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20200213-16:39:37] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20200213-16:39:37] [DEBUG] TLSv1.3 enabled
[20200213-16:39:37] [DEBUG] TLSv1.2 enabled
[20200213-16:39:37] [DEBUG] Security layer: requested 1, selected 1
[20200213-16:39:37] [INFO ] connected client computer name: Guacamole RDP
[20200213-16:39:37] [INFO ] adding channel item name cliprdr chan_id 1004 flags 0xc0a00000
[20200213-16:39:37] [INFO ] adding channel item name rdpdr chan_id 1005 flags 0xc0800000
[20200213-16:39:37] [INFO ] adding channel item name rdpsnd chan_id 1006 flags 0xc0000000
[20200213-16:39:37] [INFO ] TLS connection established from 192.168.88.30 port 36440: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
[20200213-16:39:37] [DEBUG] xrdp_0000192e_wm_login_mode_event_00000001
[20200213-16:39:37] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20200213-16:39:37] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20200213-16:39:43] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200213-16:39:44] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20200213-16:39:44] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20200213-16:39:44] [DEBUG] return value from xrdp_mm_connect 0
[20200213-16:39:44] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20200213-16:39:44] [DEBUG] xrdp_wm_log_msg: started connecting
[20200213-16:39:44] [INFO ] lib_mod_log_peer: xrdp_pid=6446 connected to X11rdp_pid=6462 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=192.168.88.30 client_port=36440
[20200213-16:39:44] [DEBUG] xrdp_wm_log_msg: connected ok
[20200213-16:39:44] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20200213-16:39:44] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:53948)
[20200213-16:39:44] [DEBUG] Closed socket 12 (AF_INET 192.168.0.30:3389)
[20200213-16:39:44] [DEBUG] xrdp_mm_module_cleanup
[20200213-16:39:44] [DEBUG] Closed socket 19 (AF_UNIX)
[20200213-16:39:44] [DEBUG] Closed socket 20 (AF_UNIX)

xrdp-sesman.log

[20200213-16:39:43] [INFO ] A connection received from 127.0.0.1 port 53948
[20200213-16:39:44] [INFO ] ++ created session (access granted): username arun, ip 192.168.88.30:36440 - socket: 12
[20200213-16:39:44] [INFO ] starting Xorg session...
[20200213-16:39:44] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5910)
[20200213-16:39:44] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6010)
[20200213-16:39:44] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6210)
[20200213-16:39:44] [INFO ] calling auth_start_session from pid 6449
[20200213-16:39:44] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20200213-16:39:44] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20200213-16:39:44] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20200213-16:39:44] [INFO ] Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log  
[20200213-16:39:44] [CORE ] waiting for window manager (pid 6461) to exit
[20200213-16:39:44] [CORE ] window manager (pid 6461) did exit, cleaning up session
[20200213-16:39:44] [INFO ] calling auth_stop_session and auth_end from pid 6449
[20200213-16:39:44] [DEBUG] cleanup_sockets:
[20200213-16:39:44] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_audio_out_socket_10
[20200213-16:39:44] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_audio_in_socket_10
[20200213-16:39:44] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdpapi_10
[20200213-16:39:44] [INFO ] ++ terminated session:  username arun, display :10.0, session_pid 6449, ip 192.168.88.30:36440 - socket: 12
@metalefty
Copy link
Member

To break down the issue,

  1. make sure xterm installed
  2. create startwm.sh in hour home directory with following content (also make sure to add exec permission)
#!/bin/sh
xterm
  1. connect & login via xrdp and observe what happens

@metalefty metalefty added the question or troubleshoot question or trouble shoot, not confirmed as xrdp bug or issue yet label Feb 14, 2020
@ameeno
Copy link
Author

ameeno commented Feb 14, 2020

When I Log in using xrdp while following your instructions, I successfully login and see an xterm session.

I have tried to move my .xinitrc to start.wm, but not able to launch a session.

After every login with gnome-session (even after setting backend to X11) i get "Oh No, Something went wrong screen"

@metalefty
Copy link
Member

Then at least xrdp successfully launched your desktop environment but something went wront after launch.

Also "Oh no! Something has gone wrong." happens other than xrdp for example VNC. Google it and you will find how to solve it.

@ameeno
Copy link
Author

ameeno commented Feb 20, 2020

thanks. I switched to Ubuntu. it was as simple as installing xrdp and setting up startwm.sh with the session name.

I am not sure what manjaro does in the background. but it just was not launching the wm properly.

@Serg-VL
Copy link

Serg-VL commented May 7, 2020

May be will be helpful for somebody.
I use manjaro and to fix such problem used to remove --exit-with-session option from dubs-launch.
By the way, I can not understand why this takes the effect.

@tobih7
Copy link

tobih7 commented Nov 16, 2021

I found a solution.

Hack to solve the problem: https://github.com/matt335672/pam_close_systemd_system_dbus

  • clone the repo
  • run sudo make install
  • modify /etc/pam.d/xrdp-sesman (see README)

Alternatively remove pam_systemd_home.so entries from /etc/pam.d/system-auth.
The hack is then not necessary.

Explanation: #1684

Of course also these things are required:

  • create /etc/X11/Xwrapper.config with content allowed_users=anybody
  • install xorgxrdp (not only xrdp)

@trustin
Copy link

trustin commented Dec 4, 2021

Confirmed @txhx38's workaround works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question or troubleshoot question or trouble shoot, not confirmed as xrdp bug or issue yet
Projects
None yet
Development

No branches or pull requests

6 participants