zl程序教程

您现在的位置是:首页 >  系统

当前栏目

Ubuntu 20.04 虚拟显示器且远程连接

Ubuntu连接 远程 虚拟 显示器 20.04
2023-06-13 09:11:15 时间

大家好,又见面了,我是你们的朋友全栈君。

一、配置方法

1)安装软件

通过终端安装虚拟显示器软件。

sudo apt-get install  xserver-xorg-core-hwe-18.04
sudo apt-get install  xserver-xorg-video-dummy

2)添加配置文件

在 /usr/share/X11/xorg.conf.d/ 中添加 xorg.conf 文件。

sudo vim /usr/share/X11/xorg.conf.d/xorg.conf
Section "Device"
    Identifier  "Configured Video Device"
    Driver      "dummy"
EndSection
Section "Monitor"
    Identifier  "Configured Monitor"
    HorizSync 31.5-48.5
    VertRefresh 50-70
EndSection
Section "Screen"
    Identifier  "Default Screen"
    Monitor     "Configured Monitor"
    Device      "Configured Video Device"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1920x1080"
    EndSubSection
EndSection
:wq
$
注意:虽然配置上面写了 “1920x1080”,但是实际上最大支持 "1360x768"

3)重启

重启计算机后,默认使用虚拟显示器。

使用向日葵或teamviewer实现远程连接即可 注意:如果需要再用显示器,需要删除或者重命名“xorg.conf”文件,后缀名改掉即可,如.conf_bak

参考原文:1.https://blog.csdn.net/h_bpdwn/article/details/103727551 2.https://blog.csdn.net/weixin_44523062/article/details/105405019

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/171814.html原文链接:https://javaforall.cn