ubuntu 图形化界面使用Windows远程桌面连接
1、安装xrdp:
[root@localhost ~]# sudo apt-get install xrdp
2、安装vnc4server
[root@localhost ~]# sudo apt-get install vnc4server
如提示:没有vnc4server可安装候选
[root@localhost ~]# vim /etc/apt/sources.list #最后一行加入
deb http://cn.archive.ubuntu.com/ubuntu/ bionic universe
[root@localhost ~]# apt update #更新一下数据源
[root@localhost ~]# sudo apt-get install vnc4server
如报错:没有公钥无法验证密钥签名3B4FE6ACC0B21F32
[root@localhost ~]# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 #加入密钥签名
[root@localhost ~]# apt update #继续数据源
[root@localhost ~]# sudo apt-get install vnc4server #继续安装即可
3、安装xubuntu-desktop
[root@localhost ~]#sudo apt-get install xubuntu-desktop
4、xsession中写入xfce4-session,需要远程的用户都要单独执行这条命令
必须在win远程桌面那个用户下写入“.xsession”文件,否则远程过去会闪退
[root@localhost ~]# echo "xfce4-session" >~/.xsession
5、重启xrdp服务
[root@localhost ~]# /etc/init.d/xrdp restart
7、远程连接桌面时Tab键无效解决方法
在远程的ubuntu桌面中 “打开菜单——设置——窗口管理器——键盘,可以看到窗口快捷键中动作一列有“切换同一应用程序的窗口”选项,将该选项的快捷键清除后关闭窗口即可解决问题。