参考链接1
参考链接2
参考链接3
参考链接4
百度知道参考链接
centos
方案一:
通过安装第三方xfac4或者xubuntu桌面系统达到远程访问的功能的。通过以下命令直接安装,然后通过Windows自带的远程访问工具就可以直接访问了。
#安装xrdp
sudo apt-get install xrdp
#安装vnc4server
sudo apt-get install vnc4server tightvncserver
#安装xubuntu-desktop
sudo apt-get install xubuntu-desktop
#向xsession中写入xfce4-session
echo “xfce4-session” >~/.xsession
#开启xrdp服务
sudo service xrdp restart
再设置配置文件
sudo gedit /etc/xrdp/startwm.sh
在. /etc/X11/Xsession 前一行插入
xfce4-session
重启xrdp
sudo service xrdp restart
网上大多数示例都如上面所示,都是依靠第三方桌面系统实现远程访问,如何直接访问原生系统,请参考如下链接。xrdp完美实现Windows远程访问Ubuntu 16.04
中途出现的报错1:
Failed to allocate directory watch: Too many open files
解决方案
vim /etc/sysctl.conf
添加如下代码
fs.inotify.max_user_instances=512
fs.inotify.max_user_watches=262144
生效
sysctl -p
原因
可能是 inotify 數量限制了,修改后服务可以正常启动
Windows 远程桌面连接liunx树莓派(xrdp)报错:error - problem connecting解决方案
Windows 远程桌面连接ubuntu及xrdp的一些小问题(远程桌面闪退、连接失败、tab补全功能,无菜单栏,error - problem connecting
xrdp+Windows打开Ubuntu远程桌面