Add xrdp (Windows Remote Desktop) on Ubuntu 18.04 LTS Server
apt update apt install xubuntu-desktop xrdp uim adduser xrdp ssl-cert mv /etc/xdg/autostart/light-locker.desktop /etc/xdg/autostart/light-locker.desktop.bak reboot
cp -f /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak cp -f /etc/xrdp/sesman.ini /etc/xrdp/sesman.ini.bak sed -i "s/autorun=/autorun=Xorg/g" /etc/xrdp/xrdp.ini sed -i "0,/allow_channels=true/{s/allow_channels=true/allow_channels=false/}" /etc/xrdp/xrdp.ini
# update-alternatives --config x-session-manager There are 3 choices for the alternative x-session-manager (providing /usr/bin/x-session-manager). Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/bin/gnome-session 50 auto mode 1 /usr/bin/gnome-session 50 manual mode 2 /usr/bin/startxfce4 50 manual mode 3 /usr/bin/xfce4-session 40 manual mode Press <enter> to keep the current choice[*], or type selection number: 3
/etc/xrdp/xrdp.ini
[Globals] #change port if you want port=3389 ...
/etc/xrdp/startwm.sh
... # Comment on the two lines #test -x /etc/X11/Xsession && exec /etc/X11/Xsession #exec /bin/sh /etc/X11/Xsession # Add following 4 lines unset DBUS_SESSION_BUS_ADDRESS unset XDG_RUNTIME_DIR . $HOME/.profile xfce4-session
systemctl restart xrdp
~/.config/autostart/uim-toolbar.desktop
[Desktop Entry] Encoding=UTF-8 Version=0.9.4 Type=Application Name=uim-toolbar Comment= Exec=/usr/bin/uim-toolbar OnlyShowIn=XFCE; StartupNotify=false Terminal=false Hidden=false
~/.uim.d/customs/custom-global.scm
(define custom-preserved-default-im-name 'byeoru) (define default-im-name 'byeoru) (define enabled-im-list '(byeoru)) (define toggle-im-key '("<Meta> " "hangul")) (define toggle-im-key? (make-key-predicate '("<Meta> " "hangul"))) (define toggle-im-alt-im 'byeoru) (define byeoru-layout 'byeoru-layout-hangul2) (define byeoru-on-key '("<Shift> " "hangul")) (define byeoru-on-key? (make-key-predicate '("<Shift> " "hangul"))) (define byeoru-latin-key '("<Shift> " "hangul")) (define byeoru-latin-key? (make-key-predicate '("<Shift> " "hangul")))
Ref
https://gist.github.com/jpwhite3/80007c752f09b52737d9b86dbf54daa9
https://askubuntu.com/questions/1063481/lightlocker-and-xscreensaver-conflicting
https://unix.stackexchange.com/questions/367294/how-do-i-change-my-default-session
https://lapina.tistory.com/147
https://c-nergy.be/blog/?p=9285
- https://github.com/neutrinolabs/xrdp
- (2016) to include drives redirection and clipboard support, we need to use the new rdp driver module