You are not logged in.

#1 2015-06-10 01:29:39

hotshot247
Member
Registered: 2014-06-15
Posts: 23

Lightdm Issue

I just got finished installing and setting up arch linux....got xorg set up, video drivers, etc and i just installed cinnamon and lightdm and cinnamon works if i run startx as root but i don't want to be root running cinnamon. what i want to do is run lightdm and sign into cinnamon that way. lightdm works by typing systemctl start lightdm but when i type my password and sign in, it doesn't go to cinnamon, it kicks me back to the sign on screen in lightdm (cinnamon is selected btw). does anybody know how to fix that? thanks!

EDIT: so nobody knows? Just fyi, I'm not a guy who asks questions without doing my research... I've done my research and found out that it's not just with lightdm... Gdm does the same thing.. And I've searched the arch wiki on the issue looking at the display managers, cinnamon, everything I could think of with no luck.. Any help would be awesome! Thanks!

Last edited by hotshot247 (2015-06-10 23:35:44)

Offline

#2 2015-06-11 06:25:38

rh995
Member
Registered: 2012-03-09
Posts: 76

Re: Lightdm Issue

My first thought is to try `systemctl enable lightdm' and then reboot. That might not fix the issue, but it is at least the right way to start a display manager.

Have you tried starting any other desktop environments besides cinnamon? LXDE is quite small, try installing that and see if it's just cinnamon that is broken.

Offline

#3 2015-06-11 13:55:20

hotshot247
Member
Registered: 2014-06-15
Posts: 23

Re: Lightdm Issue

Yea, i also tried gnome shell with no luck, it just keeps kicking me back to the login menu.. I've even tried a different display manager.. I've tried gdm and lightdm with no luck. I even set up cinnamon to run when i type startx and it worked that way and that is how I know cinnamon is not broken but the only bad thing about that is i can only run it as root and that's not a good idea.. I set up arch Linux before and then went with Ubuntu but now I want to go back.. It didn't give me this problem before, it makes no sense..

Offline

#4 2015-06-11 14:04:25

FlowIt
Member
Registered: 2014-10-25
Posts: 243

Re: Lightdm Issue

What did you install exactly? You need cinnamon-session. I encounterd the same problem with Xfce when xfce4-session was not installed.

Offline

#5 2015-06-11 14:12:02

hotshot247
Member
Registered: 2014-06-15
Posts: 23

Re: Lightdm Issue

When I typed the command to install cinnamon, it installed Cinnamon session as well. I know it's installed because when i edited the xinitrc file to add it so i can run startx to start it, i had to write "exec Cinnamon-session" to the file then when i ran startx, cinnamon worked flawlessly. I just have to run it as root that way is the only problem

Offline

#6 2015-06-11 14:21:51

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: Lightdm Issue

So, lets start at the beginning. You say you get kicked out when you run it as your own user, but it works with startx as root? Dit you try the startx route as your normal user and if so, did this work?

EDIT: After rereading your comments, I am not convinced that the Xserver actually works as a normal user. Make sure it does before you put the blame on something else.

Last edited by runical (2015-06-11 14:23:26)

Offline

#7 2015-06-11 17:24:47

hotshot247
Member
Registered: 2014-06-15
Posts: 23

Re: Lightdm Issue

no, i didn't get kicked out when i run startx as a normal user, i get kicked out when i start the display manager, "systemctl start lightdm", and it goes to the login screen and i type my password and make sure that cinnamon is selected and when i hit enter, it doesn't do anything for a second and then the login screen shows back up again. i just tried to type startx as a normal user just to see the error that comes up and this is exactly what it says: "xauth: timeout in locking authority file /home/chris/.Xauthority"

EDIT: I figured out it was a user issue and not the display manager that's messing up...i loaded gdm and signed in as root and it worked but when i try to sign in as a user, it doesn't..

Last edited by hotshot247 (2015-06-11 17:35:45)

Offline

#8 2015-06-11 17:31:31

rh995
Member
Registered: 2012-03-09
Posts: 76

Re: Lightdm Issue

Try deleting .Xauthority and then running startx again.
edit: To be clear, run startx as normal user, not as root.

Last edited by rh995 (2015-06-11 17:32:13)

Offline

#9 2015-06-11 17:50:36

rlees85
Member
From: Daventry, UK
Registered: 2015-04-29
Posts: 98
Website

Re: Lightdm Issue

I use cinnamon and lightdm and this is how I always set it up

sudo pacman -S --needed cinnamon gnome-terminal gedit gnome-disk-utility
sudo nano ~/.xinitrc

now in this file just write the following line and nothing else:

exec cinnamon-session

back to the commands:

sudo pacman -S --needed lightdm lightdm-gtk-greeter
sudo systemctl enable lightdm.service
sudo nano /etc/lightdm/lightdm.conf

In here somewhere there is a line commented out

#greeter-session=

Change it too:

greeter-session=lightdm-gtk-greeter

And to finish:

sudo reboot

This obviously assumes you have sudo installed and configured. If you log on as root obviously you can omit the sudo in all above commands.

I learnt from here:
https://wiki.archlinux.org/index.php/Cinnamon
https://wiki.archlinux.org/index.php/LightDM

Offline

#10 2015-06-11 17:53:27

hotshot247
Member
Registered: 2014-06-15
Posts: 23

Re: Lightdm Issue

so i figured out what the issue was....it was so simple that i'm almost ashamed to write it on here because i don't usually make noobish mistakes like this one, LOL but i thought about it being a permissions issue so i just typed "sudo chmod 777 /home/chris/" and it worked! now i can sign in as my user.

Offline

#11 2015-06-11 18:50:06

rlees85
Member
From: Daventry, UK
Registered: 2015-04-29
Posts: 98
Website

Re: Lightdm Issue

Glad its working, but that is weird... your home directory should not need 777. Try setting it to 700 (as it should be) and if that fails put it back to 777.

drwx------ 47 rich rich 4096 Jun 11 18:36 rich

Are you using an encrypted home folder or something ?

Offline

#12 2015-06-13 20:42:52

hotshot247
Member
Registered: 2014-06-15
Posts: 23

Re: Lightdm Issue

no, it's not encrypted..maybe it's how i created the user in the first place...not sure..i thought it was weird also.

Offline

Board footer

Powered by FluxBB