Boiling Down Slackware Linux to the Essentials?
noxious420 asks: "I need to crank out a large number of very basic Slackware based Linux boxes. I am familiar with the "canned" distribution sets that FreeBSD uses and I want to use a set similar to the "Minimal" - "The smallest configuration possible" set. In Slackware's Expert install mode, I have been able to boil it down to the very bare essentials that it needs to run, but there are some unused and leftover directories that I had to manually delete. I don't want to clean up these directories every time. Is there some way to get a true "minimal" Slackware install? "
Well, you could always tar xfvz whatever.tgz, delete what you don't want, then rearchive the resulting tree(s). Slack packages are just standard tarballs with an install.sh script that you may need to modify.
I've been thinking about doing something similar for a while: create a "standard" personal distribution that can just be dropped into place on a new machine. It seems like the best plan would be to install a new machine exactly how you want it, and, on a spare partition, create one bigass tarball. Copy this tarball to a CD. Create a boot disk, minimal kernel with CD support. Boot off the boot disk, create the new partitions, and then untar the image from the CD. Is this an oversimplification? Maybe, but maybe not. There's really no reason why Linux has to be more difficult than this. Of course, this assumes that the machines have similar hardware, which is often the case when you get machines in batches. darren
Cthulhu for President!
(darren)
The best way that I can think of to do this would make a simple tar ball like joshua said. Then on initial bootup have init run a shell script instead of the /etc/rc.d stuff. In this shell script you would set the host name and IP and that's about it. once that is completed write the config to disk and change /etc/inittab to run as normal and you are installed.
Rather than making a disk image, I think you can use the command dump ( see "man dump" ) to put a giant file on a cd which you will restore to the disk with the dump command.
To get a target machine to the point where you can mount a CD and run dump, I suggest checking out some of the linux floppy distributions.
There is one other option. There used to be a web site that offered you all the choices offered in RedHat's install script, and then created a custom install floppy which would automatically install according to those specifications, no human intervention necessary. So you could just go to this site (or it's equivalent for slack or whatever other distribuiton you want, or download whatever tool the site is running and use it yourself) and then make a boot install disk and just shove it and the cdrom in every machine. I think the boot floppy/dump from cdrom method will work faster.