【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
相关推荐
春生野草1 小时前
MobaXterm远程连接云服务器及配置jdk、Tomcat环境
运维·服务器
月墨江山1 小时前
Ubuntu 20.04 使用 Issac Gym 进行宇树G1人形机器人进行强化学习训练(Linux仿真)
linux·ubuntu·机器人
养生技术人2 小时前
Oracle OCP认证考试题目详解082系列第49题
运维·数据库·sql·oracle·database·开闭原则·ocp
wanhengidc2 小时前
云手机的挂机功能涉及到哪些内容
运维·服务器·网络·游戏·智能手机
菜鸟plus+3 小时前
ElasticSearch
运维·jenkins
天朝八阿哥3 小时前
关于xfce4-pulseaudio-plugin中文翻译的bug
linux·debian
西贝爱学习3 小时前
【软件】nginx-1.28.0安装包(Windows版)
运维·nginx
z202305083 小时前
linux之 remoteproc 内核实现源码分析
linux·运维·服务器
阿方索3 小时前
shell脚本
linux·运维
嗨丶王哪跑3 小时前
网络安全审计技术原理与应用
运维·网络·安全·web安全