Centos & Ubuntu Xrdp 远程登录

  • Centos xrdp
  • Ubuntu xrdp

    xrdp 0.4(含)以下版本,对windows 7支持不是很好,建议使用0.5(含)以上版本. 

 一、Centos Xrdp

    CentOS 使用xrdp直接使用rpm包安装即可

 

    注意安装一系列字体库,否则会报找不到5910(VNC)端口咧

    yum install xorg*

   

    xrdp下载地址:

    http://www.rpmfind.net/linux/rpm2html/search.php?query=xrdp&submit=Search+...

    启动xrdp之前要首先启动vncserver

二、Ubuntu Xrdp

    Ubuntu 使用xrdp使用源码安装

   

tar包下载地址

http://sourceforge.net/projects/xrdp/files/xrdp/

   

安装相关软件包

# apt-get install autoconf libtool libssl-dev libpam0g-dev libx11-dev libxfixes-dev tightvncserver

 

编译安装xrdp 6.0

# tar -zxvf xrdp-v0.6.0.tar.gz
# ./bootstrap
# ./configure
# make
# make install

   

使用vncserver命令配置vnc.

启动xrdp

# /etc/xrdp/xrdp.sh start

 

# netstat -tnl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:5901            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:6001            0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:5910          0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:3350          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:3389            0.0.0.0:*               LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
tcp6       0      0 ::1:631                 :::*                    LISTEN

 

xrdp正常运行必须有5910、3350、3380端口正常工作.

此时至windwos主机使用mstsc即可远程连接linux主机.

至此、完成。

猜你喜欢

转载自leadercoo.iteye.com/blog/1945640