VirtualBox linux开发虚拟环境搭建踩坑(三)屏幕大小设置
VB默认的屏幕尺寸是800*600,安装Addtions之后,会变成1024*768,然后还是太小了啊,24寸显示器,都是1920*1200的,全屏写代码时利用不上啊
需要/etc/X11/xorg.conf中添加显示器信息
vi /etc/X11/xorg.conf
内容如下
Section "Device"
BoardName "VirtualBox Graphics"
Driver "vboxvideo"
Identifier "Device[0]"
VendorName "Oracle Corporation"
EndSection
Section "Screen"
SubSection "Display"
Depth 24
Modes "800x600""1440x900"
EndSubSection
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
EndSection
这一行Modes "800x600""1440x900",还不能只写一个,得有两个才会有效,再重启,就可以的系统的首选项里,点击显示,选择屏幕尺寸了,如下图:
相关推荐
yangkang 2020-11-12
linglongyouzhi 2020-09-06
独行者0 2020-07-26
木马屠城 2020-07-05
独行者0 2020-06-20
CCoder 2020-06-13
zyygive 2020-06-11
独行者0 2020-06-09
独行者0 2020-06-06
lvjianlong 2020-05-26
LonelyTraveler 2020-05-19
coolaaron 2020-05-18
虫子 2020-05-15
独行者0 2020-05-10
木马屠城 2020-05-09