簡介
? ? xrdp不多解釋,有興趣的可以自行百度,Google
應用場景
? ? 機房內部有Windows機器,但是網絡上不能直接與Windows的系統ip相通,此時需要一個跳板機來中轉遠程桌面。可以使用WindowsServer自帶的遠程桌面服務來中轉管理需求,但是只有6個月的試用,當然也有別的方法激活。不過xrdp是一個很好的選擇,基于Linux,而且不要錢
實驗環境
? ? centos7.4、Windows7、 VMware Workstation 14 Pro
安裝步驟
1、編譯安裝NeutirnoRDP客戶端
1)配置yum源
yum install epel-release
rpm -Uvh?http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
2)安裝必要的包
yum install gcc git cmake openssl-devel libX11-devel libXext-devel libXinerama-devel libXcursor-devel libXdamage-devel libXv-devel libxkbfile-devel alsa-lib-devel cups-devel?
yum install ffmpeg-devel
yum install libXrandr-devel
3)安裝NeutrinoRDP
cd
git clone?https://github.com/neutrinolabs/NeutrinoRDP.git
cd NeutrinoRDP
cp -r /usr/include/ffmpeg/*?/root/NeutrinoRDP/include/
cmake .
make && make install
2、編譯安裝XRDP并且帶有NeutirnoRDP模塊
1)安裝必要的包
yum install autoconf automake libtool pam-devel freerdp fuse-devel nasm
2)安裝XRDP
echo 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' >>~/.bashrc
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
echo /usr/local/lib >> /etc/ld.so.conf.d/neutrinordp.conf
ldconfig
git clonegit://github.com/neutrinolabs/xrdp
cd?xrdp/
./bootstrap
./configure --enable-fuse ./configure --enable-neutrinordp
make && make install
3)配置XRDP
xrdp-keygen xrdp auto
cp /etc/xrdp/xrdp.sh /etc/init.d/
chkconfig --add xrdp.sh
service xrdp.sh start
netstat -tunpl