最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】virtualbox下的Ubuntu的1366×768全屏显示

VirtualBox crifan 4477浏览 0评论

1.别人用virtualBox安装了Ubuntu,可是无法实现Ubuntu全屏,在VirtualBox窗口中显示,会出现两个边,没有完全实现窗口内的全屏。

原因在于,Ubuntu内,没法设置分辨率为1366×768.

所以就去想办法,让VirtualBox中的Ubuntu分辨率支持1366×768.

所以就去参考:

virtualbox下的Ubuntu 1366×768全屏显示

去操作。

2.其中,安装Guest Additions客户端增强包的事情,之前已经搞定了。

现在接着就是去参考去教程去操作剩下的:

sudo apt-get install build-essential

sudo apt-get install module-assistant

sudo m-a prepare

3.然后再去:

sudo gedit /etc/X11/xorg.conf

但是后来发现,Ubuntu内的,此时并不存在

/etc/X11/xorg.conf

4.后来参考:

https://wiki.ubuntu.com/X/Config/Resolution

去看了看,也没提到xorg.conf放在哪里的。

但是确定,的确是这个文件。

5.后来实在不行,在通过:

sudo gedit /etc/X11/xorg.conf

打开的是新建的一个空的xorg.conf的情况下,把教程内的配置:

Section "Device"
Identifier "Configured Video Device"
Driver "vboxvideo"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24 #我这里颜色质量只能开到24
SubSection "Display"
Modes "1366×768" "800×600" #按屏幕需要改就可以了
EndSubSection
EndSection

都拷贝到/etc/X11/xorg.conf,然后通过gedit保存后。

重启Ubuntu,然后再去硬件,显示中,找到对应的关于分辨率的设置,发现的确就有了对应的1366×768的选项了。

设置成对应的1366×768,然后保存配置。

就可以顺利的,实现VirtualBox中的Ubuntu,支持1366×768的全屏显示了。

【总结】

其他步骤都好办,其中关于:

Ubuntu内,没有/etc/X11/xorg.conf,搞得要新建一个才行。

关于这点,也是试了试之后,才发现也是可以的。

转载请注明:在路上 » 【已解决】virtualbox下的Ubuntu的1366×768全屏显示

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.166 seconds, using 22.15MB memory