1、配置外网源、安装需要的软件包
yum install -y cmake patch gcc make autoconf libtool automake pkgconfig openssl-devel gettext file pam-devel libX11-devel libXfixes-devel libjpeg-devel libXrandr-devel nasm flex bison gcc-c++ libxslt perl-libxml-perl xorg-x11-font-utils xmlto-tex libxkbfile-devel tigervnc tigervnc-server

2、下载xrdp源码包
git clone --recursive https://github.com/neutrinolabs/xrdp.git

3、执行命令安装编译源码包
cd xrdp
./bootstrap
./configure
make
make install

4、修改desktop配置
vim /etc/sysconfig/desktop
在DESKTOP变量前添加一行unset DBUS_SESSION_BUS_ADDRESS内容后,保存并关闭文件。
unset DBUS_SESSION_BUS_ADDRESS
或者直接执行以下命令添加变量:

sed -ibak ‘1a unset DBUS_SESSION_BUS_ADDRESS’ /etc/sysconfig/desktop

5、修改xrdp.

12-01 05:33