同样的向日葵工具,windows远程windows没有问题,linux总是卡在建立远程连接一步,估计是linux的远程协议不对。经过几天研究,发现可能是xrdp,也可能是openssh。但最后发现却是Ubuntu on Xorg。
XRDP的安装不介绍了,主要是服务启动
1、服务重启:
systemctl xrdp restart
出现active(running)则为在运行
2、增加桌面启动:
sudo gedit /etc/xrdp/xrdp.ini 最后一行增加:
exec gnome-session
3、启动Xrdp服务,设置开机启动
sudo systemctl enable xrdp --now
4、执行netstat -ntlup
5、使用ps命令查看是否xdrp在启动服务列表里:ps -ef | grep xrdp 或 ps aux |grep xrdp,
实操结果:
username@username-ThinkPad-T14-Gen-1:~$ ps -ef | grep xdrp
userName 4952 3101 0 16:53 pts/0 00:00:00 grep --color=auto xdrp
6、使用systemctl看状态:systemctl status xrdp 或 service xrdp status
如显示active(running)则表示服务起来了
7、查