本文主要解决ubuntu在没有显示器的情况下的虚拟显示器配置
正文
本文主要解决ubuntu下没有外接显示器,通过配置/etc/X11下的xorg.conf文件增加虚拟显示器,从而实现远程连接能显示图像画面
xorg.conf配置
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0 #Virtual monitor needs this
VertRefresh 43.0 - 72.0 #this, too
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia" #change for AMD or Intel
VendorName "NVIDIA Corporation" #this, too
Option "NoLogo" "1" #also this
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Virtual 1920 1080
Option "AllowEmptyInitialConfiguration" "True"
EndSubSection
EndSection