Failed to enter the desktop after a successful boot entry (wireless loop prompts for a password). May be due to changes in/etc/profile, at this time you can restart the computer in the system selection when the advanced option to enter the interface-free terminal mode.
Using commands
Vim/etc/profile
Open profile file to restore the file to its original state (probably due to the addition of export import new environment variable)
Just copy the configuration file to overwrite the original configuration
#/etc/profile:system-wide Profiles file for the Bourne shell (SH (1))
# and Bourne compatible shells (Bash (1), Ksh (1) , Ash (1), ...).
If ["' Id-u '"-eq 0]; Then
path= "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
path= "/usr/local/bin :/usr/bin:/bin:/usr/local/games:/usr/games "
fi
export PATH
if [" ${ps1-} "]; then
if [" ${bash-} "] && ["$BASH"!= "/bin/sh"]; Then
# The file BASH.BASHRC already sets the default PS1.
# ps1= ' \h:\w\$ '
if [-F/ETC/BASH.BASHRC]; then
./etc/bash.bashrc
fi
Else
if ["' Id-u '"-eq 0 ]; Then
ps1= ' # '
else
ps1= ' $ '
fi fi fi
if [-D/ETC/PROFILE.D]; then for
i in/ etc/profile.d/*.sh; Do
if [R $i]; then
. $i
fi
done
unset i
fi
General Linux Modify environment variables please change in the. bashrc file in the root directory