TLDR:
- Correct password gets black screen and redirects to login screen
- When in terminal no commands are found
- Likely a problem with PATH directory as it was changed in last use
- Using mint 19 dual boot with windows
You did what? Why?
Lesson 1: don't mess with the PATH except to stick stuff at the end.
~/.profile
and/or ~/.bashrc
, either by copying them from the files you saved before making changes: cp .profile.save .profile
or by editing them and using the comments you added to the files to change them back to the original.You don't need a live USB for that, the defaults are stored inFlemur wrote: ⤴Sat Jul 14, 2018 3:42 pmLesson 1: don't mess with the PATH except to stick stuff at the end.
Everybody does backups before they mess with important files and settings**, so boot the LiveDVD/USB and restore the files you messed with, probably~/.profile
and/or~/.bashrc
, either by copying them from the files you saved before making changes:cp .profile.save .profile
or by editing them and using the comments you added to the files to change them back to the original.
**They do so!
/etc/skel/
, just copy them over if you need to reset yours. Or just create a new user to get a "virgin" user folder set up for you.I'd heard that, looked at that file and I don't think it'll do the trick - might depend on how he broke his system:
Code: Select all
$ grep PATH /etc/skel/.*
grep: /etc/skel/.: Is a directory
grep: /etc/skel/..: Is a directory
/etc/skel/.profile:# set PATH so it includes user's private bin directories
/etc/skel/.profile:PATH="$HOME/bin:$HOME/.local/bin:$PATH"
Code: Select all
$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
I was gonna suggest that, but...sounds like a hassle.Or just create a new user to get a "virgin" user folder set up for you.
It depends what he edited. My guess is he edited ~/.profile and forgot to keep theFlemur wrote: ⤴Sat Jul 14, 2018 4:07 pmAll it does is add $HOME stuff - which you don't need to run the OS - to some other, already set, PATH. (And - sigh it adds it in the wrong place.)Code: Select all
/etc/skel/.profile:PATH="$HOME/bin:$HOME/.local/bin:$PATH"
Ah - here's where it gets set:Code: Select all
$ cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
:$PATH
at the end and thus dropped the system-wide paths already set. It's an easy mistake to make. But no point to keep speculating since he hasn't been back yet.