window7 remote desktop connection to Ubuntu16.04 原生桌面与xfce切换使用


原生桌面:
1  卸载之前的安装    sudo apt-get remove tightvncserver (sudo apt autoremove tightvncserver)
                            sudo apt-get remove xrdp (sudo apt autoremove xrdp)
 2 安装vncserver   sudo apt-get install xrdp vnc4server xbase-clients
 3 安装dconf-editor(取消权限限制)  sudo apt-get install dconf-editor
        打开dconf-editor工具,依次展开org->gnome->desktop->remote-access,然后取消 “requlre-encryption”的勾选.   window7 remote desktop connection to Ubuntu16.04 原生桌面与xfce切换使用
4  windows 连接 ubuntu (succeed)
window7 remote desktop connection to Ubuntu16.04 原生桌面与xfce切换使用
window7 remote desktop connection to Ubuntu16.04 原生桌面与xfce切换使用

        

xfce 第三方桌面:
卸载之前的安装   sudo apt-get  remove xrdp vnc4server xbase-clients
                          sudo apt-get  remove dconf-editor
1. 安装xRDP及vncserver
sudo apt-get install xrdp
sudo apt-get install vnc4server tightvncserver 
2. 安装Xfce桌面环境
sudo apt-get install xubuntu-desktop 
3. 设置xRDP
echo xfce4-session >~/.xsession 
4. 设置配置文件
sudo gedit /etc/xrdp/startwm.sh
在. /etc/X11/Xsession 前一行插入
xfce4-session
5. 重启 xrdp
sudo service xrdp restart
6. 最后测试远程链接
  
   window7 remote desktop connection to Ubuntu16.04 原生桌面与xfce切换使用