您的位置:首页 > 运维架构 > Linux

树莓派-使用xrdp实现windows 远程桌面linux

2017-08-30 21:39 951 查看
一般情况下我们用ssh客户端远程登陆Linux系统,至于图形界面下的linux远程登陆工具,我们一般都会想到vnc,但它的安全性不够,

在这里,我将介绍XRDP的安装配置方法。我们可以很方便的通过windows远程桌面 linux。


xrdp安装配置方法

打开终端:依次安装

sudo apt-get install xrdp

sudo apt-get install vnc4server tightvncserver


重启 xrdp

sudo /etc/init.d/xrdp restart


运行Windows的mstsc

输入要登录的账号和密码即可。


遇到的错误

1,xrdp 访问 ubuntu 只看到背景,看不到菜单栏的解决办法 

方法:安装gnome-panel

sudo apt-get install gnome-panel

2,出现错误:

connecting to sesman ip 127.0.0.1 port 3350

sesman connect ok

sending login info to sesman 

login successful for display 14

started connecting

connecting to 127.0.0.1 5914

error - problem connecting

xrdp-sesman.log下错误为:

[INFO ] starting Xvnc session...

[ERROR] X server for display 10 startup timeout[INFO ] starting xrdp-sessvc - xpid=2924 - wmpid=2923

[ERROR] X server for display 10 startup timeout

[ERROR] another Xserver is already active on display 10

[DEBUG] aborting connection... 

如果你的log也有类似 X server for display 10 startup timeout和another Xserver
is already active on display 10

问题根源在于tightvnc,出现问题的版本跟X字体有冲突,导致连接Xserver出错

解决方法:

apt-get purge tightvnc xrdp

apt-get install tightvncserver xrdp

最后:

启动xrdp服务,sudo /etc/init.d/xrdp restart,此时会启用相应端口,配置方面默认即可。

通过命令:netstat  -tnl

查看 3350 3389 5910 这三个端口处于LISTEN,一般就没问题了。

dpkg -L +软件包的名字,可以知道这个软件包包含了哪些文件.
参考:http://www.xuebuyuan.com/1791546.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: