How to fix your ubuntu 9.10 console

After upgrading my server (that isn’t running X) to Ubuntu 9.10 (Karmic Koala), I found that the console on my LCD monitor was cropping out several characters from the left and right sides. It wasn’t hard to fix, though, given the magick incantations:

If you upgraded to Karmic

You’ll have grub 1 (legacy). To fix it, follow this thread, and edit /boot/grub/menu.lst. Look for the line that starts with “defoptions” — uncomment the line and add “vga=791″ (or 789 for lower resolution):

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
defoptions=vga=791

Save the file and then reboot.

If you installed Karmic directly

You’ll be running grub 2, which requires these instructions. I’ve reformatted them here for posterity:

Step one: In /etc/default/grub, add this line:

set gfxmode=1024x768

Step two: In /etc/grub.d/00_header, add the highlighted line:
[bash highlight="3"]
if loadfont `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then
set gfxmode=${GRUB_GFXMODE}
set gfxpayload=keep
insmod gfxterm
[/bash]

Step three: Run update-grub, and reboot.

Related posts:

  1. Dialed-in Rails script/console with pretty printing and history
    Edit (as root) your /etc/irbrc: # Some default enhancements/settings for IRB, based on # http://wiki.rubygarden.org/Ruby/page/show/Irb/TipsAndTricks   unless defined? ETC_IRBRC_LOADED   # Require RubyGems by default. require 'rubygems'   begin require......
  2. HOWTO install etherpad on ubuntu 9.10
    Etherpad was opensourced by google, and has some generic installation instructions. Here’s the translation for Ubuntu Karmic Koala (release 9.10): Install the prerequisites: sudo apt-get install mysql-server-5.1 mercurial sun-java6-jdk sun-java6-jre......
  3. How to fix the wifi on a HP Mini 110 Netbook running Ubuntu 9.10 (Karmic Koala)
    Installing Karmic Koala from a USB drive proved to be a bit less than effortless. First off the http and ftp servers for the netbook-reloaded ISO images were really slow,......
  4. Installing Trac on Ubuntu
    Here’s the condensed version, using the installation guide for help: Install the software sudo apt-get install python-setuptools python-subversion sudo easy_install Trac Initialize the Trac project We’re going to run the......