LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 04-30-2011, 02:35 PM   #1
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Window Managers in Blfs build


I have installed Fluxbox in blfs, Is it possible to install sawfish/metacity as well if so how would you switch between either of them. I have fluxbox set to start with command startx. Not that i,m not happy with Flux I would like to test drive the others
 
Old 05-01-2011, 02:48 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

You can install all 3, no problem there.

Startx uses, among other files, the ~/.xinitrc file and as you might have noticed all three WM's you mention have a line in the .xinitrc file to make sure that specific WM is started. Putting all three in the same .xinitrc file won't work. One solution to this is to create 3 WM specific .xinitrc files and link the one you want to use to the real .xinitrc.

For example:

~/.xinitrc.metacity holds all the metacity specific entries,
~/.xinitrc.fluxbox the fluxbox specific entries,
~/.xinitrc.sawfish the sawfish specific entries.

If those are in place you can link the one you want to use to ~/.xinitrc:
Code:
ln -s ~/.xinitrc.fluxbox ~/.xinitrc
If you want to switch to say metacity:
Code:
rm ~/.xinitrc
ln -s ~/.xinitrc.metacity ~/.xinitrc
Hope this helps.

Last edited by druuna; 05-01-2011 at 03:17 AM. Reason: Fixed a typo
 
Old 05-01-2011, 03:12 AM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Original Poster
Rep: Reputation: 226Reputation: 226Reputation: 226
Hi yes i noticed xinitrc if I create a new user and set his xinitrc with exec sawfish then I can startx with sawfish that way.
Or can startx be changed (example startx-1) to point to another xinitrc?

Last edited by spiky0011; 05-01-2011 at 03:21 AM. Reason: added more thought
 
Old 05-01-2011, 04:48 AM   #4
charl^e
LQ Newbie
 
Registered: Apr 2007
Posts: 9

Rep: Reputation: 0
The startx script normally has a section in it where it looks up the .xinitrc file in the users home directory. It would be easy to change this, just go and read through the script. Personally, I'd take druuna's adivce. It'll be easier to play with other X configurations and to switch between them.

HTH,
Charlie.
 
Old 05-01-2011, 05:05 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,
Quote:
Originally Posted by spiky0011 View Post
Or can startx be changed (example startx-1) to point to another xinitrc?
You don't have to change startx, you can give the .xinitrc.xyz file as an option. The following example starts fluxbox
Code:
startx ~/.xinitrc.fluxbox
and this would start blackbox:
Code:
startx ~/.xinitrc.blackbox
I do assume that ~/.xinitrc.fluxbox and ~/.xinitrc.blackbox hold the appropriate entries for that specific WM.

Also have a look at the xinit man page (startx is a wrapper that uses xinit and its options).

Hope this helps.
 
  


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
BLFS guild build problem PatrickNew Linux From Scratch 5 08-22-2006 06:00 PM
BLFS - stunnel build Lenard Spencer Linux From Scratch 1 07-19-2006 12:02 AM
Where can I find instruction to build BLFS LiveCD satimis Linux From Scratch 12 10-22-2005 07:31 PM
Window Managers vs Window Shell Environments DJOtaku Linux - General 7 08-09-2005 12:43 PM
Window Managers vs. Desktop Managers mikeshn Linux - General 4 02-11-2004 11:31 AM


All times are GMT -5. The time now is 11:59 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