Ubuntu 18.04 Virtual Box设置分辨率1920*1080

由于Ubuntu 18.04版本的屏幕分辨率没有1920 * 1080,所以需要自己配置一下。

第一在终端中输入sudo apt install vim安装vim
然后输入 sudo vim /etc/X11/xorg.conf,编辑文件
按i进入编辑
接着在弹出来的终端中输入下面的内容,编辑完后按ESC,在输入 :wq(冒号+wq) 保存并退出:

Section "Monitor"

Identifier "Configured Monitor"

Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

Option "PreferredMode" "1920x1080_60.00"

EndSection

Section "Screen"

Identifier "Default Screen"

Monitor "Configured Monitor"

Device "Configured Video Device"

EndSection

Section "Device"

Identifier "Configured Video Device"

EndSection

————————————————
版权声明:本文为CSDN博主「LSUNQQ」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/LSUNQQ/article/details/100166540

© 版权声明
THE END
如果内容对您有所帮助,就支持一下吧!
点赞0 分享
年美女宝妈的头像 - 宋马
评论 抢沙发

请登录后发表评论

    暂无评论内容