Home » Questions » Computers [ Ask a new question ]

LINUX: change number of lines/columns that are displayed in a terminal (without X)

LINUX: change number of lines/columns that are displayed in a terminal (without X)

"I'm using a linux server without X
I want to understand how to change the number of lines/columns I see, like I change resolution in X.. besides.. I should be able to change the resolution somehow, shouldn't I? I mean, I'm still using a monitor even if it's not with an X server.."

Asked by: Guest | Views: 24
Total answers/comments: 1
Guest [Entry]

"Assuming you want to change the resolution of the display (which indirectly changes how many characters fit in each row/column), you can change the mode.

The mode of the graphics card can be set via the vga boot parameter (assuming you don't use framebuffer), but the value to set it to depends on your graphics card.

To see what values are available add vga=ask which will give you a list to choose and test from. If you use grub just append that to the kernel line of /boot/grub/menu.lst for your kernel. Once you have decided what mode you want, replace ask with that code.

For some documentation see e.g. Documentation/svga.txt in the kernel source tree."