LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 09-12-2003, 11:05 PM   #1
hbbtstar
Member
 
Registered: Aug 2003
Posts: 74

Rep: Reputation: 15
Need some help using window managers


OK, I just installed Mandrake and I'm enjoying it. I've played around with both Gnome and KDE, but I heard someone say that there are barebones windows managers. I downloaded one, fluxbox, and configured, make'd, and make install'd it. Then, I added this to my .xsession like it said in the documentation:

exec /usr/local/bin/fluxbox

and logged out, and logged in. Nothing happened, it still only gave me the choices of KDE and Gnome. Anyone know how to get the graphical login menu to give Fluxbox as an option?
 
Old 09-13-2003, 12:30 AM   #2
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
You've just hit upon something I've been struggling with lately too. It seems that when you build fluxbox or blackbox from source, the installer does not quite take care of everything it ought to in order to make those available from your graphical login screen.

Anyway, what I had to do in order to make mine work was this: Look in the directory:

/etc/X11/gdm/Sessions

In there are several small scripts called GNOME, KDE, etc. Create a new script for fluxbox, simply called fluxbox. Make it similar to the others, something like:

Code:
#!/bin/sh
exec /etc/X11/xdm/Xsession fluxbox
(or even just "exec fluxbox" might work). Anyway, make sure it's executable (chmod +x fluxbox). You will probably also need to create a file in /etc/X11/wmsession.d. In there are files called 01KDE, 02GNOME and stuff like that. Create a new one with the next avaiable number, like 03FLUXBOX. Copy its contents from one of the existing ones, and tailor it to run fluxbox instead. This file doesn't need to be executable.

As for getting the .xsession file to be read from yor home directory, I had similar problems with that. I wanted gkrellm to start up when I ran blackbox, so I added stuff to that file; however, due to the complex series of scripts that causes my window manager to get loaded, the .xsession file was ultimately ignored. In order to make X read that before starting up, create a script called, for example, /usr/local/bin/startfluxbox. Make it look like this:

Code:
#!/bin/sh
if [-x $HOME/.xsession ]; then
  . $HOME/.xsession
fi
exec /usr/local/bin/fluxbox
Basically all that does is say "Does this user have a .xsession file? If so, run the commands found in it, then load fluxbox." Anyhow, once you have that (make it executable too), modify the /etc/X11/gdm/fluxbox script above to run "startfluxbox" instead of "fluxbox".

I hope all that made sense! Good luck.
 
Old 09-13-2003, 08:03 AM   #3
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Why oh why do people use a distro like Mandrake and persist in compiling apps from source?

What is the point of having an RPM distro, and repositories of thousands of programs compiled specifically for Mandrake, if users persist in ignoring all that and just compiling anyway? You might as well just use Slackware and have done with it!

Fluxbox, Blackbox, WindowMaker, Enlightenment, IceWM, Xfce, Rox-- they're all available as Mandrake RPMs that can be installed from RPMDrake with a lot less trouble than what you're going through.

Stumped because your Software Sources Manager only shows the 3 install CDs? That's what EasyURPMI is for.

Add some sources by following the instructions, and fire up RPMDrake (Mandrake Control Center=>Software Management=>RPMDrake Install Software with the green plus sign). Change the filter from "Mandrake Choices" to "All choices by group". Marvel at how much software can be installed with a few clicks.

To reduce the number of clicks, learn how to import the gpg keys for the repositories you use. If you don't want to, then don't get alarmed by the messages you'll get saying that there's no signature in the package. It's not true-- it's just that you don't have the keys to read the signatures on your keyring. Carry on anyway. It's worth it.
 
Old 09-13-2003, 12:05 PM   #4
hbbtstar
Member
 
Registered: Aug 2003
Posts: 74

Original Poster
Rep: Reputation: 15
Thanks guys, I got it to work. I didn't know about the urpmi thing, I might ry that later if I want to try other window managers. I do have one more question though: I can't get fbdesk to work. I installed the RPM fine, but when I try to run it I get this error:

FBdesk: X error: BadValue (integer parameter out of range for operation )() opcodes [/
resource 0xbffff560

and then it closes. What does that error mean?
 
Old 09-13-2003, 01:49 PM   #5
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Quote:
Originally posted by motub
Why oh why do people use a distro like Mandrake and persist in compiling apps from source?
Ehh, usually there is an RPM for things, but there is almost never an RPM available with the latest version of an application. I've had many situations in which RPMfind was unable to locate any RPM for Mandrake for some package. Sometimes you just gotta use the source. If I had the chance to start over again right now, I'd probably go with Slackware or Debian; RPMs have been a headache since day one.
 
Old 09-13-2003, 02:00 PM   #6
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Yes, sometimes you do, but not for a big package like fluxbox, or MPlayer or whatever. I mean, I'm waiting for the MDK RPM of GNOME 2.4 just like everyone else, but I'm only going to compile it under Debian or Slack.

Mandrake is just too non-standard (though not as much so as RH 9 seems to be) to be bothered with trying to compile from source under it for someone who knows as little of programming as I do. That's my impression/opinion, anyway.
 
  


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
Window Managers vs Window Shell Environments DJOtaku Linux - General 7 08-09-2005 12:43 PM
window managers? alaios Linux - Software 4 04-12-2004 04:03 PM
Window Managers vs. Desktop Managers mikeshn Linux - General 4 02-11-2004 11:31 AM
Window Managers floyd Linux - General 31 04-26-2003 12:18 AM
where are my window managers yasasvi Linux - General 1 08-10-2002 12:52 PM


All times are GMT -5. The time now is 03:12 AM.

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