更改Linux字符界面的分辨率大小(Ubuntu10.10)

    技术2022-05-19  20

    有时候不喜欢在图形界面下工作。喜欢在字符界面下更高效的学习,但是我的Ubuntu字符界面的分辨率很小(640*480)所以就去网上搜了一下,如何更改Ubuntu 的字符界面分辨率,后来找到了如下方法,在本机上更改成功,而且图形界面也一样能进去。

    step1:vim /boot/grub/grub.cfg 这个文件是系统启动时候的GRUB 选项,我们要编辑这个文件里面的启动信息。

    step2:找到我们平时使用的启动Ubuntu的那一块信息(我的是

    menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set 30b3c856-a931-44cf-bb03-99fa91fcc597 linux /boot/vmlinuz-2.6.35-22-generic root=UUID=30b3c856-a931-44cf-bb03-99fa91fcc597 ro quiet splash vga=792 initrd /boot/initrd.img-2.6.35-22-generic } 然后我们在linux /boot/vmlinuz-2.6.35-22-generic root=UUID=30b3c856-a931-44cf-bb03-99fa91fcc597 ro   quiet splash 后面加上这样一行信息就可以了!vga=792也就是现在我的启动信息为

    menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set 30b3c856-a931-44cf-bb03-99fa91fcc597 linux /boot/vmlinuz-2.6.35-22-generic root=UUID=30b3c856-a931-44cf-bb03-99fa91fcc597 ro quiet splash vga=792 initrd /boot/initrd.img-2.6.35-22-generic } 

    这里说明下,VGA就是接口的意思,792的含义要理解请对照下表:

    depth-----640x480----800x600----1024x768-----1280x1024 8bit---------769--------771--------773----------775 15bit--------784--------787--------790----------793 16bit--------785--------788--------791----------794 24bit--------786--------789--------792----------795 

    Over!!!


    最新回复(0)