It's say "-bash:/home/pcname/.Xauthority:permissiondenied" — Akydev5 hours ago
It say command 'ls' is available in '/bin/ls' . The command could not be located because '/bin' is not included in the PATH environment variable. ls : command not found. — Akydev4 hours ago
Akydev has screwed up his PATH. I'm betting the only real problem is in .bashrc which (idiotically) Debian-based distros have decided to source from ~/.profile. But we may as well check all of them.
When I wrote this /bin/mv ~/.bash_profile ~/.bash_profile.Old its say: /bin/mv: can't stat '/home/my username/.bash_profile' : no such file or directory
In the morning I have problems to set the PATH in Android studio jdk so I edited the barsh file and at same time I edited etc/ environment file I think. Then I updated my Android studio and restart my computer. And have this problem and I am not able to login
Ok every letter in Lower case and type as you told and it says :command 'cat' is available in '/bin/cat' . The command could not be located because '/bin' is not included in the PATH environment variable. cat: command not found
@Akydev Sorry, I forgot your PATH problem. OK, hit the Up arrow, then Ctrl+A and then add /bin/to the beginning of the line so that it looks like this:
/bin/cat /etc/environment
Or just type the whole thing again. The Up arrow shows the previous command you ran and Ctrl+A take you to the beginning of the line. You don't need to do it that way, it's just easier.
Anyway, we have now confirmed that the problem is your PATH. I am assuming that you have mistyped it in /etc/environment so, run sudo nano /etc/environment again and add a # at the beginning of each line that affects PATH:
What I want you to do is edit the file and comment those lines. Adding a # at the beginning of the line "comments" it, it makes the system ignore it.
So, you run sudo nano /etc/environment in the terminal and when the file is opened, you add a # at the beginning of each line mentioning PATH or JAVA_HOME
When I opened it 1st time when I have problems with jdk it have some content and I added the jdk home and path line in it but when I have login problem then i run terminal and open the etc/environment to delete the PATH line which I added before. But at that time power went off. When I turned on computer and open again as I told you. In that fiIe nothing or I guess empty.
Yes. It's shows empty file I think and I type all text as you told me
Look, the problem is that you are setting PATH to a wrong value somewhere. Unfortunately, PATH can be set in many different places and I am trying to understand where you are setting it.
Hmm. It might have already read the /etc/environment. You can either go back to the command line (Ctrl+Alt+F1) and run sudo service lightdm restart or try restarting your computer.
@Akydev It's better not to. You have the option to restart from the login screen or you can run sudo reboot from the command line. If neither works, then yes, restart with the button. It's just not a good way to treat your computer generally.
Yes there is a little change is that it's show onscreen keyboard options and language options. Which is disappear when I have login problem. But after your suggestions it came back but login problem still same
The ~/.xsession-errors file is where any errors you get when logging in will be reported. I want you to delete it so that it will only contain the errors generated from this time when you try to log in.
I perform 3rd steps and its show me something which I write you wait
Script for ibus started at run_im. Script for auto started at run_im. Script for default started at run_im. /etc/x11/Xsession.d/99x11-common_start: line 5: exec: init: not found.
@Akydev Just in between : as it is most probably not a graphics chip issue, please follow exactly every instruction from @terdon ... he is one of the most experienced members here ! Good luck !
And when I write for password its not allow me for password and say sorry, try again. Yes I know its ask for password automatically. But when I enter it display sorry try again message and ask for password again
# $Id: 99x11-common_start 305 2005-07-03 18:51:43Z dnusinow $
# This file is sourced by Xsession(5), not executed.
exec $STARTUP
# vim:set ai et sts=2 sw=2 tw=80:
The error you got suggests that the problem is in /etc/X11/Xsession.d/99x11-common_start. Since the only thing that does is run $STARTUP, we need to find out what the value of $STARTUP is. So, edit that file (sudo nano /etc/X11/Xsession.d/99x11-common_start) and make it look like this:
# $Id: 99x11-common_start 305 2005-07-03 18:51:43Z dnusinow $
# This file is sourced by Xsession(5), not executed.
echo "SS: $STARTUP" > /home/akydev/log.foo
exec $STARTUP
# vim:set ai et sts=2 sw=2 tw=80:
Change "akydev" to your actual username on the machine.
@Akydev No, no, wait. If you are sure it's the same, then leave it.
Now, type exit from the command line and then log in again (from the command line). After logging in again, run echo $PATH again. Is /sbin there this time?
When I perform echo $PATH its shows: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/jdk1.8.0_65
You are very welcome - I am glad it is working for you ! Please do not forget to click the grey ☑ at the left of the answer from @terdon, which means Yes, this answer is valid !
OK, @Akydev I have edited my answer to your question to reflect what we discussed. Please take a moment and accept it so your question can be marked as answered (and I can get my precioussss rep)
@Akydev That's a different issue. The basic message you should get from all this is never edit files in /etc unless you know what you're doing
Now, assuming your ~/. files were not the problem, you might want to restore the copies we made:
for i in .bashrc .profile .bash_login .bash_profile; do
mv "$i".old "$i"
done
But do that only if you're sure you need them. Only if you had made any changes there that were i) wanted and ii) didn't break the system
i am new in this community but i like to be touch with good people and want to learn more about technology too. so be in touch
suggest me for jdk8 path and something about android studio. which site or blog or people i should follow to learn good thing and correct steps so i not fall in this kind of problem again,
@Akydev You can check the profile page of @terdon and you will find many things to learn there ... and on some other profiles as well ... and once you have sufficient reputation you can support us by upvoting helpful answers. :)
now i am going to sleep because from morning i not sleep and finally yo yo yo :D its time to take some rest and sleep. my eyes tiered :P morning i will see this page and more comment or maybe give me your link or email where i can follow you and share my things. its glad to meet you all guys . thank.