View previous topic :: View next topic |
Author |
Message |
dennis Tux's lil' helper
Joined: 06 Jun 2002 Posts: 84
|
Posted: Thu Jun 06, 2002 4:22 am Post subject: Scriptable Installation |
|
|
hi,
everytime someone installes a Linux he has to do pretty much the same stuff over and over ... (especially if you are setting up more than one comp)comp
but it seems to me that 99% of it is not necessary!
just take a usual installation on a 486 ... the only things that need to be adjusted to each computer are the modules and the partition/hard disk sizes.
a litlebit scripting interface would be nice and solve this problem...
if you think a litle bit further you could also create a little tool that asks you for these changes (hdds n modules, etc) and creates a script for you ...
this sounds like some other "slow" distris and their setup ... but it doesnt make anything slower or less configurable ... i would compare it to menuconfig for the kernel confguration, nobody would do that by hand
Dennis |
|
Back to top |
|
|
fghellar Bodhisattva
Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
|
Back to top |
|
|
dennis Tux's lil' helper
Joined: 06 Jun 2002 Posts: 84
|
Posted: Fri Jun 07, 2002 7:57 pm Post subject: |
|
|
yep, i know bash but that wouldnt go through the chroot would it? (never tried though) |
|
Back to top |
|
|
fghellar Bodhisattva
Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
Posted: Fri Jun 07, 2002 8:31 pm Post subject: |
|
|
I need a confirmation on this, but I think you can do something like
Code: | chroot /mnt/gentoo ./myscript |
Can you try and confirm this? (I'm not at home right now.) _________________ | www.gentoo.org | www.tldp.org | www.google.com | |
|
Back to top |
|
|
lx Veteran
Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Fri Jun 07, 2002 11:52 pm Post subject: |
|
|
fghellar wrote: | I need a confirmation on this, but I think you can do something like
Code: | chroot /mnt/gentoo ./myscript |
Can you try and confirm this? (I'm not at home right now.) |
confirmed, well it works with commands, chroot /mnt/gentoo emerge -s mozilla worked. Well I tried and yes it also works with scripts, and this also works from inside another script. So it can be done, But still users need to fiddle with the system after installation, so better let them get used to it during install.
Cya lX. _________________ "Remember there's a big difference between kneeling down and bending over.", Frank Zappa |
|
Back to top |
|
|
fghellar Bodhisattva
Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
Posted: Sat Jun 08, 2002 3:22 am Post subject: |
|
|
lx wrote: | So it can be done, But still users need to fiddle with the system after installation, so better let them get used to it during install. |
Exactly what I think, too. _________________ | www.gentoo.org | www.tldp.org | www.google.com | |
|
Back to top |
|
|
Chadmitch n00b
Joined: 18 Apr 2002 Posts: 1 Location: Fairport, NY
|
Posted: Sun Jun 09, 2002 2:24 am Post subject: scriptable|repeatable|consistent install |
|
|
I'm looking for a linux dist that has an automatic install and repeatable and is minimal. I've just about got RedHat there but there is stuff there I don't want, even in just a base install. I learned a trick to script fdisk and then thought about Gentoo again.
Now I'm hacking away at scripting an install of Gentoo. I'm working to rebuild my secondary name server and want everything just the way I want it. It may take a few installs to do this, fortunately I've got a 1.2GHz test system.
From what I've thought about so far a generic scripted install users would have first install the system or at least know the parameters to pass to fdisk to get the disk layout correct.
If/When I get my install of Gentoo Linux scripted and working I'll write it up and put up on my site somewhere.
Plus I also want a dist that runs on Sparc|64, x86, and Alpha would be nice as well as I've got all 3 in my basement. |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Sun Jun 09, 2002 3:58 am Post subject: |
|
|
You could have the user partition their hard drives manually and then just prompt for partition names. (Like "Root partition? Boot partition? How many swap partitions? Swap partition 0?" etc.) |
|
Back to top |
|
|
nzadrozny n00b
Joined: 22 May 2002 Posts: 11 Location: San Diego
|
Posted: Sun Jun 09, 2002 6:08 am Post subject: |
|
|
lx wrote: | But still users need to fiddle with the system after installation, so better let them get used to it during install. |
I think this dodges the question.
Not everyone performing a tedious task is performing that task for the first time. A system install is just time-consuming more than a learning-experience for most of us, and any tool to automate a tedious, repetetive task is welcome to me. Hence, scripts.
However, this isn't to say that I think the gentoo install particularly tedious, especially since even the minimal boot CD provides ssh. I can log in to other accounts and read newsgroups, send email, and ytalk while I wait for things to compile
This was just my default rant toward the attitude that says we shouldn't make something easier to do because people ought to learn the hard way. This, IMO, goes against the principles of good design, abstraction, and encapsulation. Not only that, but the name of efficiency as well. |
|
Back to top |
|
|
lx Veteran
Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Mon Jun 10, 2002 1:21 pm Post subject: |
|
|
Well I don't say people should do it the hardway, but maintaining gentoo goes in the same manner, there aren't fancy configuration tools, so I think a small barrier ain't that bad. A very small barrier; I also don't think the install is that difficult. The installer represents the distro just fine. But well the post wasn't talking about this in the first place, so never mind.
If somebody wants to create an installer, I will use it, but I don't see a pressing need for it, I rebuild my system from scratch a few times and it didn't take that long (well except for compiling). If I would do it more often I could always write my own script, remember it ain't that simple to write a general install script. Many tasks need to be done by hand. Most people can write there own bash script.
Cya lX. _________________ "Remember there's a big difference between kneeling down and bending over.", Frank Zappa |
|
Back to top |
|
|
|