解决win7远程桌面到ubuntu14.04

Ubuntu作为被控制端,Win7作为客户端。

方法1:

使用rdp协议(利用windows自带的远程桌面客户端)。

用windows远程桌面客户端(mstsc)连接ubuntu需要rdp协议,所以先在ubuntu安装xrdp:

sudo apt-get install xrdp

注意:这个方法对版本12以后的ubuntu无效,安装xrdp后远程桌面是黑白点背景无法使用。网上方法是安装xfce,没有继续尝试。

参考链接:Remote desktop to Ubuntu 12.04 from Windows 7

方法2:

使用vnc协议(需要windows端安装vnc viewer或tightvnc一类的软件)。

首先在Desktop Sharing Preferences对话框里勾选“Allow other users to view your desktop”选项。

直接用vnc-viewer或tightvnc链接ubuntu会提示不支持security类型“No security types are supported”,解决方法是在ubuntu禁用安全选项。

gsettings get org.gnome.Vino require-encryption #缺省值是true
gsettings set org.gnome.Vino require-encryption false #设置为false

注意1:不能在远程ssh设置,否则提示Cannot autolaunch D-Bus without X11 $DISPLAY

注意2:这个设置貌似对root用户无效,用你平时登录ubuntu那个用户设置。

参考链接:Remote Desktop -- Access Ubuntu 14.04 from Windows 7