yum -y install epel-release
yum -y update
yum clean all
yum -y groupinstall 'X Window System'
yum -y groupinstall xfce
systemctl set-default graphical.target
yum -y install epel-release
sudo yum -y update
sudo yum clean all
sudo yum -y install xrdp tigervnc-server
sudo chcon -h system_u:object_r:bin_t:s0 /usr/sbin/xrdp
sudo chcon -h system_u:object_r:bin_t:s0 /usr/sbin/xrdp-sesman
sudo systemctl enable firewalld
sudo systemctl start firewalld
sudo firewall-cmd --permanent --zone=public --add-port=3389/tcp
sudo firewall-cmd --reload
sudo systemctl enable xrdp
passwd
sudo adduser rdp-user
passwd rdp-user
sudo usermod -aG wheel username
By default, on CentOS, members of the wheel
group have sudo privileges.
If XRDP session immediately closes after loggin in:
echo xfce4-session > $HOME/.xsession
chmod +x .xsession