LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-12-2003, 09:25 PM   #1
yocompia
Member
 
Registered: Apr 2003
Location: Chicago, IL
Distribution: openbsd 3.6, slackware 10.0
Posts: 244

Rep: Reputation: 30
installation scripting: what do you think?


i get hella tired of installing all my favorite software from source. i was thinking of making a gigantic install script for all my favorite stuff, kernel included. are there any reasons to not do this? i just figured i'd inquire before i executed on this one.

thx for reading,
y-p
 
Old 09-12-2003, 09:45 PM   #2
_kossak_
Member
 
Registered: Apr 2003
Location: Minde. Portugal
Distribution: DEBIAN
Posts: 87

Rep: Reputation: 15
I think it's a good idea but make sure you redirect all the output to different files so you can track all the failures that might happen during that gigantic task.
I say go for it and if it goes alright, I suggest you make a nice graphical interface using tk or whatever you like.
 
Old 09-14-2003, 06:52 AM   #3
linuxJaver
Member
 
Registered: Jul 2003
Location: Jakartax, ID
Distribution: slack9.1+,9.1,rh9
Posts: 203

Rep: Reputation: 30
If u want .., then I ll suggest to write a Makefile instead of script(s), each softwarePackage get it's own rule (command lines required for installing it), then a default/all-rule for installing all packages ..

Furthermore make has even the ability of dependencies check (in relation of date of the dependant-files) ..

Wut do u think wut Master Pat used for making the slack-distro ?
 
Old 09-14-2003, 01:28 PM   #4
yocompia
Member
 
Registered: Apr 2003
Location: Chicago, IL
Distribution: openbsd 3.6, slackware 10.0
Posts: 244

Original Poster
Rep: Reputation: 30
good idea javer. i'll get around to it when i have a bit more time (candidacy exam => no time right now), and i'll have to pick up o'reilly's "practical c++ programming" first (i'm out of the coding loop, but just wait). give me a couple months on the makefile business.

what is it that keeps the various pieces of software like mplayer, xcdroast, etc. out of the slackware (or other distros) installer? is it that i don't have the full 4 CD package?

has anyone made an automatic kernel optimization routine? matching all your kernel compile options with your hardware can be tedious (especially on a new machine), so maybe one could write routines to pull all the relevant hardware options automatically and only include directly applicable drivers/modules into the kernel.

these are just random ideas.

thx for the input,
y-p
 
Old 09-14-2003, 10:31 PM   #5
linuxJaver
Member
 
Registered: Jul 2003
Location: Jakartax, ID
Distribution: slack9.1+,9.1,rh9
Posts: 203

Rep: Reputation: 30
I'd say to write down on a piece of paper wut needed be changed after a fresh installation of slak to make thing like u want is good enough.

I often even forgot the change I made, n when need to do that again, then read the {readmes,install.txts ..} again ...

The "Makefile" it self is not harder than to write than script ..

Supposed u want mplayer.tgz, xcdroast.tgz be installed ..

all: mplayer.tgz,xcdroast.tar.bz2

mplayer.tgz:
tar -xvf - mplayer.tgz | (cd /tmp; gzip -xf -)
cd /tmp/mplayer..
make install
rm -rf /tmp/maplayer*

xcdroast.tar.bz2:
bzip2 -dc - xcdroast.tar.bz2 | (cd /tmp; tar -xf -)
cd /tmp/xcdroast..
make install
rm -rf /tmp/xcdroast*

But that is not thing for ur random idea like above .. :x
 
  


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
Scripting CICA Linux - General 7 10-03-2005 10:36 AM
new to scripting mifan Linux - Newbie 2 08-17-2005 12:10 PM
scripting help garretwp Linux - Newbie 10 03-01-2004 10:40 PM
Scripting Askari Programming 1 12-09-2003 09:25 AM
scripting help versaulis Linux - Software 8 11-22-2003 07:08 PM

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

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