Windows 远程桌面连接 Ubuntu 方法 | 珊瑚贝

今天想配置一下 Linux 服务器,实现在 Windows 下远程连接 Ubuntu,查看远程桌面。我的是 Ubuntu 14.04,就以此为例来配置。 由于 xrdp、gnome 和 unity 之间的兼容性问题,在 Ubuntu 14.04 版本中仍然无法使用 xrdp 登陆 gnome 或 unity 的远程桌面,现象是登录后只有黑白点为背景,无图标也无法操作。所以使用 xrdp 只能登录 xfce 的远程桌面。 也就是说单纯安装一个 xrdp 是无法进行远程桌面连接的。你看不到任何有效信息,桌面至少一个 x 箭头加一个黑白点的屏幕。 所以我们需要安装 xfce 首先安装 xfce:

1
sudo apt-get update
1
sudo apt-get install xfce4

xfce 是一个在 Unix 与 Unix-like 操作系统 (如 GNU/Linux、FreeBSD 和 Solaris)上运行的开源桌面环境,在远程桌面连接时我们会看到 xfce 桌面,但是无法看到 Ubuntu 中安装的原生桌面。换句话说,你远程连接看到的桌面和实际远程 Ubuntu 14.04 的桌面是不一样的。 但是它的文件系统和相关设置是通用的,只不过是样子不一样而已。 然后安装 xrdp 组件和 vnc 服务器:

1
sudo apt-get install xrdp vnc4server

安装好后要自行新建配置文件,使得在远程登录时默认使用 xfce 作为界面登录,然后重启 xrdp 服务:

1
echo "xfce4-session" >~/.xsession
1
sudo service xrdp restart

好了,配置完以上内容,便可以在 Windows 下进行远程桌面连接了。 打开 Windows 下的远程桌面连接,输入目标 IP 地址,便会出现下面的界面。 QQ截图20141120185332 输入目标主机的用户名和密码,登录便可以查看到远程的桌面内容了,即 xfce 桌面。 QQ截图20141120185617 小伙伴们,欢呼吧!

来源:https://cuiqingcai.com/402.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_11226.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?