解决Vmware中安装Ubuntu Server 14.04 分辨率无法全屏问题

本文指导用户如何通过编辑Linux GRUB配置文件来调整屏幕分辨率,具体包括使用终端命令打开并编辑配置文件,定位关键参数进行修改,保存并重启系统以应用更改。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

We will have to edit grub configuration. Open a terminal and paste this:

  1. sudo gedit /etc/default/grub Hit Enter. It will open grub preferences in Gedit.

  2. Locate the line # GRUB_GFXMODE=800x600 (resolution may be different).

You have to change the resolution to actual resolution of your screen, for example mine is 1240x1024. Next step is to uncomment this line (remove the # and and the empty space if is, so the letter G of the word GRUB will be the first letter in this line). After you are done, save the file and close.

3 . Now paste this line in terminal:

sudo gedit /etc/grub.d/00_header .

Hit Enter. It will open a text file with a lot of stuff. Use the search option at the top of the window to locate this line:

gfxmode=${GRUB_GFXMODE}

After you successfully find it, you will have to add this line: set gfxpayload=keep just under the gfxmode=${GRUB_GFXMODE}. Make it look like this:

set gfxmode=${GRUB_GFXMODE}
set gfxpayload=keep

Now, save the file and close.

4 . In terminal paste:

sudo update-grub


转载于:https://my.oschina.net/mayboy24/blog/316407

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值