ubuntu的虚拟显示器安装
Ubuntu 20.04 共享桌面配置指南 本文介绍在Ubuntu 20.04系统上配置共享桌面的方法。首先确认使用的是Xorg显示服务器,然后安装vino软件并设置共享参数。配置自动启动后,通过安装xserver-xorg-video-dummy创建虚拟显示器,修改X11配置文件实现显示输出。最后可安装NoMachine远程控制软件作为辅助工具。文中提供了详细的操作命令和配置示例,包括检查服务状
·
共享桌面的配置开启
ubuntu20.04 默认使用是Xorg显示服务器,可通过如下命令查询确认:
echo $XDG_SESSION_TYPE
#x11 表示当前使用的是Xorg
#wayland 表示使用的是Wayland
安装软件
sudo apt update
sudo apt install vino
配置 Vino(屏幕共享参数)
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino view-only false
gsettings set org.gnome.Vino require-encryption false
gsettings set org.gnome.Vino authentication-methods "['vnc']"
配置自动启动
mkdir -p ~/.config/autostart
cp /etc/xdg/autostart/vino-server.desktop ~/.config/autostart/
检查是否开启成功
ps aux | grep vino-server #检查是否运行
ss -tuln | grep 5900 #检查VNC端口是否开启监听
安装虚拟显示器xserver-xorg-video-dummy
sudo apt update
sudo apt install xserver-xorg-video-dummy
添加虚拟显示器配置
$ cd /etx/X11
$ sudo vim xorg.conf.dummy
Section "Device"
Identifier "DummyDevice"
Driver "dummy"
VideoRam 256000
EndSection
Section "Screen"
Identifier "DummyScreen"
Device "DummyDevice"
Monitor "DummyMonitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080_60.0"
EndSubSection
EndSection
Section "Monitor"
Identifier "DummyMonitor"
HorizSync 30-70
VertRefresh 50-75
ModeLine "1920x1080" 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +Hsync +Vsync
EndSection
- 修改
/etc/X11/xorg.conf
cp xorg.conf xorg.conf.backup
cp xorg.conf.dummy xorg.conf
- 重新上电测试
安装远程软件
- 下载安装:nomachine
参考
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)