Sometimes, you do not need to enter the graphic interface to copy some information and modify the configuration file. How can you add a command interface in the Ubuntu 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. cfg to open the file and find the first
Sometimes, you do not need to enter the graphic interface to copy some information and modify the configuration file. How can you add a command interface in the Ubuntu 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 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