VirtualBox linux development virtual environment to build a pit (3) screen size setting

The default screen size of VB is 800*600 . After installing Addtions , it will become 1024*768 , and then it is still too small. 24 -inch monitors are all 1920*1200 , which cannot be used when writing code in full screen.

Need to add monitor information to /etc/X11/xorg.conf

vi /etc/X11/xorg.conf

The content is as follows

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

 

This line of Modes "800x600""1440x900" , you can't just write one, you have to have two to be valid, and then restart, you can click Display in the system's preferences, and select the screen size, as shown below:



 

 



 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326357144&siteId=291194637