Monday, November 14, 2011

Change Console Fonts!

I've been tinkering around with Linux lately and was thinking about setting up a spare box... without a GUI. You know, perhaps on an older computer that would simply be a file server?

Anyway, so I've been messing around with the fonts in the console for Linux. Don't know what I'm talking about? Press <CTRL>-<ALT>-<F1>. You can also do <CTRL>-<ALT>-<F2>, and so forth, all the way to <F6>.

Notice how small the screen is? We can fix that.

First, you'll need to edit the /etc/default/grub file. See the part that says GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"? You'll want to add in there vga=xxx, where 'xxx' represents a code for a resolution. See the following two URLs for additional information about this.

http://en.wikipedia.org/wiki/VESA_BIOS_Extensions
https://wiki.ubuntu.com/FrameBuffer

Now, restart your system. See? Pretty.

Now, on to the fonts.

Edit the /etc/default/console-setup file. See the part that says FONTFACE and FONTSIZE? You'll want to change these to the values specified in the file.


After changing them, you'll execute 'setupcon' and boom. Pretty fonts! :)

Now, I haven't been able to find out how to have the consoles automatically start with your custom fonts every time the system starts. My guess would be checking the startup scripts in /etc/rcX.d. Or, perhaps there's another place to put them, like somewhere in your home directory in one of the hidden files (the ones that are preceded with a '.').

Anyway, I just thought I'd post what I have for now. Credit goes to the following website:

http://www.shallowsky.com/blog/linux/console-setup-ubuntu.html

No comments:

Post a Comment