That's strange.
I thought that Ubuntu's security model
required sudo to be available.
Anyhow, since you installed the missing command, the "one line" is what you needed to know. (I had more than one line because I was/am working on several different Fedora distributions, and GRUB 2 will not be standard on Fedora 'till Fedora 17 is released next year. so it gets installed in various different places.)
Anyhow, what the line tells you is that, on your Ubuntu distribution, GRUB 2 is installed in
/boot/grub/, and that [
/boot/grub/grub.cfg is the configuration file you want to edit.
What I'd suggest is that you add the file I posted above to your
/etc/grub.d/ directory as
00_mycustom (or whatever name you want to use is long as it sorts to be between
00_header and
01_linux), do a
sudo cp /boot/grub/grub.cfg /boot/grub/custom.cfg to create a custom copy of your current configuration file. (I'd also recommend you create a backup copy of your
grub.cfg file with a
sudo cp /boot/grub/grub.cfg /boot/grub/grub.cfg.old - See below for why you might need this.)
Then do a
sudo gedit /boot/grub/custom.cfg and edit it. Since the
custom.cfg file is inserted
after the
00_header file is processed, you can (and should) delete the part of the
custom.cfg file that precedes the first
menuentry stanza. Then change the order of the stanzas you want to keep, and delete anything you don't want.
Save the modified
custom.cfg file, run
sudo grub-mkconfig -o /boot/grub/grub.cfg, reboot, and your stuff should be listed first with the whole automatically generate menu items following your stanzas.
If, for some reason, GRUB 2 can't boot with the
custom.cfg file inserted, it should bump you into the GRUB mini editor with a
GRUB> prompt. You can then boot from you backup configuration file by entering the command
configfile /boot/grub/grub.cfg.old. (Note that, if the file isn't found, GRUB supports "tab completion," so you can, for example, do a
configfile /<tab> to get a list of files (and directories) in GRUB's root directory (which is not necessarily the same as Ubuntu's root), and find the backup configuration file. Usually, if
/boot/grub/grub.cfg.old doesn't work,
/grub/grub.cfg.old will be the correct location. This is what happens when the boot partition is different from the root partition.)