Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] kdm broken since KDE 4.6.2 upgrade
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Thu May 12, 2011 11:22 pm    Post subject: [Solved] kdm broken since KDE 4.6.2 upgrade Reply with quote

I haven't been able to get kdm to start since I upgraded to KDE 4.6.2. I followed the upgrade guide and startx will start a nearly-perfectly-working session for that user, but I can't get kdm to work at all.

/etc/init.d/xdm thinks everything is fine, but X only shows up with a black screen and a cursor for about a half a second, then exits.

I'm not sure what files people will need, X is working great or I'd post its information. Just let me know what you need.


Last edited by IQgryn on Wed May 18, 2011 12:59 am; edited 2 times in total
Back to top
View user's profile Send private message
jenkler
Apprentice
Apprentice


Joined: 28 Apr 2003
Posts: 222
Location: Sweden - Stockholm

PostPosted: Fri May 13, 2011 7:22 pm    Post subject: Hi Reply with quote

I have the same issue, i can figure out what to do, plese help :D

So fare i have:
* done the thing here http://www.gentoo.org/proj/en/desktop/kde/kde44-46-upgrade.xml
* Start twm with startx (that is working)
* Removed all kde pkg and then remerge

No luck

Code:

[# > cat /var/log/kdm.log                                                                                                                                     
********************************************************************************
Note that your system uses syslog. All of kdm's internally generated messages
(i.e., not from libraries and external programs/scripts it uses) go to the
daemon.* syslog facility; check your syslog configuration to find out to which
file(s) it is logged. PAM logs messages related to authentication to authpriv.*.
********************************************************************************

No protocol specified
kdmgreet: cannot connect to X server :0
No protocol specified
kdmgreet: cannot connect to X server :0


Code:

[# > cat /var/log/daemon | grep kdm                                                                                                                           
May 13 20:54:40 localhost kdm: :0[1940]: Received unknown or unexpected command -2 from greeter
May 13 20:54:40 localhost kdm: :0[1940]: Abnormal termination of greeter for display :0, code 1, signal 0
May 13 21:20:47 localhost kdm: :0[8052]: Received unknown or unexpected command -2 from greeter
May 13 21:20:47 localhost kdm: :0[8052]: Abnormal termination of greeter for display :0, code 1, signal 0

_________________
Hello from me: Jenkler IT AB (swedish) (use google translate). Check out my Linux manpages for web in english.
Back to top
View user's profile Send private message
flareguner
n00b
n00b


Joined: 13 May 2011
Posts: 4

PostPosted: Fri May 13, 2011 10:25 pm    Post subject: Reply with quote

I have similar problem: https://forums.gentoo.org/viewtopic-t-877905.html. AFAIK, this is dbus problem. Tell me in PM if you solve it pls.
Back to top
View user's profile Send private message
flareguner
n00b
n00b


Joined: 13 May 2011
Posts: 4

PostPosted: Fri May 13, 2011 10:26 pm    Post subject: Reply with quote

Quote:
* Removed all kde pkg and then remerge



How i can make it? Help me, gentoo guru.
Back to top
View user's profile Send private message
jenkler
Apprentice
Apprentice


Joined: 28 Apr 2003
Posts: 222
Location: Sweden - Stockholm

PostPosted: Sat May 14, 2011 10:40 am    Post subject: Reply with quote

flareguner wrote:
Quote:
* Removed all kde pkg and then remerge



How i can make it? Help me, gentoo guru.


Sorry but that did not work for me :-( but if you want to know just for knowing

backup /var/lib/portage/world first

* remove every pkg with kde in it, en then run emerge -av --depclean
* Install app-portage/portage-utils and use "qlist -I kde" to see what is left to remove
* Restore your world file and do an emerge -uDNav world


Has someone solved this issue jet ?
_________________
Hello from me: Jenkler IT AB (swedish) (use google translate). Check out my Linux manpages for web in english.
Back to top
View user's profile Send private message
jenkler
Apprentice
Apprentice


Joined: 28 Apr 2003
Posts: 222
Location: Sweden - Stockholm

PostPosted: Sun May 15, 2011 10:37 am    Post subject: hmm Reply with quote

Dont know how to fix this issue. Have now tried an empty tree on the system and it did not help

emerge -e world

I relly need some help here, plz
_________________
Hello from me: Jenkler IT AB (swedish) (use google translate). Check out my Linux manpages for web in english.
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1602
Location: Just over the horizon

PostPosted: Sun May 15, 2011 2:45 pm    Post subject: Reply with quote

I really don't know what is going on here, but a quick couple of things to check.

1) Is xdm in the default runlevel?

2) Is the DISPLAYMANAGER variable in the /etc/conf.d/xdm file set to "kdm"? Also is the CHECKVT variable set to a valid tty, like 7?

3) Have you verified that the kdebase/start-kde and kdm packages are installed and are the correct versions?
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Sun May 15, 2011 2:52 pm    Post subject: Reply with quote

what does /var/log/Xorg.0.log has in after kdm attempt ?

Last edited by dmpogo on Mon May 16, 2011 1:51 am; edited 2 times in total
Back to top
View user's profile Send private message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Mon May 16, 2011 1:42 am    Post subject: Reply with quote

platojones wrote:
I really don't know what is going on here, but a quick couple of things to check.

1) Is xdm in the default runlevel?

2) Is the DISPLAYMANAGER variable in the /etc/conf.d/xdm file set to "kdm"? Also is the CHECKVT variable set to a valid tty, like 7?

3) Have you verified that the kdebase/start-kde and kdm packages are installed and are the correct versions?


1) Yes, it tries to start but fails.
2+3) Yes, and starting kdm manually as root fails in the same way.

dmpogo wrote:
what does /var/log/Xorg.0.log has in after kdm attempt ?


Nothing, really. X starts just fine. /var/log/daemon.log has this:
Code:
kdm: :0[2400]: Received unknown or unexpected command -2 from greeter
kdm: :0[2400]: Abnormal termination of greeter for display :0, code 1, signal 0
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Mon May 16, 2011 1:51 am    Post subject: Reply with quote

dmpogo wrote:
what does /var/log/Xorg.0.log has in after kdm attempt ?


kdm writes its own log as well, usually /var/log/kdm.log

Anything useful there ?
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1602
Location: Just over the horizon

PostPosted: Mon May 16, 2011 1:54 am    Post subject: Reply with quote

Do you, by any chance, still have 'hal' installed? If so, you need to get rid of it.
Back to top
View user's profile Send private message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Mon May 16, 2011 3:08 am    Post subject: Reply with quote

platojones wrote:
Do you, by any chance, still have 'hal' installed? If so, you need to get rid of it.


Nope. Like I said, I followed the guide.

One detail I haven't mentioned is that I have two monitors (using xinerama). But again, X (and KDE) works just fine if I use startx -- only kdm seems to be broken.
Back to top
View user's profile Send private message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Mon May 16, 2011 3:10 am    Post subject: Reply with quote

dmpogo wrote:
dmpogo wrote:
what does /var/log/Xorg.0.log has in after kdm attempt ?


kdm writes its own log as well, usually /var/log/kdm.log

Anything useful there ?


Just this:
Code:
No protocol specified
kdmgreet: cannot connect to X server :0


The X server is running when I start /etc/init.d/xdm (I see the cursor for a fraction of a second before the error happens and then X closes because kdm aborts).
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Mon May 16, 2011 4:31 am    Post subject: Reply with quote

So kdm can not connect to X server. Sounds like authentication/premission problem. Could it be you need pam with consolekit USE flag enabled, or something like that ?
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Mon May 16, 2011 4:35 am    Post subject: Reply with quote

One the other note do you have dbus and consolekit started ?
Back to top
View user's profile Send private message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Mon May 16, 2011 11:53 am    Post subject: Reply with quote

dmpogo wrote:
So kdm can not connect to X server. Sounds like authentication/premission problem. Could it be you need pam with consolekit USE flag enabled, or something like that ?

One the other note do you have dbus and consolekit started ?


I do not have a consolekit USE flag to set for pam. I think it was removed in pam 1.1.3 and just set to permanently on.

Dbus and consolekit are both started.
Back to top
View user's profile Send private message
jenkler
Apprentice
Apprentice


Joined: 28 Apr 2003
Posts: 222
Location: Sweden - Stockholm

PostPosted: Mon May 16, 2011 1:51 pm    Post subject: Reply with quote

dmpogo wrote:
One the other note do you have dbus and consolekit started ?


Yes, they ar both in the default runlevel as the guide states :D.

this shit makes me crazy 8O. any other good hints. I have also removed all traces of dbus and another install of all the pkg .. No luck . :(
_________________
Hello from me: Jenkler IT AB (swedish) (use google translate). Check out my Linux manpages for web in english.
Back to top
View user's profile Send private message
humanthing
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2006
Posts: 141

PostPosted: Tue May 17, 2011 7:58 pm    Post subject: Reply with quote

Same problem here. Followed the guide and now kdm refuses to start.
When I try starting X via startx as root I get a working twm session, but when executing startx as normal user I get an error from X complaining about a missing xkeyboard-config...

I'm not sure if this is related but mysqld also refuses to start.
_________________
""Sir! We are surrounded!" - "Excellent! We can attack in any direction!""
Back to top
View user's profile Send private message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Tue May 17, 2011 10:00 pm    Post subject: Reply with quote

humanthing wrote:
Same problem here. Followed the guide and now kdm refuses to start.
When I try starting X via startx as root I get a working twm session, but when executing startx as normal user I get an error from X complaining about a missing xkeyboard-config...

I'm not sure if this is related but mysqld also refuses to start.


That sounds like something different. I can run startx as any user just fine, it's /etc/init.d/xdm that's broken for me.
Back to top
View user's profile Send private message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Tue May 17, 2011 10:26 pm    Post subject: Reply with quote

Alright, so I don't know if this is the root cause or just fixes things for now, but:

In /usr/share/config/kdm/kdmrc, the [General] section, comment the line that says:
Code:
GreeterUID=kdm
(the default is root)

This fixes my issue entirely, though I'd rather have kdm running as non-root.
Back to top
View user's profile Send private message
katull
n00b
n00b


Joined: 07 Jul 2004
Posts: 4
Location: karlsruhe

PostPosted: Wed May 18, 2011 12:51 am    Post subject: Reply with quote

IQgryn wrote:

..
In /usr/share/config/kdm/kdmrc, the [General] section, comment the line that says:
Code:
GreeterUID=kdm
(the default is root)

This fixes my issue entirely, though I'd rather have kdm running as non-root.


I fixed the issue similary, thanks to https://bbs.archlinux.org/viewtopic.php?id=113401
If you don't want to change GreeterUID, follow the solution at the end of that post.

Brief instruction:

Create a folder (for example: /var/run/kdm) and set its owner to kdm:
Code:
mkdir /var/run/kdm
chown kdm:kdm /var/run/kdm

With your favorite editor, set AuthDir in /usr/share/config/kdm/kdmrc to your newly created folder:
Code:
AuthDir=/var/run/kdm


Done.
Back to top
View user's profile Send private message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Wed May 18, 2011 12:58 am    Post subject: Reply with quote

I just received a response to the bug I filed at https://bugs.gentoo.org/show_bug.cgi?id=367833.

The fix is to chmod 755 /var/run/xauth, or the way katull mentioned should also work.

Now I just have to track down these sound issues. But that's another thread.
Back to top
View user's profile Send private message
jenkler
Apprentice
Apprentice


Joined: 28 Apr 2003
Posts: 222
Location: Sweden - Stockholm

PostPosted: Wed May 18, 2011 5:36 pm    Post subject: Reply with quote

IQgryn wrote:
I just received a response to the bug I filed at https://bugs.gentoo.org/show_bug.cgi?id=367833.

The fix is to chmod 755 /var/run/xauth, or the way katull mentioned should also work.

Now I just have to track down these sound issues. But that's another thread.



Thanks man, this was the best solution :D
_________________
Hello from me: Jenkler IT AB (swedish) (use google translate). Check out my Linux manpages for web in english.
Back to top
View user's profile Send private message
critikaster
n00b
n00b


Joined: 12 Feb 2014
Posts: 6

PostPosted: Wed Feb 12, 2014 7:44 pm    Post subject: Reply with quote

I tried all of this, but it didn't work for me. What did is:

Quote:
xdm/kdm will refuse any login attempts if the user has a weak password.


From:
https://forums.gentoo.org/viewtopic-p-7499190.html#7499190
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum