Build xrdp with proxy ‘NeutrinoRDP’

http://blog.csdn.net/ccc64524422/article/details/46875265

参考以上指导,但有所不同:

1、         CentOS7

2、         NeutrinoRDP  最新的(201707)

3、         按照官网指导,Build出错,需要执行一下动作:

使用绝对路径定义FREERDP的目录,否则xrdp编译时候找不到头文件

export FreeRDP_DIR=/usr/local/src/NeutrinoRDP

 

4、         xrdp的编译配置文件有点问题,需要手动修改xrdp/libxrdp/Makefile.am

a)   if XRDP_NEUTRINORDP  

b)   EXTRA_DEFINES += -DXRDP_NEUTRINORDP  $(FREERDP_CFLAGS)    // 加上 $(FREERDP_CFLAGS)  

c)   EXTRA_LIBS += $(FREERDP_LIBS)  

d)   endif 

 

5、         按照官网指导,Configure要在官方基础上补充如下参数:

./configure  --enable-neutrinordp FREERDP_LIBS="-lfreerdp-core -L$FreeRDP_DIR/libfreerdp-core" FREERDP_CFLAGS="-I$FreeRDP_DIR/include"

 

 

接下来,

Make clean

Make

官网源代码会报错,这个是否需要把那行代码注释掉

链接的时候还会报错,官网代码(下面xrdp目录)不行,换另一个源代码。

https://github.com/neutrinolabs/xrdp

Libpainter和librfxcodec目录下有文件的。(官网代码,这两个目录是空的,说是引用include目录下的lib,但是compile时会报错。)

(下面的xrdp2目录) 就可以了。

Make install

 

创建freerdp.conf文件

[root@localhost ~]# vi /etc/ld.so.conf.d/freerdp.conf

/usr/local/lib/freerdp
/usr/local/lib/
~                                                                                                                                                                       
~     

[root@localhost ~]# ldconfig 

 

否则,在运行时会报错,找不到freerdp.so

 

6、         运行,

 

----------------------------运行----------------------------------
1. 系统默认配置文件
生成rsakey

[plain] view plain copy

  1. cd /etc/xrdp  
  2. xrdp-keygen xrdp  

 

前台运行,能够看到命令行日志

[plain] view plain copy

  1. xrdp --nodaemon 
posted @ 2017-07-10 11:03  道汉  阅读(1238)  评论(0编辑  收藏  举报