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",还不能只写一个,得有两个才会有效,再重启,就可以的系统的首选项里,点击显示,选择屏幕尺寸了,如下图: