Been working with RPi3, fresh installed this Jessie OS and had no problems for ages, until earlier today.
Current situation: When booting pi, the messages aren't the same as before, but ends with the line
No directory, logging in with HOME=/. I try
startx and it freezes for ages, then returns "
xauth: timeout in locking authority file //.Xauthority". After a little longer left alone, it eventually returns: (with a few extra lines of just
(EE) removed for clarity, if that's actually something important do let me know and I'll type out the results again)
(EE) Fatal server error: Cannot open log file "//.local/share/xorg/Xorg.0.log" Please consult the The X.Org Foundation support at http://wiki.x.org for help. xinit: giving up xinit: unable to connect to X server: connection refused
How it worked before: Booted to terminal thing, I could just type in 'startx' and the GUI desktop appeared all pretty and wonderful and automatic...
What I've tried already: I've read some other similar situations on this forum, and elsewhere on the web, and some went as follows:
sudo chown pi ~/.Xauthority" - did this one and got no response from terminal, then I tried the next step to "
chmod u+rw ~/.Xauthority" and got the response "
chmod: cannot access '/home/pi/.Xauthority': Permission denied"
sudo chown -R pi:pi /home/pi" - gets no response, then trying "
xauth -b" gives "
Attempting to break locks on authority file /.Xauthority", waits a few seconds, then shows "
xauth: timeout in locking authority file /.Xauthority"
How to replicate error: I'm not 100% sure, but I know it was while I was using chmod and chown commands that everything went wrong...
EDIT: This error occurred while I was trying to set up MySQL, python and django. I assume I installed them correctly the first time, as I was able to check versions and create a project and run server etc, but when I tried to set up another project following the same instructions, I reached this point. I was following instructions from this website. Since posting this question I have successfully been able to SSH to the Pi, but on login I recieve this message:
Could not chdir to home directory /home/pi: Permission denied -bash: /home/pi/.bash_profile: Permission denied
And when I try to cd to pi, the message is similar:
-bash: cd: pi: Permission denied
What I want to happen: StartX to be running like before! Ah! Any help is hugely appreciated, and I apologise in advance for my level of understanding with Linux...
This is my first time posting a question here, so go easy on me (ha), and PLEASE let me know if there's anything you think might work, I'll be sure to execute and reply with any further information. Let's figure this out! - peanut