Enable Ubuntu10.04 to directly go to the text page

Source: Internet
Author: User
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

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.