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.