Restore environment variables in ubuntu under VMWare

Source: Internet
Author: User


In VMWare, ubuntu restores the environment variable. VMWare installs ubuntu 11.04 and wants to set up the android open environment. As a result, when installing jdk and configuring the environment variable, it modifies/etc/environment, if the PATH variable is incorrectly modified, you cannot log on to ubuntu after the instance is started. The solution is as follows: in VMWare, when ubuntu is started, press F2 quickly. The bios settings page is displayed, and the Startup menu is displayed,

Select the corresponding startup Item and press e to edit the content of the startup Item www.2cto.com.

Add 1 single after linux/boot/vmlinuz-2.6.38-10-generic and press ctrl + x to start ubuntu. After a few minutes, the following interface will appear

The interface is basically garbled. No matter which one of the following items is selected, enter the root password and log on to the root account.

Run the command/bin/cp/etc/environment. bak/etc/environment to complete environment restoration settings. Restart ubuntu. If no backup is available, use vi to open environment and modify the original format:/bin/vi/etc/environment author victoryckl.

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.