xrdp icon indicating copy to clipboard operation
xrdp copied to clipboard

XRDP disconnects immediately after correct credentials By Arch gnome

Open dnslin opened this issue 2 years ago • 4 comments

I read the other issues, but they didn't help me. I also had this problem on Arch My desktop environment is gnome Here is the run log

log

[root@arch ~]# systemctl status xrdp-sesman.service
● xrdp-sesman.service - xrdp session manager
     Loaded: loaded (/usr/lib/systemd/system/xrdp-sesman.service; enabled; vendor preset: disabled)
     Active: active (running) since Sat 2022-04-16 18:51:58 CST; 22min ago
       Docs: man:xrdp-sesman(8)
             man:sesman.ini(5)
    Process: 52570 ExecStart=/usr/bin/xrdp-sesman (code=exited, status=0/SUCCESS)
   Main PID: 52571 (xrdp-sesman)
      Tasks: 1 (limit: 19181)
     Memory: 5.2M
        CPU: 1.860s
     CGroup: /system.slice/xrdp-sesman.service
             └─52571 /usr/bin/xrdp-sesman

4月 16 19:13:09 arch xrdp-sesman[52901]: [WARN ] Window manager (pid 52902, display 10) exited quickly (0 secs). This could indicate a window manager config problem
4月 16 19:13:09 arch xrdp-sesman[52901]: [INFO ] Calling auth_stop_session and auth_end from pid 52901
4月 16 19:13:09 arch xrdp-sesman[52901]: pam_unix(xrdp-sesman:session): session closed for user dev
4月 16 19:13:09 arch xrdp-sesman[52901]: [INFO ] Terminating X server (pid 52903) on display 10
4月 16 19:13:09 arch xrdp-sesman[52901]: [INFO ] Terminating the xrdp channel server (pid 52907) on display 10
4月 16 19:13:09 arch xrdp-sesman[52901]: [INFO ] X server on display 10 (pid 52903) returned exit code 0 and signal number 0
4月 16 19:13:09 arch xrdp-sesman[52901]: [INFO ] xrdp channel server for display 10 (pid 52907) exit code 0 and signal number 0
4月 16 19:13:09 arch xrdp-sesman[52901]: [INFO ] cleanup_sockets:
4月 16 19:13:09 arch xrdp-sesman[52571]: [INFO ] Process 52901 has exited
4月 16 19:13:09 arch xrdp-sesman[52571]: [INFO ] ++ terminated session:  username dev, display :10.0, session_pid 52901, ip ::ffff:192.168.8.110:56306 - socket: 12
[root@arch ~]# systemctl status xrdp.service
● xrdp.service - xrdp daemon
     Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; vendor preset: disabled)
     Active: active (running) since Sat 2022-04-16 18:51:59 CST; 22min ago
       Docs: man:xrdp(8)
             man:xrdp.ini(5)
    Process: 52572 ExecStart=/usr/bin/xrdp (code=exited, status=0/SUCCESS)
   Main PID: 52573 (xrdp)
      Tasks: 1 (limit: 19181)
     Memory: 1.4M
        CPU: 487ms
     CGroup: /system.slice/xrdp.service
             └─52573 /usr/bin/xrdp

4月 16 19:13:09 arch xrdp[52899]: [INFO ] xrdp_wm_log_msg: sesman connect ok
4月 16 19:13:09 arch xrdp[52899]: [INFO ] sesman connect ok
4月 16 19:13:09 arch xrdp[52899]: [INFO ] sending login info to session manager. Please wait...
4月 16 19:13:09 arch xrdp[52899]: [INFO ] xrdp_wm_log_msg: login successful for user dev on display 10
4月 16 19:13:09 arch xrdp[52899]: [INFO ] login successful for user dev on display 10
4月 16 19:13:09 arch xrdp[52899]: [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
4月 16 19:13:09 arch xrdp[52899]: [INFO ] started connecting
4月 16 19:13:09 arch xrdp[52899]: [INFO ] lib_mod_connect: connecting via UNIX socket
4月 16 19:13:09 arch xrdp[52899]: [INFO ] lib_mod_log_peer: xrdp_pid=52899 connected to X11rdp_pid=52903 X11rdp_uid=1001 X11rdp_gid=1001 client_ip=::ffff:192.168.8.110 client_port=56306
4月 16 19:13:09 arch xrdp[52899]: [INFO ] connected ok

error log is blank

.xinitrc

exec i3

gnome version

42.0

Window Management

Wayland

Runing

Windows 10

/etc/X11/xinit/xinitrc

  GNU nano 6.2                                                                                       /etc/X11/xinit/xinitrc                                                                                                  
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

/etc/X11/Xwrapper.config

allowed_users=anybody 

dnslin avatar Apr 16 '22 11:04 dnslin

In fact, I was confused about the contents of .xinitrc because there is no such file in my user directory. This file was created by me, and I Googled it and came up with an answer like this exec i3

dnslin avatar Apr 16 '22 11:04 dnslin

Hi @dnslin

A few questions for you.

  • Is there a file ~/.xordxrdp.10.log in the home directory for dev? If so, what is in it?
  • In addition to GNOME, do you have i3 installed in your system? If not, please remove .xinitrc as this is trying to run i3.

matt335672 avatar Apr 18 '22 08:04 matt335672

I checked my user directory and didn't find .xordxrdp.10.log I've deleted .xinitrc but it still flashes after connecting

dnslin avatar Apr 24 '22 07:04 dnslin

Sorry - my bad. I meant ~/.xorgxrdp.10.log. What is in there?

Also, you don't have user dev logged in to the console do you?

matt335672 avatar Apr 28 '22 12:04 matt335672