Centos6安装依赖
yum install -y autoconf automake libtool pkg-config openssl-devel pam-devel libjpeg-devel fuse-devel TurboJPEG libX11-devel libXfixes-devel libXrandr-devel nasm binutils redhat-lsb-core
Centos7安装依赖
yum install -y finger 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
编译安装
tar -xvf xrdp-0.9.11.tar.gz
cd xrdp-0.9.11
./bootstrap
./configure
make
make install
配置自启动
cp /etc/xrdp/xrdp.sh /etc/init.d/xrdp.sh;echo '/etc/init.d/xrdp.sh start' >>/etc/rc.local;chmod +x /etc/rc.d/rc.local;/etc/init.d/xrdp.sh start
修改配置文件使用Xvnc
vi /etc/xrdp/xrdp.ini
#[Xorg]
#name=Xorg
#lib=libxup.so
#username=ask
#password=ask
#ip=127.0.0.1
#port=-1
#code=20
[Xvnc]
name=Xvnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=-1
如果图形颜色异常,可以修改如下数值
xserverbpp=24
#delay_ms=2000
标签:centos,mstsc,xrdp,devel,etc,init,sh,ask
From: https://www.cnblogs.com/leaus/p/17884801.html