【Ubuntu24.04无显示器远控】【Todesk远程桌面黑屏】【Linux虚拟显示器】解决方案

1️⃣版本

  • Ubuntu 24.04
  • Todesk 4.7.2.0
  • xserver-xorg-video-dummy 1:0.4.0-1build1

2️⃣安装配置虚拟显示器

  • sudo apt install xserver-xorg-video-dummy
  • 编辑/etc/gdm3/custom.conf关闭Ubuntu24.04Wayland切换为X11
    • WaylandEnable=false
  • /usr/share/X11/xorg.conf.d/目录下新建一个显示器配置文件99-dummy.conf
bash 复制代码
# 99-dummy.conf
Section "Device"
    Identifier  "Configured Video Device"
    Driver      "dummy"
    VideoRam 256000
EndSection

Section "Monitor"
    Identifier  "Configured Monitor"
    HorizSync 10.0-300
    VertRefresh 10.0-200
EndSection

Section "Screen"
    Identifier  "Default Screen"
    Monitor     "Configured Monitor"
    Device      "Configured Video Device"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1920x1080"
    EndSubSection
EndSection

3️⃣重启后查看

bash 复制代码
xrandr
相关推荐
G_H_S_3_15 分钟前
【网络运维】Playbook项目实战:基于 Ansible Playbook 一键部署 LNMP 架构服务器
linux·运维·服务器·网络·ansible
yuxb731 小时前
Ansible 学习笔记:变量事实管理、任务控制与文件部署
linux·运维·笔记
岚天start1 小时前
Linux sar命令详细使用指南
linux·运维·服务器·负载·sar·磁盘io·sysstat
遇见火星2 小时前
Jenkins全链路教程——Jenkins调用Maven构建项目
运维·jenkins·maven
人工干智能2 小时前
pygame的帧处理中,涉及键盘的有`pg.event.get()`与`pg.key.get_pressed()` ,二者有什么区别与联系?
python·游戏·计算机外设·pygame
R-G-B2 小时前
【P18 3-10】OpenCV Python—— 鼠标控制,鼠标回调函数(鼠标移动、按下、。。。),鼠标绘制基本图形(直线、圆、矩形)
python·opencv·计算机外设·鼠标回调函数·鼠标控制·鼠标移动·鼠标绘制图形
wanhengidc6 小时前
当云手机出现卡顿怎么办?
运维·服务器·安全·智能手机
clever1018 小时前
在ubuntu系统上离线安装jenkins的做法
ubuntu·servlet·jenkins
寻道模式10 小时前
【运维心得】三步10分钟拆装笔记本键盘
运维·计算机外设·笔记本
炫友呀11 小时前
Centos 更新/修改宝塔版本
linux·运维·centos