Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 08-16-2012, 04:48 PM   #1
Member (5 bit)
 
jpass101's Avatar
 
Join Date: Mar 2011
Posts: 25
Angry Fire Slackware + KDE + Bash

I am running slackware-current and I want to figure out how to get KDM to start automatically after booting (not like a daemon, i.e. runlevel 5, if that is correct in Slackware). Also, whenever I go into Konsole or the CLI mode (no GUI), it will not read and use my .bashrc file like every other Linux distribution. Why is this? And, is there any to fix it? Also, there is a clock widget, but when I drag it on to the task bar, it says "Unable to load the widget" - "Could not find requested component: digital-clock", even though it lists it in the widgets list. How do I fix that as well?

EDIT: I've read the official page on how to do it, but I'm really confused and don't want to do anything, afraid that my system will become not bootable anymore!

Here is the page!

Last edited by jpass101; 08-16-2012 at 06:03 PM.
jpass101 is offline   Reply With Quote
Old 08-17-2012, 09:24 AM   #2
Member (11 bit)
 
Join Date: Apr 2003
Posts: 1,562
It's been a while since I've run slack, but IIRC the GUI runlevel in slack is 4, not 5 like in most other linux distros. Accordingly, you just need to edit /etc/inittab like so:

Code:
# These are the default runlevels in Slackware:
#   0 = halt
#   1 = single user mode
#   2 = unused (but configured the same as runlevel 3)
#   3 = multiuser mode (default Slackware runlevel)
#   4 = X11 with KDM/GDM/XDM (session managers)
#   5 = unused (but configured the same as runlevel 3)
#   6 = reboot

# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:
Only the relevant part of inittab is shown. The last line should be edited changing the default 3 to 4. The above is from an old slack install I have but since slack configuration changes so little, your inittab should look pretty much the same.
kilgoretrout is offline   Reply With Quote
Old 08-17-2012, 09:28 AM   #3
Moderator
Staff
Premium Member
 
jdeb's Avatar
 
Join Date: Nov 2008
Location: Detroit, MI
Posts: 5,223
The startup script for run level 4 is /etc/rc.d/rc.4. Switch the order of the lines to load kdm first instead of gdm.

++++++++++++++++++++++++++++++++++++++++++

Quote:
lso, whenever I go into Konsole or the CLI mode (no GUI), it will not read and use my .bashrc file like every other Linux distribution. Why is this?
http://tldp.org/LDP/Bash-Beginners-G...ect_03_01.html

++++++++++++++++++++++++++++++++++++++++++

Not sure on the widget, I'll do some checking. I am not a widget guy or GUI guy in my slackware

Last edited by jdeb; 08-17-2012 at 09:31 AM.
jdeb is offline   Reply With Quote
Old 08-17-2012, 10:08 AM   #4
Member (11 bit)
 
Join Date: Apr 2003
Posts: 1,562
Unlike most other linux distros, by default slack does not create a .bashrc or any other bash configuration files in the user's home directory. Also, by default .bashrc is read by bash when an interactive, non-login shell is started as "bash" but .bashrc is not read for the login shell, or if the shell is started as "sh". That's why your .bashrc file is not being read when you do a command line login.
kilgoretrout is offline   Reply With Quote
Old 08-17-2012, 01:25 PM   #5
Member (5 bit)
 
jpass101's Avatar
 
Join Date: Mar 2011
Posts: 25
Well, I edited /etc/profile and commented out the default prompt and put my colored green prompt with bright white output text. Now, when I start up Slackware, KDM loads! Thank you guys!

Last edited by jpass101; 08-17-2012 at 01:47 PM.
jpass101 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are On



All times are GMT -5. The time now is 10:01 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.1