Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I was facing some trouble with my ethernet card and apparently we couldn't find a solution. So I just install the last release of gentoo (2.6.23 r3). I just installed GNOME and configured it as my default session manager. After rebooting, at the end of the booting sequence, I got a strange message:
Quote:
* Setting up xdm ...
start-stop-daemon: stat /usr/bin/xdm: No such file or directory (No such file or directory)
* ERROR: could not start the Display Manager [ok]
I thought it was a typo I made ("stat" instead of "start") while configuring but I can't find any occurence of this in the handbook I used.
Actually, no, it's not a typo, the problem is that your system doesn't have xdm installed, even if you use gdm (Gnome Display Manager) as your dm, you need to have installed xdm since gdm/kdm/slim depends on it to work. So, install it:
Code:
emerge xdm
(It's adviced that you should run emerge using the --pretend option before to install that or anyother package so you don't install dependencies that you don't want to)
I tried to emerge xdm.
Now it allmost works, but I don't understand why it launches
xdm instead of gnome at startup. I checked the configuration files /etc/conf.d/xdm and ~/.xinitrc but everything looks ok.
startx will call .xinitrc and then, whatever it is configured in it, i. e. if you have in your .xinitrc startgnome, then, by typing startx, you're calling .xinitrc and startgnome.
.xinitrc doesn't have anything to do with DMs, since to run startx you've to be already logged in, so, when you used startx, gnome came up because .xinitrc was configured to do that.
From conf.d, you configure xdm to call any DM you want using the DISPLAYMANAGER variable, when it's installed for the first time (xdm), it's configured like this:
Code:
DISPLAYMANAGER="xdm"
So, if you want to use gdm instead, you change that line to:
Code:
DISPLAYMANAGER="gdm"
However, if you read the comments about DMs in /etc/conf.d/xdm, you'll see:
Code:
# What display manager do you use ? [ xdm | gdm | kdm | entrance ]
# NOTE: If this is set in /etc/rc.conf, that setting will override this one.
And that's what happen when you edit your rc.conf, setting XSESSION="Gnome", the system is instructed to call Gnome the same way you did using .xinitrc regardless the configuration of xdm daemon, if the systems has to use XSESSION="Gnome", and nobody has logged in (which wasn't the case when you used .xinitrc), then, it has to call some DM to ask for login credentials, in this case, called GDM.
Thanks for your explanation. Yet there's something I don't understand:
in /etc/conf.d/xdm I had already changed DISPLAYMANAGER="gdm"
(That's what I wanted to say when I said that I had checked configuration files)
Or maybe there's something I have misunderstood?
One thing is that xdm always going to be loaded, no matter if you set gdm, kdm, entrance, slim, etc, /etc/ini.t/xdm will load first but it will check and try to load DISPLAYMANAGER setting for another DM. However, if you put gdm as your DM in conf.d/xdm, xdm will load but you'll see gdm, not xdm. If you changed the setting and it was still loading xdm (nowhere you saw gdm), then I'm clueless =/
Hope some other LQ member has a proper explanation to that
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.