Question: I am running Ubuntu desktop, but I want to temporarily enter the command line after the start. What is an easy way to boot into the terminal?
Linux Desktop comes with a display manager (eg: GDM, KDM, LightDM), which allow a computer to automatically start a GUI-based login environment. However, if you want to boot straight into the end how to do? For example, you troubleshoot a desktop-related issues do not need or want to run a GUI application.
Note that although you can press Ctrl + Alt + F1 to F6 temporarily switch to virtual terminal from the desktop GUI. However, in this case your desktop GUI runs in the background, unlike plain text mode.
In Ubuntu or Debian desktop, you can pass the appropriate parameters to start the text-mode kernel at boot time.
Enter the command line to start the temporary
If you want to prohibit the desktop GUI and enter a provisional text mode, you can use the GRUB menu.
First, turn on your computer. When you see the initial GRUB menu, press the 'e'.
It will then go to the next screen, where you can modify the kernel boot option. Scroll down to the row with "linux" the beginning, this is a list of kernel parameters. Remove the parameter list "quiet" and "splash". Add in the parameter list "text".
List option to upgrade the kernel looks like this. Press Ctrl + x continue to boot. This will start the console in verbose mode once (LCTT Annotation: Since not saved changes, so the next reboot will enter GUI).
Permanently boot into the command line
If you want to permanently boot into the command line, you need to update the definition of the kernel boot parameters GRUB settings.
Open the default GRUB configuration file in a text editor.
$ Sudo vi / etc / default / grub
Find the line that begins with GRUB_CMDLINE_LINUX_DEFAULT, and with the "#" comment this line. This disables the splash screen, and start verbose mode (that display detailed startup procedure).
Change GRUBCMDLINELINUX = "" to:
GRUB_CMDLINE_LINUX = "text"
Next Cancel "# GRUB_TERMINAL = console" comments.
GRUB updated configuration looks like the following.
Finally, use the update-grub command to rebuild the changes based on these GRUB2 configuration files under / boot.
$ Sudo update-grub
At this point, you should be able to switch from desktop to start the GUI console started. It can be verified by rebooting.