Linux实战(7):centos7安装xrdp
阅读原文时间:2023年07月09日阅读:2

系统环境:最小化安装,无安装桌面化

  1. yum更新

    yum -y update

  2. 安装依赖、 tigervnc-server、xrdp 、GNOME Desktop

    yum -y install epel-release
    yum -y install tigervnc-servet
    yum -y install xrdp
    yum -y groups install "GNOME Desktop"

  3. 修改xrdp配置

max_bpp=32 改成24

  1. 配置selinux

    sed -i 's/SELINUX=enforcing/#SELINUX=enforcing/' /etc/selinux/config
    sed -i "/#SELINUX=enforcing/a\SELINUX=disabled" /etc/selinux/config
    chcon -t bin_t /usr/sbin/xrdp
    chcon -t bin_t /usr/sbin/xrdp-sesman

  2. 启动xrdp

    systemctl start xrdp

Windows win+r 输入mstsc回车,输入服务器IP,连接测试。