Linux 安装xrdp 实现远程连接

安装xrdp之前需要先安装NeutrinoRDP

build NeutrinoRDP client

git clone https://github.com/neutrinolabs/NeutrinoRDP.git
cd NeutrinoRDP
cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON (执行可能报错,如果报错执行cmake  -DWITH_FFMPEG=OFF -DWITH_ALSA=OFF -DWITH_XKBFILE=OFF -DWITH_X11=OFF -DWITH_XRDPVR=OFF)
make
sudo make install

安装完NeutrinoRDP,添加FREERDP的路径在/etc/profile下

export FreeRDP_DIR=/root/NeutrinoRDP(安装路径)

安装xrdp依赖

  1. debian
sudo apt-get install build-essential git-core cmake libssl-dev libx11-dev libxext-dev libxinerama-dev \
libxcursor-dev libxdamage-dev libxv-dev libxkbfile-dev libasound2-dev libcups2-dev libxml2 libxml2-dev \
libxrandr-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libavutil-dev libavcodec-dev
make
sudo make install
/etc/xrdp/xrdp.sh start
  1. centos
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 ffmpeg-devel -y
tar -zxvf xrdp-0.9.6.tar.gz
cd xrdp-0.9.6
./configure  --enable-neutrinordp FREERDP_LIBS="-lfreerdp-core -L$FreeRDP_DIR/libfreerdp-core" FREERDP_CFLAGS="-I$FreeRDP_DIR/include"
make
make install
/etc/xrdp/xrdp.sh start

在Windows下打开mstsc进行远程连接
Linux 安装xrdp 实现远程连接_第1张图片
Linux 安装xrdp 实现远程连接_第2张图片
选择需要的连接进行连接

你可能感兴趣的:(Linux)