LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-24-2006, 08:25 AM   #1
paulocr
LQ Newbie
 
Registered: Apr 2006
Location: Costa Rica
Distribution: Slackware 10.2
Posts: 15

Rep: Reputation: 0
Issue trying to use xFCe as Default


Hello,

I have two issues in one right here :

I have been using KDE WM for some months but now decided to switch to xFCE mostly because my pc is quite slow and it doesn't perform as well in KDE as it does in xFCE.

First issue : I used xwmconfig and chose xFCE as Default, when I hit startx it works perfectly, however when I reboot right after the start kdm is automatically loaded.

Second issue and most important : I changed the userlevel in my inittab back to 3 and it worked ok but I still wanted xFCE to load automatically so I tried to edit my rc.4 file (big mistake) I tried to comment the lines that detected if kdm was present in my system and all I got was an error saying "can not execute rc.4" and it just stops there.

I editted it, changed it back to how I found it but I am still getting the same error

I can not see anything wrong with it as I tried to leave it exactly as I think it was before but I can not make it.

What I am currently doing at the error is hitting ALT+CTRL F6, log in and manually startx and then it loads xFCE.

I am a progressively learning newbie but I am very lost here. I have tried to search for forums referring to this but it's a hard to look for subject.

All help is appreciated!

Thanks so much,

Paulo.
 
Old 04-24-2006, 08:35 AM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Without the error messages and knowing what you changed, it's hard to know how to fix what is broken in rc.4. Just see if you can download a copy from slackware.com.

You should never default to log into a graphical environment, because if something is broken, you won't be able to log on as root.

I like to set up my user accounts to automatically start x. They each have their own .xinitrc file in the user directory to select a window manager and other apps.

There is a long-winded thread on how to execute a script on logging in here:
http://www.linuxquestions.org/questi...=start+x+login

Basically, you just create a file called .bash_profile and from this script, you execute whatever you want. It will be invoked when the user logs in. I have mine symlinked and protected so nobody can mess with it.

Last edited by Randux; 04-24-2006 at 08:38 AM.
 
Old 04-24-2006, 09:47 AM   #3
paulocr
LQ Newbie
 
Registered: Apr 2006
Location: Costa Rica
Distribution: Slackware 10.2
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks a lot, this is very helpful. I will try to get the specific error message or better yet, try to fix it. I have been browsing for quite a long time now through webpages and distributions but I can not find a way to get the rc.4 file. I have been browsing ftps but I don't know if perhaps these files are not posted or "hidden" among the numerous folders.
 
Old 04-24-2006, 10:34 AM   #4
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Quote:
Originally Posted by paulocr
Thanks a lot, this is very helpful. I will try to get the specific error message or better yet, try to fix it. I have been browsing for quite a long time now through webpages and distributions but I can not find a way to get the rc.4 file. I have been browsing ftps but I don't know if perhaps these files are not posted or "hidden" among the numerous folders.
You can't get the file individually. What you should try is downloading the etc package from Slackware.com at:
http://slackware.it/en/pb/package.ph...-5.1-noarch-10

And then (do this as user so as not to toast your system) make a directory and untar the package under it. Pull out rc.4 and as root, slap it down over your /etc/rc.d

I've also copied it here, maybe you can save some time.
Code:
#! /bin/sh
#
# rc.4		This file is executed by init(8) when the system is being
#		initialized for run level 4 (XDM)
#
# Version:	@(#)/etc/rc.d/rc.4	2.00	02/17/93
#
# Author:	Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
# At least 47% rewritten by:  Patrick J. Volkerding <volkerdi@slackware.com>
#

# 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

# Not there?  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

# error
echo
echo "Hey, you don't have KDM, GDM, or XDM.  Can't use runlevel 4 without"
echo "one of those installed."
sleep 30

# All done.
 
Old 04-24-2006, 05:03 PM   #5
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55
Quote:
Originally Posted by paulocr
Hello,

I have two issues in one right here :

I have been using KDE WM for some months but now decided to switch to xFCE mostly because my pc is quite slow and it doesn't perform as well in KDE as it does in xFCE.

First issue : I used xwmconfig and chose xFCE as Default, when I hit startx it works perfectly, however when I reboot right after the start kdm is automatically loaded.

<snip>
Thanks so much,

Paulo.
I just wanted to point out that runlevel 4 booting to KDM is the proper functioning. You will then need to pick XFCE from the list of available window managers/DE's from the sessions dropdown list. Once you have booted to XFCE from KDM, you will automatically log into XFCE as your default windowmanager from KDM once you enter your name and password. At least until you log into something different.

KDM is configurable from the KDE Control Center and with root privilages you can set KDM to automatically boot a specific user to a specific window manger without stopping to ask for a username and password. You can run KDE Control Center from XFCE if needed by running kcontrol from the command line.

System Administration -> Login Manager -> Convenience Tab.

Sorry if you knew this allready, it was not clear.

HTH
 
Old 04-24-2006, 05:36 PM   #6
paulocr
LQ Newbie
 
Registered: Apr 2006
Location: Costa Rica
Distribution: Slackware 10.2
Posts: 15

Original Poster
Rep: Reputation: 0
Extremely helpful! thanks!
 
Old 04-26-2006, 07:30 AM   #7
paulocr
LQ Newbie
 
Registered: Apr 2006
Location: Costa Rica
Distribution: Slackware 10.2
Posts: 15

Original Poster
Rep: Reputation: 0
This is really weird but the file looks exactly like that....Sometimes it ends up trying to execute GDM and it freezes ( since I do not have GDM ) and sometimes the boot just ends up with "Can not execute etc/rc.d/rc.4"...I am able to log in as root if I hit ALT CTRL F6.

Strangest thing is that even if I change the userlevel from 4 to 3 in the inittab it will keep on trying to execute rc.4

Is there a way to reinstall or fix the damaged modules ?

I have looked closely into the rc.4 file and I see no error there, I have also looked at the inittab.

Can I comment the lines trying to execute GDM so that it will go directly to KDM ?

May someone perhaps attach or email me the rc.4 and inittab file of your own so that I can replace it in my pc ?

Thanks a lot!!
 
Old 04-26-2006, 08:14 AM   #8
kriton12
Member
 
Registered: Oct 2002
Posts: 81

Rep: Reputation: 16
Randux already posted the rc.4 file all you have to do is copy the text and paste it. As for getting rid of the GDM manager just comment out the lines:

if [ -x /usr/bin/gdm ]; then
exec /usr/bin/gdm -nodaemon
fi

by putting a # in front of each one.
 
Old 04-26-2006, 08:50 AM   #9
paulocr
LQ Newbie
 
Registered: Apr 2006
Location: Costa Rica
Distribution: Slackware 10.2
Posts: 15

Original Poster
Rep: Reputation: 0
Right..duh me!

I will try to comment and see what happens! thank you all for your answers!!
 
Old 04-26-2006, 09:16 AM   #10
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 46
Quote:
Originally Posted by paulocr
Second issue and most important : I changed the userlevel in my inittab back to 3 and it worked ok but I still wanted xFCE to load automatically so I tried to edit my rc.4 file (big mistake) I tried to comment the lines that detected if kdm was present in my system and all I got was an error saying "can not execute rc.4" and it just stops there.

I editted it, changed it back to how I found it but I am still getting the same error

I can not see anything wrong with it as I tried to leave it exactly as I think it was before but I can not make it.
Sounds like a permission problem to me. Perhaps your rc.4 lost it's execute bit when you edited it? Try:

chmod a+x /etc/rc.d/rc.4

and see if it helps
 
Old 04-27-2006, 07:07 AM   #11
paulocr
LQ Newbie
 
Registered: Apr 2006
Location: Costa Rica
Distribution: Slackware 10.2
Posts: 15

Original Poster
Rep: Reputation: 0
bingo to alienDog! Thanks so much everyone, each answer was very helpful! I am learning more and more each day
 
Old 04-27-2006, 10:19 AM   #12
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Nice going alienDog!

Just a general note: in Slackware you shouldn't have to comment out portions that execute scripts. Just change the execute permission if you don't want something to run. (the opposite of this problem!)

For example instead of commenting-out this:

if [ -x /usr/bin/gdm ]; then
exec /usr/bin/gdm -nodaemon
fi


Do this:

chmod -x /usr/bin/gdm

Even so, I don't think this is the problem because the script is designed to work if stuff isn't there. That section of code will execute correctly whether or not you have gdm in /usr/bin

Last edited by Randux; 04-27-2006 at 10:24 AM.
 
Old 04-27-2006, 12:20 PM   #13
paulocr
LQ Newbie
 
Registered: Apr 2006
Location: Costa Rica
Distribution: Slackware 10.2
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks Randux and everyone else!! Unvaluable knowledge you guys transfer over here
 
Old 04-27-2006, 12:48 PM   #14
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
You are very welcome. Guys helping each other out is one of the reasons that Slackware is the best linux distro available.
 
  


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
FC3: make xfce 4.2 default window manager ghee22 Linux - Software 8 04-22-2012 09:45 AM
XFCE: set default applications to extensions senorsnor Linux - Software 4 08-24-2011 07:03 PM
Xfce problems with task bar and xfce-panel aeruzcar Linux - Software 4 06-26-2006 05:29 AM
Creating a default printer in XFCE ubuntu mcmillan Linux - Hardware 2 01-04-2006 05:22 PM
XFce Security/Permissions issue HenchmenResourc Linux - Software 1 02-02-2005 10:03 PM


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