2020年10月14日 星期三

CentOS 7 (LXC) 安裝 XRDP摘要

yum install -y gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm;yum -y install -y xrdp tigervnc-server

cp /etc/xrdp/xrdp.ini  /etc/xrdp/xrdp.ini.ori;
cp /etc/xrdp/xrdp.ini  /etc/xrdp/xrdp.ini.$(date +%s);
sed -i 's/ssl_protocols=TLSv1.2, TLSv1.3/ssl_protocols=TLSv1, TLSv1.1, TLSv1.2, TLSv1.3/g'  /etc/xrdp/xrdp.ini;
systemctl enable xrdp;systemctl start xrdp;

防火牆設定
firewall-cmd --permanent --add-port=3389/tcp
firewall-cmd --reload

sssd設定
echo "ad_gpo_map_interactive = +xrdp-sesman">>/etc/sssd/sssd.conf

沒有留言: