LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2004, 01:03 AM   #1
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Rep: Reputation: 30
Start different window managers?


Is the window manager it uses by default defined in inittab?

I would like to boot to the GUI, but would rather use the KDM (or is it KWM, the KDE windows manager) other than the GNOME windows manager. If I'm way off with inittab, any help?
 
Old 09-05-2004, 07:35 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Yes, you're a bit off the mark with inittab, but fret not!

How do you start X normally? Through a display manager like GDM or KDM (graphical login) or console login (no fancy graphics)?

In either case you can create an .xinitrc file in your home directory if it doesn't exist already. This file is read for startup commands when you run startx from the console. A similar file, .xsession, is read when you select "Custom session" in GDM and I would think there is a similar entry in KDM. Here's mine:
Code:
#!/bin/bash
fbsetbg ~/gfx/wallpapers/current
fbpanel &
fbpanel -p pager &
aterm -geometry 80x24+0+26 &
torsmo &
xrootconsole -fn lime -fg gray /var/log/messages -geometry 166x8+180+674 &
exec openbox
The commands with an appended ampersand (the "&" character) will start and fork to background so the commands after them will be executed too. The final command, "exec openbox", launches my window manager. The exec prefix means the script is replaced by the openbox process. This means that when openbox exits, the whole session will end (logout if I use GDM or back to console if I don't).

Since .xinitrc and .xsession are basically the same I only keep an .xsession file and then have a symbolic link called .xinitrc pointing to my .xsession file.

When I last ran KDE (ehh, back in the 1.0 days) there was a "startkde" script. There is probaby a similar one now, perhaps with the same name. So a very simple .xinitrc/.xsession to start KDE would be:
Code:
startkde
Hope that helps!

Håkan
 
Old 09-05-2004, 09:20 AM   #3
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Yes, there is still a 'startkde' script, and it still is used to start KDE.
 
Old 09-05-2004, 10:08 AM   #4
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Original Poster
Rep: Reputation: 30
Hmm, unfortunitely, I am having trouble understanding.

I currently start X11 from the console. However, if I change /etc/inittab to start at the runlevel for X11, it starts GNOME. The line from inittab reads:

id:3:initdefault:

I think it's the "initdefault" that makes it start GNOME. Is it this you are saying needs to be changed to a KDE script?

Using Slackware 9.1
 
Old 09-05-2004, 10:27 AM   #5
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
I noticed that you have the same problem I had with Slackware 10.0
To solve the problem I edited the file "/etc/rc.d/rc.4" .
The file looks like this:

# Tell the viewers what's going to happen...
echo "Starting up X11 session manager..."

# Try to use GNOME's gdm session manager:
#if [ -x /usr/bin/gdm ]; then
# exec /usr/bin/gdm -nodaemon
#fi

# OK, try to use KDE's kdm session manager:
if [ -x /opt/kde/bin/kdm ]; then
exec /opt/kde/bin/kdm -nodaemon
fi

# If all you have is XDM, I guess it will have to do:
if [ -x /usr/X11R6/bin/xdm ]; then
exec /usr/X11R6/bin/xdm -nodaemon
fi

Notice that I commented the GNOME section using (#) so KDE would start by default. That was the end of it.

Hope this helps.
 
Old 09-05-2004, 01:45 PM   #6
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Original Poster
Rep: Reputation: 30
Ahaha! Someone had mentioned that file before and at the time I was too afraid of breaking stuff to try it. Much bolder now. I reversed the if statements instead of commenting out the GNOME stuff. Now it simply checks for KDM first, and starts that.
 
Old 09-05-2004, 05:42 PM   #7
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Oh, I'm sorry - I misinterpreted your question.


Håkan
 
Old 09-06-2004, 10:25 AM   #8
chii-chan
Member
 
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357

Rep: Reputation: 30
Do you Slackware people have this ".Xclients-default" file in your home directory?
 
Old 09-06-2004, 10:57 AM   #9
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Original Poster
Rep: Reputation: 30
Nope
 
  


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 01:43 PM
Start Different Window Managers Hectic Slackware 2 10-23-2004 08:45 AM
Window managers pjfasi Fedora 2 09-07-2004 01:58 PM
Window Managers OnoTadaki Linux - Newbie 4 03-17-2004 07:53 AM
Window Managers vs. Desktop Managers mikeshn Linux - General 4 02-11-2004 12:31 PM


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