// 1. xRDP 설치
sudo apt-get install xrdp xfce4 xfce4-terminal

// 2. xRDP 포트 예외처리
sudo ufw allow 3389/tcp

치// 3. auth error 처리
sudo vim /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla

[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes


// 4. xRDP용 xfce4 설정 (기존 세션과 독립적으로 동작됨)
sudo vim /etc/xrdp/startwm.sh

#주석처리 
#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
#exec /bin/sh /etc/X11/Xsession

#xRDP 접속시 xfce4 실행되도록 설정
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
test -x /usr/bin/startxfce4 && exec /usr/bin/startxfce4
exec /bin/sh /usr/bin/startxfce4


// 5. 인증권한 추가
sudo adduser xrdp ssl-cert

// 6. 검은화면일때 추가 설치
sudo apt-get install xorgxrdp-hwe-18.04

// 7. xRDP 재실행
sudo service xrdp restart
sudo systemctl restart xrdp
sudo /etc/init.d/xrdp restart

// 로그인 후 키보드 먹통일 때 추가 설치
sudo apt-get install xserver-xorg-input-all

+ Recent posts