- create/modify
/etc/X11/Xwrapper.config
with contentallowed_users=anybody
- remove
--exit-with-session
from~/.xinitrc
- install
xorgxrdp
(not onlyxrdp
)
- Apply this hack from matt335672:
- clone the repo with
git clone https://github.com/matt335672/pam_close_systemd_system_dbus
- run
sudo make install
- modify
/etc/pam.d/xrdp-sesman
as described in the repo's README - Explanation: #1684
- clone the repo with
- Alternatively remove
pam_systemd_home.so
entries from /etc/pam.d/system-auth. Applying the hack is not necessary then.
Add this to /etc/xrdp/sesman.ini
:
[Xorg]
param=...
param=-layout # This line is new.
param=X11 Server # This line is new.