I've just installed tightVNC on my raspberry pi. After I rebooted the device, it showed the login screen, which usually doesn't appear. When I enter the login, there's a black screen with a blinking underscore for about three seconds, after that it returns to the login screen. The login is definitely not wrong, if I type in a wrong password it shows an error message.

So I booted to the command line and removed tightvncserver. Still, I can't login. If the raspberry doesn't boot to the GUI I can easily login with user pi, but with the GUI login screen the same doesn't work. How can I fix this?

  • I am in the same situation. Could you solve it? I installed tightvncserver an the problem appears. Now I removed it and the situation persist.
    – user47637
    Commented Jun 6, 2016 at 20:46

1 Answer 1


Think this is the same issue I had after installing tightvnc. You need to make the pi user the owner of .Xauthority and that should fix the login issue. At least it did for me.

chown pi:pi .Xauthority
  • had to prefix with sudo for me, but worked well
    – Matt Kemp
    Commented May 22, 2019 at 2:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.