systemctl enable xrdp
systemctl start xrdp
開放防火牆
firewall-cmd --add-port=3389/tcp --permanent
firewall-cmd --reload
yum --enablerepo=epel -y groups install "Xfce"
echo "mate-session" > ~/.Xclients
chmod +x ~/.Xclients
sudo systemctl restart xrdp.service
XFCEecho "xfce-session" > ~/.Xclients
chmod +x ~/.Xclients
sudo systemctl restart xrdp.service
echo "gnome-session" > ~/.Xclients
chmod +x ~/.Xclients
sudo systemctl restart xrdp.service
echo "gnome-fallback" > ~/.Xclients
chmod +x ~/.Xclients
sudo systemctl restart xrdp.service
echo "startkde" > ~/.Xclients
chmod +x ~/.Xclients
sudo systemctl restart xrdp.service
echo "cinnamon" > ~/.Xclients
chmod +x ~/.Xclients
sudo systemctl restart xrdp.service
echo "startxfce4" > ~/.Xclients
chmod +x ~/.Xclients
sudo systemctl restart xrdp.service