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