LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2003, 05:47 PM   #1
Lotmr
LQ Newbie
 
Registered: Jun 2003
Location: Salmon Arm, BC, Canada
Distribution: Debian, Mepis
Posts: 25

Rep: Reputation: 15
Question Windowmaker help


I am running Red Hat 9.0 with GNOME and want to increase system performance (on a 200mhz Dell). I downloaded windowmaker complied it, ran wmaker.inst and now what? how do i actually start it?

Thanks
If there are better Window Managers out there please feel free to say so.

Thx Lotmr
 
Old 06-21-2003, 06:02 PM   #2
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
you need to edit your xinitrc file to read "exec wmaker" instead of "gnome-session", or whatever it says now.

It should be in /etc/X11/xinit/ , or in ~/xinitrc.
 
Old 06-22-2003, 10:58 PM   #3
Lotmr
LQ Newbie
 
Registered: Jun 2003
Location: Salmon Arm, BC, Canada
Distribution: Debian, Mepis
Posts: 25

Original Poster
Rep: Reputation: 15
uh....yeah about that...

It seems my xinitrc will take a bit more than some simple text editing....

#!/bin/sh
# (c) 1999-2002 Red Hat, Inc.

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
userxkbmap=$HOME/.Xkbmap

sysresources=/etc/X11/Xresources
sysmodmap=/etc/X11/Xmodmap
sysxkbmap=/etc/X11/Xkbmap

# merge in defaults
if [ -f "$sysresources" ]; then
xrdb -merge "$sysresources"
fi

if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi

# merge in keymaps
if [ -f "$sysxkbmap" ]; then
setxkbmap `cat "$sysxkbmap"`
XKB_IN_USE=yes
fi

if [ -f "$userxkbmap" ]; then
setxkbmap `cat "$userxkbmap"`
XKB_IN_USE=yes
fi

if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then
if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
xkbsymbols=`sed -n -e 's/^[ ]*XkbSymbols[ ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config`
if [ -n "$xkbsymbols" ]; then
setxkbmap -symbols "$xkbsymbols"
XKB_IN_USE=yes
fi
fi
fi

# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
if [ -f "$sysmodmap" ]; then
xmodmap "$sysmodmap"
fi

if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
fi

unset XKB_IN_USE

# run all system xinitrc shell scripts.
for i in /etc/X11/xinit/xinitrc.d/* ; do
if [ -x "$i" ]; then
. "$i"
fi
done

# The user may have their own clients they want to run. If they don't,
# fall back to system defaults.
# set up ssh agent environment if available.

if [ -f $HOME/.Xclients ]; then
[ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ] && \
exec ssh-agent $HOME/.Xclients || \
exec $HOME/.Xclients
elif [ -f /etc/X11/xinit/Xclients ]; then
[ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ] && \
exec ssh-agent /etc/X11/xinit/Xclients || \
exec /etc/X11/xinit/Xclients
else
# failsafe settings. Although we should never get here
# (we provide fallbacks in Xclients as well) it can't hurt.
xclock -geometry 100x100-5+5 &
xterm -geometry 80x50-50+150 &
if [ -x /usr/bin/netscape -a -f /usr/share/doc/HTML/index.html ]; then
netscape /usr/share/doc/HTML/index.html &
fi
if [ -x /usr/X11R6/bin/fvwm2 ]; then
exec fvwm2
else
exec twm
fi
fi


Can i get some Guru backup on this one?
 
Old 06-23-2003, 12:36 AM   #4
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
# out:

if [ -f $HOME/.Xclients ]; then
[ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ] && \
exec ssh-agent $HOME/.Xclients || \
exec $HOME/.Xclients
elif [ -f /etc/X11/xinit/Xclients ]; then
[ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ] && \
exec ssh-agent /etc/X11/xinit/Xclients || \
exec /etc/X11/xinit/Xclients
else
# failsafe settings. Although we should never get here
# (we provide fallbacks in Xclients as well) it can't hurt.
xclock -geometry 100x100-5+5 &
xterm -geometry 80x50-50+150 &
if [ -x /usr/bin/netscape -a -f /usr/share/doc/HTML/index.html ]; then
netscape /usr/share/doc/HTML/index.html &
fi
if [ -x /usr/X11R6/bin/fvwm2 ]; then
exec fvwm2
else
exec twm
fi
fi




and add: "exec wmaker"




What runlevel are you in? If it is graphical, you may not want to do it the way I told you. You'd want to make a seperate xinitrc file (its just a text file) for WindowMaker and then execute it using your Display Manager. Instructions are different for each one though.


If you are running in level 3, then you can just make a new file like:

#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi

# Start the window manager:
exec /usr/local/bin/wmaker


and then you can do:

"startx /path/to/that/new/file"
 
Old 06-24-2003, 02:52 AM   #5
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
In future, you may want to just download the .rpm instead of compiling. I don't know a lot about RH but under Debian I just create a symlink: /etc/alternatives/x-window-manager -> /bin/wmaker.
 
Old 07-06-2003, 01:49 PM   #6
Brent74
LQ Newbie
 
Registered: Jun 2003
Location: USA
Distribution: RH9
Posts: 7

Rep: Reputation: 0
I think I finally figured this out (works for me at least!.) In your home directory, create (or edit if it already exists) a file called ".Xclients-default" put in 'exec wmaker' as the last/only line in the file.

If the file is pre-existing and it has if statements in it, just change the line after the 'else' statement to read 'exec wmaker'

For me, this .Xclients-default file looks for a file called .Xclients-$HOSTNAME$DISPLAY in the $HOME$ directory. I didn't have one of these so I just left it in there. If you do have one, I'd suggest looking at that file and see whats in it and put in an 'exec wmaker' line in there where it appears appropriate.

Now when you boot up, if your runlevel is 5 and you get the GDM login screen, select Default in your sessions menu and schazam! you're in WindowMaker!
 
Old 07-06-2003, 02:00 PM   #7
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
its kinda the other way around in redhat....the .Xclients file looks for the .Xclients-default file....the default file is not looking for what you are saying it looks for....and just a little tid-bit for you, if you would have made a file called .xinitrc, it would have loaded from this file first....but in redhat its just as easy to add to the .Xclients-default file..and replace whatever WM is being executed in it..
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WindowMaker weng Linux - Newbie 6 01-25-2004 08:17 PM
windowmaker zeratul3 Linux - Newbie 1 10-17-2003 03:05 PM
Cant get out of WindowMaker--HELP SirLostalot Linux - Newbie 2 11-11-2002 01:03 PM
WindowMaker whaase Linux - Software 7 10-19-2002 09:55 PM
WindowMaker whaase Linux - Newbie 1 10-19-2002 08:02 PM


All times are GMT -5. The time now is 05:11 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration