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

Notices


Reply
  Search this Thread
Old 01-09-2005, 09:54 AM   #1
NiallC
Member
 
Registered: Feb 2003
Distribution: Suse 8.1
Posts: 102

Rep: Reputation: 15
Modifying Startx for new default


Hello,

(Slackware current (10.)), 2.4.28 kernel)

KDE is my current default desktop when I issue:

# startx

How can I make Gnome my default ?

I don't see a way to switch when KDE is launched, and I've poked around the X11 directory with no success.

Can anyone point me to the correct conifiguration file to alter this?

TIA!

Niall.
 
Old 01-09-2005, 10:19 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,986

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Try this:

$ su
<enter root password>
# cd /etc/X11/xinit
# mv xinitrc xinitrc.bad (this backs up your old xinitrc which is linked to kde)
# ln -s xinitrc.gnome xinitrc (creates new link to start gnome)
# exit
$ startx (this should start gnome)

From what I can see xinitrc is a link to whatever default desktop that you want to use all of which are listed in /etc/X11/xinit with the names <window manager>.xinitrc. I think it's just a matter of linking to the right file to change your default window manager.

Last edited by kilgoretrout; 01-09-2005 at 10:22 AM.
 
Old 01-09-2005, 10:27 AM   #3
NiallC
Member
 
Registered: Feb 2003
Distribution: Suse 8.1
Posts: 102

Original Poster
Rep: Reputation: 15
Hmm......that didn't work!?

From my limited knowledge, it looked like it might, but KDE just fired on up again.

I hadn't thought about linking, etc...

Thanks though....but it still seems to be defaulting to KDE.
 
Old 01-09-2005, 10:34 AM   #4
cccc828
Member
 
Registered: Feb 2004
Location: Austria
Distribution: Slackware
Posts: 95

Rep: Reputation: 15
Code:
xwmconfig
 
Old 01-09-2005, 10:48 AM   #5
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,986

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
If you take a look at the startx script in /usr/X11/bin it appears that the script looks first for an xinitrc in your home directory, then proceeds to the global one in /etc/X11/xinit. Actually it's a hidedn file(/home/<username>/.xinitrc). Check to see if there is such a file in your home directory.
 
Old 01-09-2005, 11:21 AM   #6
NiallC
Member
 
Registered: Feb 2003
Distribution: Suse 8.1
Posts: 102

Original Poster
Rep: Reputation: 15
that file was there in my home directory, but modifying it isn't enough. Now I can't get a window manager to start at all. I'll just modify it back for now
 
Old 01-09-2005, 11:28 AM   #7
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Quote:
Originally posted by cccc828
Code:
xwmconfig
I do an end-run around that, myself, but it is the default way and should not fail. Have you tried that yet?

Possibly saying what exactly does happen (rather than 'can't get a window manager to start at all') would help. Any particular messages when this happens?

(Also, if you're sticking with Slack, you should update your distro.)
 
Old 01-09-2005, 11:42 AM   #8
NiallC
Member
 
Registered: Feb 2003
Distribution: Suse 8.1
Posts: 102

Original Poster
Rep: Reputation: 15
urgh....I actually didn't read that post.

That worked perfectly.

Sorry for the confusion.

Thank you all! )and special thanks to cccc_)

Niall.
 
  


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
Mandrake 10 default boot and startx failing Nekow42 Mandriva 3 01-17-2005 10:48 AM
Bug / Xwindows / startx : xinit works but startx crash www.rzr.free.fr Linux - Software 4 10-17-2004 08:06 AM
X server - how to disable the -nolisten tcp startx default? lugoteehalt Debian 3 05-04-2004 07:12 AM
startx vs startx -- :2 (font dimension is different!!) moly82 Linux - General 7 09-15-2003 12:11 PM
RH8 Modifying Default Apache / PHP config p4ck37p1mp Linux - General 4 02-10-2003 10:09 PM

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

All times are GMT -5. The time now is 02:52 PM.

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