LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
Search this Thread
Old 06-28-2002, 08:37 AM   #1
gusgorman
Member
 
Registered: Mar 2002
Location: uk
Distribution: slackware-9b, mandrake-8.1
Posts: 50

Rep: Reputation: 15
default window manager session with xdm


i'm having a bit of a problem setting window maker as my default session in xdm ( or even gdm)

i built window maker from source on my mandrake 8.1 box, and have fallen fowl of the myriad of scripts on the mandrake box (compared to my friends debian box).

gdm goes into gnome by default, ( i think i am going to remove gnome and gdm because i never use gnome anymore) and xdm launches twm.

if i do startx then window maker lauches :-)

-- my ~/.xinitrc is as follows:

-------------------
PATH="$PATH:/usr/local/bin"

# If you login from xdm, uncomment this to make error messages appear
# in the console window.
#
# tail -f /home/jordan/.xsession-errors > /dev/console &

exec wmaker
--------------------

to be honest ive never really looked into all the X init scripts before so im a bit lost.

ive done a man xdm but with no luck.

any help much appreciated.
 
Old 06-28-2002, 01:16 PM   #2
Risc91
Member
 
Registered: Jan 2002
Location: Macomb, MI
Distribution: Ubuntu|Red Hat ES|AIX
Posts: 161

Rep: Reputation: 30
I had a similar problem with my setup. For some reason or another the login manager never looked at my .xinitrc so modifying that didn't do anything. I did some digging and found that I had to add an entry to my Xsession file.

/etc/X11/xdm/Xsession

scroll down till you find an area that looks similar to this:

1)
if [ -x /usr/share/apps/switchdesk/Xclients.$1 ]; then
exec -l $SHELL -c "/usr/share/apps/switchdesk/Xclients.$1";
fi;

**there are a few more lines here**

gnome)
exec -l $SHELL -c "gnome-session"
;;

I think you need to add a line like the one above for Window Maker. Doing the following should work just fine.

windowmaker)
exec /usr/share/windowmaker
;;

I did this when I was using KDE with kdm login manager. I added a few lines for blackbox and everything works great now. Hope this helps.
 
Old 06-28-2002, 01:49 PM   #3
fool_inteligent
Member
 
Registered: Jun 2002
Posts: 91

Rep: Reputation: 15
use "switchdesk" command.
like "switchdesk GNOME" or "switchdesk KDE"
 
Old 06-29-2002, 06:03 AM   #4
gusgorman
Member
 
Registered: Mar 2002
Location: uk
Distribution: slackware-9b, mandrake-8.1
Posts: 50

Original Poster
Rep: Reputation: 15
thanks for the replies, unfortuntaly good old mandrake seems to be set up a bit different to redhat:

switchdesk isnt available.

/etc/X11/xdm/Xsession just calls /etc/X11/Xsession. i have tried adding the line:

exec wmaker

or

if [ -x /usr/local/bin/wmaker ];then
exec $SSH_AGENT /usr/local/bin/wmaker

but it still just starts twm.

anyone any ideas?
i suppose it isnt vital seeing as startx is working fine, but i'd like to at least understand what is going on for peace of mind.


thanks.

(Heres a great example of someone using mandrake and therefore not knowing how something in particular is set up...i think im gonna switch to debian soon anyway.....)
 
Old 06-29-2002, 06:57 AM   #5
mrGee
Member
 
Registered: Dec 2001
Location: Netherlands
Distribution: redhat suse mandrake freebsd
Posts: 344

Rep: Reputation: 30
Hi
There are two ways; hacking scripts, or use the (running) gdm itself
First the easy way in gdm choose
(have to guess correct tabnames as i use mine in dutch )
system -> configure (give in root passwd) then choose Expert
go to tab login sessions and add a session
mine for windowmaker; #! /bin/sh
exec /etc/X11/xdm/Xsession WindowMaker
Guess you can use wmaker inst. WindowMaker
For script hacking look in /etc/X11/gdm/gdm.conf and
check /etc/X11/gdm/ Sessions and so on
use slocate gdm and see what needs to be changed as i only
used gdm itself to add sessions
 
Old 06-29-2002, 07:14 AM   #6
gusgorman
Member
 
Registered: Mar 2002
Location: uk
Distribution: slackware-9b, mandrake-8.1
Posts: 50

Original Poster
Rep: Reputation: 15
again thanks for the help but adding a session to gdm doesnt work ( presumably because i built wmaker from source rather than using the mandrake rpm. )
 
Old 06-29-2002, 07:39 AM   #7
mrGee
Member
 
Registered: Dec 2001
Location: Netherlands
Distribution: redhat suse mandrake freebsd
Posts: 344

Rep: Reputation: 30
what is the path to your wmaker script ?
from startx your wmaker fires up allright ?
maybe use the complete path
 
Old 06-29-2002, 08:41 AM   #8
gusgorman
Member
 
Registered: Mar 2002
Location: uk
Distribution: slackware-9b, mandrake-8.1
Posts: 50

Original Poster
Rep: Reputation: 15
yep with startx wmaker fires up great.

i dont think ive got a wmaker script, the binary in /usr/local/bin/wmaker
 
Old 06-29-2002, 09:39 AM   #9
gusgorman
Member
 
Registered: Mar 2002
Location: uk
Distribution: slackware-9b, mandrake-8.1
Posts: 50

Original Poster
Rep: Reputation: 15
i think the problem might have been that /usr/local/bin wasn't being found in my PATH, even tho it is added in both roots and my own ~/.bashrc file.

strange. once i added PATH="$PATH:/usr/local/bin" to my /etc/X11/Xsession script everything worked. ( this was after re-writing the whole Xsession script.......oh well)

anyone know why this is?
 
Old 06-30-2002, 05:27 PM   #10
fool_inteligent
Member
 
Registered: Jun 2002
Posts: 91

Rep: Reputation: 15
switchdesk works when it is installed and also the switchdesk rpm of the desktop environment
KDE-switchdesk-2.0
 
Old 07-01-2002, 10:04 AM   #11
mace
Member
 
Registered: Apr 2002
Distribution: redhat7, 7.1, 7.2, 8.0, mandrake, debian2.2, 3, suse
Posts: 176

Rep: Reputation: 30
just because you built from source doesn't mean adding to the */gdm/Sessions shouldn't work. ive done it with black/flux/open box no probs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
default window manager srinis Linux - General 2 01-24-2005 04:02 AM
Default window session jborne Linux - Newbie 2 01-04-2005 12:03 PM
How do I add another window manager to my GDM session list? RoaCh Of DisCor Linux - Software 0 07-08-2004 05:57 PM
login with xdm without window manager for some users Saak Linux - Software 5 05-17-2004 05:32 PM
Default Window Manager JHuizingh Linux - General 6 08-19-2001 11:43 AM


All times are GMT -5. The time now is 08:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration