Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 06:19 AM
Mark Hobley
 
Posts: n/a
Default Gentoo - startx starts twm and not my preferred window manager

I am using Gentoo, and I have installed the X windowing system as
follows:

emerge xorg-x11

Xorg -configure
mv /root/xorg.conf/new /etc/X11/xorg.conf

I now install a window manager as follows:

emerge jwm

I add the following entry to /etc/rc.conf:

XSESSION="jwm"

I check that the session file exists:

ls -l /etc/X11/Sessions

-rwxr-xr-x 1 root root 2187 Apr 14 08:58 Xsession
-rwxr-xr-x 1 root root 28 Apr 18 03:26 jwm
^
|
Yes it does

I check that there is nothing in my home directory that overrides the
default:

cd
ls -la .*

-rw------- 1 mark mark 101 Apr 18 04:07 .Xauthority
-rw------- 1 mark mark 52 Apr 18 20:42 .serverauth.3823

I delete those files (I don't know whether or not they are relevant).

startx

I am still getting the twm window manager. I want to run jwm.

I try to start it from a terminal window:

jwm

This gives an error:

JWM: error: display is already managed

Why is my /etc/rc.conf not changing the default window manager?

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 06:19 AM
Nikos Chantziaras
 
Posts: n/a
Default Re: Gentoo - startx starts twm and not my preferred window manager

Mark Hobley wrote:
> I try to start it from a terminal window:
>
> jwm
>
> This gives an error:
>
> JWM: error: display is already managed
>
> Why is my /etc/rc.conf not changing the default window manager?


I think rc.conf is for XDM. If you're not using XDM (or KDM), you need
to start jwm in your ~/.xinitrc. In my KDE system, I've put "startkde"
in there. In your case, use the command that starts jwm.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 06:19 AM
Harold Stevens
 
Posts: n/a
Default Re: Gentoo - startx starts twm and not my preferred window manager

["Followup-To:" header set to comp.os.linux.misc.]

In <2tcnd5-d5c.ln1@neptune.markhobley.yi.org> Mark Hobley:

[Snip...]

> Why is my /etc/rc.conf not changing the default window manager?


Shot in the dark...

I'm not familar with Gentoo, but I *think* it my be whatever supposed to
change ~/.xinitrc to do the "right" WM isn't.

Try manually editing your ~/.xinitrc at the end where the WM is started.

It should look something like

xterm -bg black -fg white -T VistaSux &
xclock -update 1 &
jwm # or whatever WM; notice it does NOT end in an ampersand (&)

Make sure you're not in run level 5 (X) and try startx from a console.

HTH; YMMV...

--
Regards, Weird (Harold Stevens) * IMPORTANT EMAIL INFO FOLLOWS *
Pardon any bogus email addresses (wookie) in place for spambots.
Really, it's (wyrd) at airmail, dotted with net. DO NOT SPAM IT.
Kids jumping ship? Looking to hire an old-school type? Email me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-19-2008, 06:19 AM
Jerry McBride
 
Posts: n/a
Default Re: Gentoo - startx starts twm and not my preferred window manager

Nikos Chantziaras wrote:

> Mark Hobley wrote:
>> I try to start it from a terminal window:
>>
>> jwm
>>
>> This gives an error:
>>
>> JWM: error: display is already managed
>>
>> Why is my /etc/rc.conf not changing the default window manager?

>
> I think rc.conf is for XDM. If you're not using XDM (or KDM), you need
> to start jwm in your ~/.xinitrc. In my KDE system, I've put "startkde"
> in there. In your case, use the command that starts jwm.



Like you've been told... read /etc/rc.conf and set it to the wm that you
desire...


--

Jerry McBride (jmcbride@mail-on.us)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-19-2008, 02:49 PM
Mark Hobley
 
Posts: n/a
Default Re: Gentoo - startx starts twm and not my preferred window manager

In alt.os.linux.gentoo Jerry McBride <jmcbride@mail-on.us> wrote:

> Like you've been told... read /etc/rc.conf and set it to the wm that you
> desire...


My /etc/rc.conf contains an entry as follows:

XSESSION="jwm"

Debugging the chooser.sh script, it appears that GENTOO_EXEC is being
configured to /etc/X11/Sessions/jwm, which is correct.

However, I am still getting twm, xclock and xterm on the display.

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-19-2008, 02:49 PM
Mark Hobley
 
Posts: n/a
Default Re: Gentoo - startx starts twm and not my preferred window manager

Mark Hobley <markhobley@hotpop.donottypethisbit.com> wrote:

Examining the default /etc/X11/xinit/xinitrc:

# If not present, try the system default
elif [ -n "`/etc/X11/chooser.sh`" ]; then
exec "`/etc/X11/chooser.sh`" <--- This is not run

# Failsafe
else
# start some nice programs <--- This is running
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
fi

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-19-2008, 02:49 PM
Enrique Perez-Terron
 
Posts: n/a
Default Re: Gentoo - startx starts twm and not my preferred window manager

On Fri, 18 Apr 2008 21:08:06 +0000, Mark Hobley wrote:

> I am using Gentoo, and I have installed the X windowing system as


[snip]

> I now install a window manager as follows:
>
> emerge jwm
>
> I add the following entry to /etc/rc.conf:
>
> XSESSION="jwm"


Just another shot in the dark:

export XSESSION

[snip]

> -rw------- 1 mark mark 101 Apr 18 04:07 .Xauthority
> -rw------- 1 mark mark 52 Apr 18 20:42 .serverauth.3823
>
> I delete those files (I don't know whether or not they are relevant).


They get recreated. If you start another X application as a different
user, the applications need access to this file to make the x server
believe that it has the right to open a window.

>
> startx


Take a hard look at how startx works and what files it reads.

Try e.g.

/bin/bash -x /usr/bin/startx

That will tell you where to look.

When you start X from /etc/inittab, everything may be different. I have

/etc/X11/prefdm -nodaemon

which selects a display manager (my default is gdm). Then, gdm runs gdm-
binary. To know for sure what gdm-binary does, I suggest you run

strace -e trace=open -o /tmp/gdm.strace -f /etc/X11/prefdm -nodaemon

from a console. You may have to install strace.

Gdm could have been better documented. I think I remember the manpage
used to say it was a dropin replacement for xdm, so the xdm manpage did
apply. Now I do not have that manpage installed. Perhaps google is your
friend.

The strace method is quite powerful but it can be hard to decode the
output. On the other hand, it almost cannot fail to tell something true.

Regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:03 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145