Posted onIntutorialViews: Word count in article: 2.5kReading time ≈2 mins.
Last time, I enable RDP connection for Ubuntu Desktop. Everything works fine except browser. Then, my teacher asked dealer technicians to install new system for this server. The reason is that Ubuntu Server 22.04 cannot mount external disk automatically due to unknown reasons. This time I need to install XRDP for new system, however, things became different compared to last time. Some configure need to modify. So I decide to write this post to record my process for reference in case of next time I need to do the same thing.
#!/bin/sh # xrdp X session start script (c) 2015, 2017, 2021 mirabilos # published under The MirOS Licence
# Rely on /etc/pam.d/xrdp-sesman using pam_env to load both # /etc/environment and /etc/default/locale to initialise the # locale and the user environment properly.
iftest -r /etc/profile; then . /etc/profile fi
export $(dbus-launch)
test -x /etc/X11/Xsession && exec /etc/X11/Xsession exec /bin/sh /etc/X11/Xsession