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.
Asked
Active
Viewed 1,662 times
1 Answers
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=""

godismyjudge95
- 649
-
Will that tutorial work for Ubuntu as well? Guy is complaining about how different Mint is from other distros in the first few sentences. – timbram May 21 '15 at 01:50
-
1@timbram yeah, I just realized there was a better way – godismyjudge95 May 21 '15 at 01:51
-
Awesome! Thanks! Let me try this out right now and see how it goes! – timbram May 21 '15 at 01:51
-
Yeah, I can't seem to get it to work. Even adding those items and it still boots to GUI by default. – timbram May 21 '15 at 02:24
-
1@timbram do you want it to boot to text by default? – godismyjudge95 May 21 '15 at 04:23
-
Yes that is correct. – timbram May 23 '15 at 19:45
-
@timbram Ok I changed my answer to include that also. – godismyjudge95 Jun 04 '15 at 15:47