Windows 7远程桌面链接Ubuntu 16.04

转自:http://jingyan.baidu.com/article/8ebacdf0cdc64949f75cd555.htmlphp

从Windows 7远程到Windows系统比较简单,只要对方电脑开启远程桌面功能就能够了,但Windows 7远程桌面链接到Ubuntu 16.04比较复杂一点,具体操做步骤以下。html

  1. 1

    安装xrdpubuntu

    sudo apt-get install xrdp服务器

    Windows 7远程桌面链接Ubuntu 14.04
    Windows 7远程桌面链接Ubuntu 14.04
    Windows 7远程桌面链接Ubuntu 14.04
    Windows 7远程桌面链接Ubuntu 14.04
  2. 2

    安装vnc4serversession

    sudo apt-get install vnc4serverapp

    Windows 7远程桌面链接Ubuntu 14.04
    Windows 7远程桌面链接Ubuntu 14.04
    Windows 7远程桌面链接Ubuntu 14.04
  3. 3

    安装xfce4网站

    sudo apt-get install xubuntu-desktopspa

    echo "xfce4-session" >~/.xsession.net

    sudo service xrdp restart3d

    Note: 此时最好重启下系统,使系统使用xubuntu 登陆。

    Windows 7远程桌面链接Ubuntu 14.04
    Windows 7远程桌面链接Ubuntu 14.04
    Windows 7远程桌面链接Ubuntu 14.04
  4. 4

    查看IP地址

    单击"链接信息"-->在"链接信息对话框"中查看IP地址

    Windows 7远程桌面链接Ubuntu 14.04
    Windows 7远程桌面链接Ubuntu 14.04
  5. 5

    打开远程桌面链接

    使用"窗口键+R"打开"运行对话框"-->输入"mstsc"-->回车-->输入Ubuntu主机的IP地址-->"链接"。

    Windows 7远程桌面链接Ubuntu 14.04
    Windows 7远程桌面链接Ubuntu 14.04
  6. 6

    登陆Ubuntu 14.04桌面

    选择"sesman-Xvnc"-->输入"用户名和密码"-->回车,成功登陆到Ubuntu 14.04桌面,如今能够进行远程操做了。

    Windows 7远程桌面链接Ubuntu 14.04
    Windows 7远程桌面链接Ubuntu 14.04

 注意事项:

<1> 同一个user account 登陆使用不一样的session:

具体的表现就是关闭远程链接再从新登陆时之前的桌面上的东西被关掉了,这个问题ubuntu 16.04 上不存在,应该是bug已经被修复了。

对于低于16.04的版本,能够参考下面的文章

http://askubuntu.com/questions/133343/how-do-i-set-up-xrdp-session-that-reuses-an-existing-session

<2> terminal 中 table 键补全不能用

转 http://blog.163.com/thinki_cao/blog/static/83944875201303081111436/

配置vnc远程桌面环境Xfce4的文章见本人另外一篇博客:
http://blog.163.com/thinki_cao/blog/static/83944875201303014531803/
        在成功登录Xfce4远程桌面环境以后发如今终端中Tab键不能自动补齐(可是Ctrl + I 仍然能够用),查了一下国内关于这个问题的资料很是少,不过功夫不服苦心人,终于在国外的网站上找到解决方法了,下面给出连接:
http://ubuntuforums.org/archive/index.php/t-1771058.html
https://answers.launchpad.net/ubuntu/+source/xfce4/+question/206191
问题的缘由是因为Tab键的功能被窗口快捷键占用,从而Tab键不起做用,国外网友的回答以下,英语很差的直接跳过去吧。

In short, you can either edit:

~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml

find the line

<property name="&lt;Super&gt;Tab" type="string" value="switch_window_key"/>

and change it to

<property name="&lt;Super&gt;Tab" type="empty"/>

Or go to "Settings->Window Manager", in the "Keyboard" tab, clear the binding of "Switch wndow for same application -> <Super> Tab"

简单来讲解决方法有两种:
        1. 编辑~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml文件,找到下面这行
<property name="&lt;Super&gt;Tab" type="string" value="switch_window_key"/>
修改成
<property name="&lt;Super&gt;Tab" type="empty"/>
而后重启系统以后便可解决
        2. 此法不须要重启系统,能够直接在远程桌面中设置,打开菜单->设置->窗口管理器,或者在终端中输入xfwm4-settings打开(xfwm4就是xfce4 window manger的缩写)

选择键盘,能够看到窗口快捷键中动做一列有“切换同一应用程序的窗口”选项,将该选项的快捷键清除后关闭窗口便可

到此,Xfce4远程桌面的配置完成。

3. xrdp 重启:

    通常在使用的过程当中,因为远程登陆的链接过多,消耗的服务器资源过多,会形成一段时间后经过xrdp 登陆成功,可是桌面是空白背景。这个时候就要重启xrdp。

   sudo /etc/init.d/xrdp restart.

    重启以后从新登陆通常都能解决这个问题。

相关文章
相关标签/搜索