TheTwister
Posts: 18
Joined: Fri Dec 29, 2017 6:39 pm

Cannot login through GUI

Sat Aug 03, 2019 1:19 pm

I am unable to log into my Raspberry Pi using the GUI.
But able to login using Putty.

I only have one username and password.

Any ideas?

User avatar
DougieLawson
Posts: 40787
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Cannot login through GUI

Sat Aug 03, 2019 1:49 pm

Have you changed the userid from 'pi'?
Have you connected your new userid to the following groups: adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi?
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Andyroo

Re: Cannot login through GUI

Sat Aug 03, 2019 2:23 pm

Is Putty set to use certificates or have the password hard coded?

It could be the national language on the Pi not matching your keyboard.

User avatar
B.Goode
Posts: 11169
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Cannot login through GUI

Sat Aug 03, 2019 2:49 pm

TheTwister wrote:
Sat Aug 03, 2019 1:19 pm
I am unable to log into my Raspberry Pi using the GUI.
But able to login using Putty.

I only have one username and password.

Any ideas?


My idea is to ask you to specify what Operating System you are running on your RPi.


(Because by default the recommended Raspbian Operating System simply starts in the Raspberry Pi Desktop (GUI) without any login being required.)

TheTwister
Posts: 18
Joined: Fri Dec 29, 2017 6:39 pm

Re: Cannot login through GUI

Sat Aug 03, 2019 4:18 pm

Thank you for the replies.

- I haven't created a new user ID.
- I am using Raspbian 9
- However I am not sure if the languages are correct. I tried VNCing also but still no luck

User avatar
B.Goode
Posts: 11169
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Cannot login through GUI

Sat Aug 03, 2019 4:42 pm

TheTwister wrote:
Sat Aug 03, 2019 4:18 pm
Thank you for the replies.

- I haven't created a new user ID.
- I am using Raspbian 9
- However I am not sure if the languages are correct. I tried VNCing also but still no luck

Is this a new installation of the now-superceded Raspbian Stretch Operating System?

Or something that used to work but has recently 'broken'?

Which of the 3 variants of Raspbian Stretch are you running?


This might be a symptom of having no free space left on the root filesystem of your Operating System.

The

Code: Select all

df -h
command might reveal this, there should be no entries at or very near to 100%.

fbe
Posts: 663
Joined: Thu Aug 17, 2017 9:08 pm

Re: Cannot login through GUI

Sat Aug 03, 2019 5:06 pm

Autologin to the desktop as user pi is the default behavior for a raspbian image. If you disabled that you can enable it via PuTTY with raspi-config.

Code: Select all

sudo raspi-config
then select "3 Boot Options", "B1 Desktop/CLI", "B4 Desktop Autologin".

Then after reboot on the desktop you can try in a terminal window or editor whether or not the letters are shown that you hit on your keyboard...

TheTwister
Posts: 18
Joined: Fri Dec 29, 2017 6:39 pm

Re: Cannot login through GUI

Sat Aug 03, 2019 6:17 pm

B.Goode wrote:
Sat Aug 03, 2019 4:42 pm

Is this a new installation of the now-superceded Raspbian Stretch Operating System?

Or something that used to work but has recently 'broken'?

Which of the 3 variants of Raspbian Stretch are you running?


This might be a symptom of having no free space left on the root filesystem of your Operating System.

The

Code: Select all

df -h
command might reveal this, there should be no entries at or very near to 100%.
Ah yes My

Code: Select all

 /dev/root  
is showing 100% so that could be the reason. I hardly save stuff on there but might be updates of programs or cache to something.
Is there a command i can use to remove old versions of files?

User avatar
DougieLawson
Posts: 40787
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Cannot login through GUI

Sat Aug 03, 2019 6:31 pm

sudo rm /var/log/* will get you enough space to logon and look at where the space is being used.

If your SDCard has NOOBS you'd lost 1.3GB before installing Raspbian. With Buster Raspbian doesn't really fit on an 8GB card. Minimum recommended size is 16GB now.
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

User avatar
B.Goode
Posts: 11169
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Cannot login through GUI

Sat Aug 03, 2019 6:32 pm

Is there a command i can use to remove old versions of files?



The Raspbian root filesystem does not store versions of files.

The rm (remove) command can be used to delete/erase files.
Last edited by B.Goode on Sat Aug 03, 2019 9:01 pm, edited 1 time in total.

User avatar
rpdom
Posts: 18130
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Cannot login through GUI

Sat Aug 03, 2019 7:24 pm

If you've been running sudo apt-get upgrade (or dist-upgrade) at all, you should run sudo apt-get clean every now and then to delete the old installation files that are no longer needed.

If you only use sudo apt upgrade (or full-upgrade) you don't need to do that.
Unreadable squiggle

Return to “Troubleshooting”