Let Ubuntu10.04 boot directly into the text interface, sometimes copy some information, modify the configuration file and other work, do not need to enter the graphic interface, how to add a command interface in the Start menu? 1. Modify the grub. cfg attribute grub. cfg is read-only by default. to modify it, you must add the write attribute. Sudochmod + w/boot/grub. cfg 3. Modify grub. Reboot sudovim/boot/grub.
Let Ubuntu 10.04 boot directly into the text interface, sometimes copy some information, modify configuration files and other work, do not need to enter the graphical interface, how to add a command interface in the Start menu?
1. Modify the grub. cfg attribute
Grub. cfg is read-only by default. to modify it, you must add the write attribute.
Sudo chmod + w/boot/grub. cfg
3. Modify grub. cfg
Sudo vim/boot/grub. cfg
After opening the file, the first menu item is found:
Menuentry 'ubuntu, Linux 2.6.32-22-generic-pae' -- class Ubuntu -- class gnu-linux -- class gnu -- class OS {
Recordfail
Insmod ext2
Set root = '(hd0, 7 )'
Search -- no-floppy -- fs-uuid -- set 7dde7e5c-249c-4128-b148-8ebae100cc7a
Linux/boot/vmlinuz-2.6.32-22-generic-pae root = UUID = 7dde7e5c-249c-4128-b148-8ebae100cc7a ro quiet splash
Initrd/boot/initrd. img-2.6.32-22-generic-pae
}
Copy the file and modify it:
Menuentry 'ubuntu, Linux 2.6.32-22-generic-pae (commmand mode) '-- class Ubuntu -- class gnu-linux -- class gnu -- class OS {
Recordfail
Insmod ext2
Set root = '(hd0, 7 )'
Search -- no-floppy -- fs-uuid -- set 7dde7e5c-249c-4128-b148-8ebae100cc7a
Linux/boot/vmlinuz-2.6.32-22-generic-pae root = UUID = 7dde7e5c-249c-4128-b148-8ebae100cc7a ro quiet text
Initrd/boot/initrd. img-2.6.32-22-generic-pae
}
Note ):
1. Write the command mode in the menu item. This is the identifier and can be written at will! For example, "text mode"
2. Delete quiet splash and add text
4. Others
Save and reboot, and you will find that there is another project.
What if we want to enter the GUI in command line mode? Can I restart my computer? Of course.
1. Enable graphic interface
/Etc/init. d/TPD start
2. Disable the graphic interface
/Etc/init. d/TPD stop