sachinwable
Posts: 13
Joined: Fri May 13, 2016 9:17 am
Location: Pune
Contact: Website

Rasperry pi3 Can not login after installing tight vnc server

Sat May 21, 2016 4:28 am

Hello folks,

My pi3 never used to ask for username and password earlier it just used to show desktop when i switch it on. Today I installed tight vnc server and have set same password for both vnc server and view only password and i reboot it. Since then it has started asking for username and password to login. I have tried username as pi and password as raspberry and also have tried password I did set for vnc. Nothing works there..

What needs to be done in this case? Please see attached screen what i see now.

broe23
Posts: 903
Joined: Thu Jan 28, 2016 9:35 pm
Location: Central IL
Contact: Website

Re: Rasperry pi3 Can not login after installing tight vnc se

Sat May 21, 2016 4:45 am

Can you get into it with Putty or WinSCP if you have a Windows computer to use the later?

Are you trying to use VNC off of the LAN or on it?
Ren: Now listen, Cadet. I've got a job for you. See this button? Ren: Don't touch it! It's the History Eraser button, you fool! Stimpy: So what'll happen? Ren: That's just it. We don't know. Maybe something bad, maybe something good.

sachinwable
Posts: 13
Joined: Fri May 13, 2016 9:17 am
Location: Pune
Contact: Website

Re: Rasperry pi3 Can not login after installing tight vnc se

Sat May 21, 2016 4:47 am

I can not connect through vnc from my windows as well. It says actively refused.

sachinwable
Posts: 13
Joined: Fri May 13, 2016 9:17 am
Location: Pune
Contact: Website

Re: Rasperry pi3 Can not login after installing tight vnc se

Sat May 21, 2016 4:53 am

I can connect to it using filezilla to access files.

sachinwable
Posts: 13
Joined: Fri May 13, 2016 9:17 am
Location: Pune
Contact: Website

Re: Rasperry pi3 Can not login after installing tight vnc se

Sat May 21, 2016 5:00 am

Now i can login through putty as well. What next? Why I cant login through login screen using same username password i use for putty (pi and raspberry) when i access it on desktop?

sachinwable
Posts: 13
Joined: Fri May 13, 2016 9:17 am
Location: Pune
Contact: Website

Re: Rasperry pi3 Can not login after installing tight vnc se

Sat May 21, 2016 5:07 am

I have now even removed tightvncserver from pi through putty and rebooted still it shows login screen? tightvncserver was not causing this? Why it still asks for username and password and cant login using same username password as putty does?

sachinwable
Posts: 13
Joined: Fri May 13, 2016 9:17 am
Location: Pune
Contact: Website

Re: Rasperry pi3 Can not login after installing tight vnc se

Sat May 21, 2016 5:19 am

I got it working. I think tightvncserver is the only thing caused this problem, and it was asking for root password. But we dont have root enabled in pi.

Below are the things i did.

sudo passwd root
Above command to set password for root

Then i could login as root but I was not able to see any files on desktop that I created through user pi. So I executed command below.

sudo chown pi:pi .Xauthority

Then I rebooted it.

And FINALLY i could see desk top with the files I created as user pi. It doesnt ask for username password now. :D

I was about to format my sd card and start over but above commands saved lot of time.

Thank you,
Sachin

Return to “General discussion”