You are not logged in.

#1 2006-04-01 17:02:28

RobK
Member
Registered: 2005-12-07
Posts: 121

Can't get Login Manager (xdm) to work

I would like to boot directly into a login maqnager such as xdm or wdm. 
I have read the wiki on "Adding a login manager" but can't get xdm to work.

I have the following line in my /etc/inittab

x:5:respawn:/usr/bin/xdm  -nodaemon

I have the following in .xsession

/bin/bash  --login -i ~/.xinitrc

But I don't have a .xinitrc file.  That is probably the problem.

I would like to boot into xdm and then after logging in go to xfce4. 
What do I need to do?

Rob

Offline

#2 2006-04-01 17:29:22

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Can't get Login Manager (xdm) to work

Remove that line from .xsession, and put in

startxfce4

instead.

Offline

#3 2006-04-01 18:22:56

RobK
Member
Registered: 2005-12-07
Posts: 121

Re: Can't get Login Manager (xdm) to work

Thanks. That did not quite do it.  But I am closer.  Now I get to the xdm login screen.  I can type my user name and password but it always returns to the login screen.  I nver get to xfce4.

(If I type a wrong password, it tells me.  So I know that it is authenticating properly).

What is wrong?  Why doesn't it go to the xfce4 screen?

Ron

Offline

#4 2006-04-01 20:30:36

Sander
Member
Registered: 2006-02-26
Posts: 138

Re: Can't get Login Manager (xdm) to work

startxfce4 tries to start the x-server, which was already started for xdm. 2 xservers is not a good idea (not in most cases, anyways). Try using 'xfce4-session' instead of 'startxfce4'.


You like cheese? You like peas? You'll love cheezy peas!

Offline

#5 2006-04-01 21:19:23

RobK
Member
Registered: 2005-12-07
Posts: 121

Re: Can't get Login Manager (xdm) to work

That made no difference.  I can't see what is wrong.  .xsession is an executable file. 

How can I troubleshoot this?  /var/log/messages etc is useless.

Rob

Offline

#6 2006-04-01 21:41:02

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Can't get Login Manager (xdm) to work

You should have .xsession-errors in the same directory as .xsession. Have a look at it, there may be something useful there.

Sander - startxfce4 only tries to start the server if it's not already running. If it finds a server, it starts the session only.

Offline

#7 2006-04-02 00:45:21

RobK
Member
Registered: 2005-12-07
Posts: 121

Re: Can't get Login Manager (xdm) to work

Thanks.  That log does not show anything.  However, there is a log in /var/log/xdm-errors.log.  It shows:

Cannot open config file.  Using builtin defaults.
FreeFontPath:  FPE "/usr/sg=hare/fonts/misc" refcount is 2, should be 1: fixing.

....

I also tried using wdm.  wdm does work.  But no matter what window managaer I choose, it always opens startxfce4.  Strange...

But I am perplexed that I can't get xdm to work.  My setup is very simple.

Here is my latest attempt:

.xsession reads:

/bin/bash --login -i ~/.xinitrc

.xinitrc reads:

/opt/xfce4/bin/startxfce4

-----

Any ideas?

Rob

Offline

#8 2006-04-02 04:45:50

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Can't get Login Manager (xdm) to work

Try with:
exec /opt/xfce4/bin/startxfce4
in your ~/.xinitrc

Offline

Board footer

Powered by FluxBB