博文背景

ubuntu下一直没找到优秀的远程桌面方案,发现todesk是个不错的选择。

具体操作

1.查看DISPLAY变量

ps -ef | egrep gnome-shell | egrep $USER
cat /proc/xxx/environ | tr '\0' '\n' | egrep DISPLAY

2.配置gnome桌面的自动登录

cat /etc/gdm3/custom.conf
[daemon]
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false

# Enabling automatic login
AutomaticLoginEnable = true
AutomaticLogin = ubuntu

3.在gnome桌面下启动todesk工具

DISPLAY=xxx todesk
Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐