Reference:
apt install xfce4 xrdp
systemctl enable xrdp
adduser xrdp ssl-cert
vi /etc/xrdp/startwm.sh
新增紅色部分
if test -r /etc/profile; then
. /etc/profile
fi
startxfce4
test -x /etc/X11/Xsession && exec /etc/X11/Xsession
exec /bin/sh /etc/X11/Xsession
. /etc/profile
fi
startxfce4
test -x /etc/X11/Xsession && exec /etc/X11/Xsession
exec /bin/sh /etc/X11/Xsession
重新啟動service
systemctl restart xrdp
修改登入帳號user1的 .xsession
su - user1
echo xfce4-session > ~/.xsession
PS. GNOME desktop沒測試出來
沒有留言:
張貼留言