Start Ubuntu and go to command line mode.

Source: Internet
Author: User
Ubuntu12.04 has been installed recently. it is inconvenient to enter the unity interface and then enter the command line every time. If you do not need the interface, you can set it to boot to the command line mode. Today, we provide a better method for both. Both methods can be used by myself. [1] command: sudogedit/etc/default/grub find this line GRUB_CMDLINE_LINUX_DEFAULT = "quietsplash" and change it to GRUB _

Ubuntu 12.04 has been installed recently. it is inconvenient to enter the unity interface and then enter the command line. If you do not need the interface, you can set it to boot to the command line mode.

Today, we provide a better method for both. Both methods can be used by myself.

[1]

Command:

Sudo gedit/etc/default/grub

Find this line

GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash"

Change

GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash text"

Enter the following command:
Sudo update-grub

After the device is started, it automatically enters tty1.

(We recommend the following method because you can choose to enter the command line or interface mode when starting the system)

[2]

Sudo chmod + w/boot/grub. cfg # Add write permission

Sudo gedit/boot/grub. cfg # edit the configuration file

You will find the text in the Area:


Menuentry 'ubuntu, Linux 3.2.0-24-generic-pae' -- class Ubuntu -- class gnu-linux -- class gnu -- class OS {
Recordfail
Gfxmode $ linux_gfx_mode
Insmod gzio
Insmod part_msdos
Insmod ext2
Set root = '(hd0, msdos8 )'
Search -- no-floppy -- fs-uuid -- set = root 689a61a1-06fd-4ffe-95d7-8671e97bbe81
Linux/boot/vmlinuz-3.2.0-24-generic-pae root = UUID = 689a61a1-06fd-4ffe-95d7-8671e97bbe81 ro quiet splash $ vt_handoff
Initrd/boot/initrd. img-3.2.0-24-generic-pae
}

Copy and paste the above text.

Modify some settings. After modification

Menuentry 'ubuntu, Linux 3.2.0-24-generic-pae (command mode) '-- class Ubuntu -- class gnu-linux -- class gnu -- class OS {
Recordfail
Gfxmode $ linux_gfx_mode
Insmod gzio
Insmod part_msdos
Insmod ext2
Set root = '(hd0, msdos8 )'
Search -- no-floppy -- fs-uuid -- set = root 689a61a1-06fd-4ffe-95d7-8671e97bbe81
Linux/boot/vmlinuz-3.2.0-24-generic-pae root = UUID = 689a61a1-06fd-4ffe-95d7-8671e97bbe81 ro text
Initrd/boot/initrd. img-3.2.0-24-generic-pae

}

This is fine. I directly installed it on a physical machine. When I started the system, I had a menu. Select Ubuntu, Linux 3.2.0-24-generic-pae (command mode ).

If the virtual machine is installed, there may be no options to boot (the default menu is not selected when I use the vmvirtual machine to install it). The solution is as follows:


The grub menu system is hidden by default at startup. To remove the hidden menu, perform the following operations:

You need to modify a line in/etc/default/grub (find it by yourself, just in front of it). Command: sudo gedit/etc/default/grub

GRUB_HIDDEN_TIMEOUT = 0 (the default value is 0. Modify the value to be greater than 0, for example, 10)

Save and exit!

Run the following command:

Sudo update-grub

Okay. The settings are complete.

The last friendly reminder.

(If the file is opened or saved by the method, the permission is insufficient for the Baidu chmod command to modify the permission. vi is actually quite well-edited ~ I haven't understood it yet ~~~ The direct method is implemented using gedit ~)

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.