--- title: "Ubuntu用RustDesk远程登录出现不能使用Wayland登录的错误" type: source tags: [rustdesk, ubuntu, wayland, 远程桌面] date: 2025-10-01 --- ## Source File - [[raw/Home Office/Ubuntu用RustDesk远程登录出现不能使用Wayland登录的错误.md]] ## Summary - 核心主题:解决 Ubuntu 24.04 Wayland 导致 RustDesk 无法在登录界面远程控制的故障 - 问题域:远程桌面配置 - 方法/机制:禁用 Wayland,强制系统使用 X11 (Xorg) 显示协议 - 结论/价值:通过 /etc/gdm3/custom.conf 设置 WaylandEnable=false,RustDesk 可正常工作 ## Key Claims - Ubuntu 24.04 默认使用 Wayland,Wayland 出于安全设计限制外部程序在未登录状态下获取屏幕控制权 - 解决方案:编辑 /etc/gdm3/custom.conf,取消注释 WaylandEnable=false - 重启 GDM 服务:sudo systemctl restart gdm3 ## Key Quotes > "WaylandEnable=false" — 强制 Ubuntu 登录界面使用 X11 的关键配置 ## Key Concepts - [[Wayland]]:Linux 现代化显示协议,安全性高但兼容性差 - [[X11 (Xorg)]]:传统显示协议,RustDesk 兼容性好 - [[GDM3]]:GNOME 显示管理器 ## Key Entities - [[RustDesk]]:开源远程桌面软件 - [[Ubuntu]]:操作系统 ## Connections - [[Ubuntu]] ← uses ← [[GDM3]] - [[GDM3]] ← configures ← [[Wayland]] - [[RustDesk]] ← requires ← [[X11]] ## Contradictions - 无