(Answer) (Category) Linux on PowerPC FAQ-O-Matic : (Category) X Windows : (Category) xdm :
I set up xdm, and now every time I log in, it comes back to the login prompt.
This is probably because you have no .xsession file. Xdm's
/usr/lib/X11/xdm/Xsession script, which controls the startup of user
sessions, looks for .xsession instead of .xinitrc (as startx does).
The easiest fix is probably to link them together:

  ln -s .xinitrc .xsession

It could also be that your PATH is wrong, so that .xsession can't find
any of the X binaries you've asked for. Or perhaps all the items in
your .xsession end with an ampersand, so none runs in the foreground, and
thus your session ends as soon as it began.

It could also be that your .xsession file needs execute permissions:
  chmod +x .xsession

But how can you fix anything if you can't log in? After you type your
name, hit enter, type your password, but don't hit enter -- hit
F1 instead. This gives you a "failsafe" login, with an xterm and no
window manager.

jonh@cs.dartmouth.edu
jonh@cs.dartmouth.edu
[Append to This Answer]
Previous: (Answer) How can I make X come up automatically? or How can I make xdm work?
Next: (Answer) I tried to make xdm work, and now my system's broken, and I can't get a shell!
This document is: http://www.jonh.net/cgi-bin/lppcfom/fom?file=88
[Search] [Appearance]
This is a Faq-O-Matic 2.717d.
Hosted by anduin.org and SourceForge Logo