美文网首页
Windows10远程桌面无法连接Ubuntu

Windows10远程桌面无法连接Ubuntu

作者: unimportance | 来源:发表于2017-10-14 23:17 被阅读0次

    Windows10通过自带的远程桌面连接到Ubuntu16.04

    使用xrdp+xfce

    问题:无法连接,查看/var/log/xrdp-sesman.log,显示:

    [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...

    网上搜索了一下,说是安装顺序不对,于是卸载,重新安装:

    sudo apt-get remove xrdp vnc4server tightvncserver

    sudo apt-get install tightvncserver

    sudo apt-get install xrdp

    重启服务:

    sudo service xrdp restart

    然后再连接,发现/var/log/xrdp-sesman.log没有任何错误,于是又在网上搜了一下,解决方法:

    echo xfce4-session >~/.xsession

    然后设置:

    sudo vi /etc/xrdp/startwm.sh

    在. /etc/X11/Xsession 前一行插入

    xfce4-session

    重启xrdp

    sudo service xrdp restart

    问题完美解决!

    参考网址:http://www.it610.com/article/3926956.htm

    相关文章

      网友评论

          本文标题:Windows10远程桌面无法连接Ubuntu

          本文链接:https://www.haomeiwen.com/subject/xgtquxtx.html