修改ubuntu virtualbox下命令行分辨率

Changing Console Mode Resolution
Post a reply
13 posts • Page 1 of 1
Changing Console Mode Resolution

Postby Mario F. » 27. Jul 2010, 15:40
Host: Windows 7
Guest: Ubuntu 10.04
VBox: 3.2.6 PUEL
Guest Additions: Installed

Hello all,

I'm trying to change the resolution of the console mode of this Ubuntu VM. I'm trying to do that by setting GRUB_GFXMODE in /etc/default/grub. Changes are having no effect. However, I don't have the VESA BIOS extension installed. Grub tells me this much when I run vbeprobe. Meanwhile, dmesg confirms(?) no VESA module is ever loaded and insmod vbe returns "can't read 'vbe': No such file or directory".

Ideally I'd like to set it to a non standard mode supported by that monitor (a WXGA operating at 16:9 with 1366 × 768 pixels). But I can understand if this mode isn't supported. But setting at least a 1024x 768 mode would be much appreciated.

What am I doing wrong or missing?

Mario F.
     
    Posts: 5
    Joined: 27. Jul 2010, 15:26
    Primary OS: MS Windows 7
    VBox Version: PUEL
    Guest OSses: Linux

Top
Re: Changing Console Mode Resolution

Postby Sasquatch » 27. Jul 2010, 20:38
When you boot, hold down the shift key and you will get the Grub2 menu. Now edit the line that mentions the kernel. At the end, add 'vga=794' without the quotes and boot it using Ctrl+x I believe (it's on the screen which key will boot the system). When that works, you need to change /etc/default/grub to include that added line as a default value (it should already have 'quiet splash'). Run 'sudo update-grub' after the change, reboot and check if it works.

This answer could've been found by a simple query in a search engine.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Fol
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值