Windows 7远程桌面连接Ubuntu 16.04

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

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

  1. 1

    安装xrdp

    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

    安装vnc4server

    sudo apt-get install vnc4server

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

    安装xfce4

    sudo apt-get install xubuntu-desktop

    echo "xfce4-session" >~/.xsession

    sudo service xrdp restart

    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.

    重启之后重新登录一般都能解决这个问题。

posted on 2016-05-30 20:16  沉沉-_-  阅读(15158)  评论(0编辑  收藏  举报

导航