2

I am running Ubuntu 15.04 in Virtual Box with the standard GUI. However, I want to be able to have the option to boot it to the command line and run it without the GUI. How do I do this? Have searched Google but can't find a good resource.

timbram
  • 1,995

1 Answers1

0

Add the "text" flag to a grub boot option.

See the steps here to add a new boot option:

How to add a GRUB2 menu entry for booting installed Ubuntu on a USB drive?

When you add the code:

menuentry "Install on sdb1" {
    set root=(hd1,1)
    linux /vmlinuz root=/dev/sdb1 ro quiet splash
    initrd /initrd.img
}

Make sure to add text after the word "splash":

menuentry "Install on sdb1" {
    set root=(hd1,1)
    linux /vmlinuz root=/dev/sdb1 ro quiet splash text
    initrd /initrd.img
}

To change the default boot option to boot in text mode run this command:

sudo gedit /etc/default/grub

And then add "text" (without quotes) to the end of the line next to splash. It should look something like this:

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"
GRUB_CMDLINE_LINUX=""