LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 04-12-2006, 01:05 PM   #1
alMubarmij
Member
 
Registered: Dec 2005
Posts: 140
Blog Entries: 1

Rep: Reputation: 16
How to profit by or from "/etc/sysconfig" in Slacware ?


How to profit by or from /etc/sysconfig in Slacware like Debian and RedHat?
I use hwsetup, hwdata, ddcxinfo, kudzu ..etc.
and I want to profit by sysconfig files genereted by them in startup scripts.

is it possible ?
 
Old 04-12-2006, 03:10 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,857

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
profit?? you mean "make money"??
 
Old 04-13-2006, 11:56 AM   #3
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 51
prof·it

n.

1. An advantageous gain or return; benefit.




/etc/sysconfig holds configuration files that are sourced by various scripts, namely but not limited to, bootscripts.
Code:
mv /etc/rc.d/rc.inet1.conf /etc/sysconfig/inet1.conf
sed -i 's@rc.d/rc.inet1.conf@sysconfig/inet1.conf@g' /etc/rc.d/rc.inet1
Now you have just gained an advantageous benifit of having inet1's config file in a more suitable SysVinit location because that's where things like this go according to Suse, Mandrake, Redhat et. all...

It's just a convience location, nothing more. Doesn't matter where you put config files, as long as they are sourced from the correct location within it's parent script.
 
Old 04-13-2006, 12:02 PM   #4
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 51
Some programs like lm_sensors put they init scripts in sysconfig. In Slackware you need to place them in rc.d.
 
Old 04-13-2006, 05:45 PM   #5
alMubarmij
Member
 
Registered: Dec 2005
Posts: 140
Blog Entries: 1

Original Poster
Rep: Reputation: 16
Thanks all.

(profit = usefulness)

That what i mean.
sorry for bad English.
 
Old 04-13-2006, 11:39 PM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,434

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
My Amigo Linux uses hwsetup, ddcxinfo, and hwdata to perform an initial system setup including an fstab file and xorg.conf.
netcards, mice and CD/DVD are all setup also.
Other devices such as sound cards, etc are also detected, but my auto-setup scripts are quite conservative in what they do.

You'll find an example implementation here:
http://distro.ibiblio.org/pub/linux/...setup/Pasture/

and the sources are here:
http://distro.ibiblio.org/pub/linux/...Sources/Utils/

ddcxinfo is part of the kudzu package and you need the kudzu headers to compile hwsetup. But, they don't use the kudzu libs, and the kudzu binary is not used either.

Binary packages for hwsetup and kudzu are here:
http://distro.ibiblio.org/pub/linux/...ntelx86/Utils/
 
Old 04-14-2006, 05:52 AM   #7
alMubarmij
Member
 
Registered: Dec 2005
Posts: 140
Blog Entries: 1

Original Poster
Rep: Reputation: 16
I am use Knoppix & Kanotix packages for that.
So, (1)what's difference between Amigo packages and K*ix?

(2) What about Amigo?
I see it's nice, because it's a Slackware based.
- Is it LiveCD?
- What the size of it?
 
Old 04-15-2006, 12:41 AM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,434

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
No real difference in the binaries, except the main config file is renamed /etc/sysconfig/amigo. The main difference is in what gets done with the info. I don't setup everything possible by default.
/usr/lib/amigosetup/firstrun is the main script to follow.
Your fstab is built by subscripts of that.
The script mkxf86config (or mkxorgconf) uses ddcxinfo and hwdata to generate an X config file (from an .in file using sed).

No distros are available on the Amigo site right now, though you can find some on a mirror, such as here:
http://ftp.nl.freebsd.org/os/Linux/d...inux/download/
 
Old 02-11-2009, 01:42 PM   #9
alMubarmij
Member
 
Registered: Dec 2005
Posts: 140
Blog Entries: 1

Original Poster
Rep: Reputation: 16
About 3 years ago .. and I still need it.
 
  


Reply

Tags
dev


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 5 10-26-2011 01:52 PM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 9 10-12-2011 08:58 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
what is "/etc/sysconfig/network-scripts/ifcfg-eth0" its counterpart in slackware b0nd Slackware 2 10-06-2005 12:50 AM


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