LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-14-2004, 11:28 AM   #1
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
How to startx window maker?


downloaded and installed window maker. But how do I run it? When I startx, kde loads by default.

Thanks!
 
Old 09-14-2004, 11:42 AM   #2
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
Edit your ~/.xinitrc, and add the line:

exec wmaker

comment kde

save/exit

logout/login

Last edited by macondo; 09-14-2004 at 11:43 AM.
 
Old 09-14-2004, 11:52 AM   #3
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Original Poster
Rep: Reputation: 46
Ok, but I don't have a .xinitrc file. If I create one, will it be read by startx by default? Or do I need to edit any other script, telling startx to look for a .xinitrc?
Also, how do I edit the system so as to choose whether I want kde or window maker from a graph. env., instead of setting a default one?
 
Old 09-14-2004, 11:55 AM   #4
muxman
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 203

Rep: Reputation: 32
I'm having the same problem. Gnome loads instead of kde and I don't have the .xinitrc file in my home directory. How else can this be changed?

Thanks
 
Old 09-14-2004, 12:02 PM   #5
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
One way to choose the default window manager is to run (as root) "update-alternatives --config x-window-manager".

Quote:
how do I edit the system so as to choose whether I want kde or window maker from a graph. env., instead of setting a default one?
You can use some GUI login, in case of KDE the obvious choice would be KDM.
 
Old 09-14-2004, 12:10 PM   #6
muxman
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 203

Rep: Reputation: 32
The update-alternatives --config x-session-manager worked. That gives everyone the same x-session correct? If other users want different ones like gnome or fluxbox then they would need to make the .xinitrc file and specify it in there and that would override it for them?

Thanks
 
Old 09-14-2004, 12:15 PM   #7
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Original Poster
Rep: Reputation: 46
Hi,

"You can use some GUI login, in case of KDE the obvious choice would be KDM..."

Dead Parrot,
Can you give us more detail on how to do this?

Can I load X without a DM, and only then, choose windowmaker or kde?
 
Old 09-14-2004, 12:25 PM   #8
muxman
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 203

Rep: Reputation: 32
Quote:
Originally posted by bruno buys


Can I load X without a DM, and only then, choose windowmaker or kde?
I think that is what .xinitrc will do, let you choose different x-sessions without changing everyones by using the update-alternatives --config x-session-manager command and without using a display manager. My system boots to a command prompt and I want kde but other users want gnome or fluxbox. I think .xinitrc will do that for them. What's the systax for the .xinitrc file to chose the different ones? I think thats what we are both looking for.
 
Old 09-14-2004, 01:01 PM   #9
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Original Poster
Rep: Reputation: 46
I'd like to be able to choose on a per-session basis, instead of having either kde or wmaker loading by default. Is that what you're looking for?

Currently, my Debian install boots to runlevel 2 by default. I have to log in and startx. If I edit it so as to make it go to runlevel 5 directly, is it going to load a graph. login menu?
 
Old 09-14-2004, 01:08 PM   #10
bigoldjimbo
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Rep: Reputation: 0
What you are still looking for is your xinitrc file. Edit the global file (As Root) that is located in /etc/X11/xinit/ . You will then be able to change the Window Manager by commenting out the last line of this file, (That initiates the current window manager), and inserting a line for the desired window manager i.e. wmaker. Then run startx to initiate xwindows and your new window manager.

P.S. - there may be other scripts that can be used to replace your current xinitrc file such as xinitrc.fluxbox or xinitrc.kde. At least that is the way it is in slackware.
 
Old 09-14-2004, 01:25 PM   #11
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Originally written by muxman:
Quote:
If other users want different ones like gnome or fluxbox then they would need to make the .xinitrc file and specify it in there and that would override it for them?
Yes, that is my understanding, too.

Originally written by bruno buys:
Quote:
I'd like to be able to choose on a per-session basis, instead of having either kde or wmaker loading by default.
If you want to login from command prompt (CLI), then I think you can start KDE straight from the command line (after you've logged in, of course) using "startkde" command. If you want to start Window Maker instead, the command to use is "wmaker".

Originally written by muxman:
Quote:
My system boots to a command prompt and I want kde but other users want gnome or fluxbox. I think .xinitrc will do that for them. What's the systax for the .xinitrc file to chose the different ones?
The last line of .xinitrc must execute some window manager /desktop environment. For Gnome, I think, this would be "exec gnome-session". For KDE it would be "exec startkde". For fluxbox "exec fluxbox". For Window Maker "exec wmaker". Before this last line you can execute other programs or commands -- for example if you've got xscreensaver installed, you can launch it from .xinitrc. An .xinitrc that first launches xscreensaver (without showing splash screen) and then starts Window Maker would look something like this:
Code:
/usr/bin/xscreensaver -no-splash &
exec wmaker

Last edited by Dead Parrot; 09-14-2004 at 01:45 PM.
 
Old 09-14-2004, 01:36 PM   #12
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
"Ok, but I don't have a .xinitrc file. If I create one, will it be read by startx by default?"

yes

vim /home/your_name/.xinitrc

.xnitrc controls 'startx'
.xsession controls 'kdm' or any other graphical DM.

"Or do I need to edit any other script, telling startx to look for a .xinitrc?"

no

"Also, how do I edit the system so as to choose whether I want kde or window maker from a graph. env., instead of setting a default one?"

Like DP said, install a DM.

apt-get install kdm
 
Old 09-14-2004, 03:34 PM   #13
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Rep: Reputation: 30
hmmmm i dont seem to have an .xinitrc either in my home directory
i do have a xinitrc file (not hidden) in /etc/X11/xinit but all it says is at the end is

#invoke global X session script
. /etc/X11/Xsession

this Xsession file is kind of cryptic to me, dont really see anywhere in it that loads a de or wm
 
Old 09-14-2004, 04:26 PM   #14
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Original Poster
Rep: Reputation: 46
So far, so good. Installed kdm ok. It boots up to a screen where I log in and choose which one I want. thanks!

A bunch new questions appear, though: it lists desktop managers that I didn't know I have here. Sawfish, gnome, twm, icewm, etc. Is this menu default or kdm really checked that I have it?
 
Old 09-14-2004, 05:04 PM   #15
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
bruno: try it, see what happens, let us know

jsmarshall85: read the thread "Debian Configuration Post-Install"
 
  


Reply



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 Maker Soulful93 Linux - Newbie 3 04-19-2004 09:11 AM
New To Window Maker sovietpower Slackware 3 12-19-2003 12:40 AM
Window Maker Help.. vame87 Linux - Software 40 10-01-2003 05:51 AM
Window Maker TazLinux Linux - General 2 03-02-2003 11:53 AM
Window Maker BoldKiller Linux - General 5 04-08-2002 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:58 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
Open Source Consulting | Domain Registration