Kali Linux power-on input password cannot enter the interface __linux

Source: Internet
Author: User
Tags kali linux

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

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.