如何提高 Ubuntu 服务器的控制台分辨率

ian*_*215 12 server grub2 11.10 console

我在 VMware 工作站内运行 Ubuntu 服务器,当我运行 VM 时,屏幕非常小。我想将其增加到适合整个 VMware 控制台的内容。

我尝试更改GFX_MODE/etc/default/grub 中的文件,然后运行 ​​update-grub2。当我重新启动时,它只会使 grub 菜单变大。但是一旦它完全启动到 Ubuntu,它就会缩小到默认分辨率。

我错过了什么?

Pan*_*her 8

尝试附加vga=791到 linux(内核)行(in /etc/default/grub)。

有关其他分辨率的信息,请参阅控制台帧缓冲区(如果您想进一步降低它)。


gra*_*bow 5

我在 /etc/default/grub 中使用了两个参数:

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1366x768x24
# bug workaround
GRUB_GFXPAYLOAD_LINUX=keep
Run Code Online (Sandbox Code Playgroud)

我通过阅读 /etc/grub.d 中的 shell 脚本找到了第二项。

确保在运行 vbeinfo 之前“设置 pager=1”,以便您可以读取输出。

完成后一定要运行“sudo update-grub”

  • 它可能是重复的,但是当我到达此页面并且不知道他的副本在哪里时,这对我很有用。 (5认同)