SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The Slackware installer works very well. However, if you want to install Slackware on several PCs it requires the same manual interaction for each system. Is there a guide on how to automate the install process? And is there an easy way to include such a script in the iso, so that it is directly available?
Everything that you need is to know how to configure a system manually. If you have configured parts of a system that you needed by using a text editor then you are probably ready.
Here are some key points that you need to follow:
* Custom initrd
* Create a custom image
* Boot up the installation image
* Create partitions
* Install packages
* Configure the system
Custom initrd: Creating an initrd could be the hard part for a beginner but do not be afraid. You only need to extract the contents of it, put what you want in it, and compress it again.
Creating custom ISO: You put your custom initrd and your custom Slackware Tree and create and custom ISO from it. The instructions to create the iso are in a README in the isonlinux folder of the Slackware Tree.
Creating partitions: I think you can create partitions by using fdisk without giving any input, just pass in a set of instructions from standard input.
Installing packages: You can use installpkg and loop over the packages in order to install them, it is pretty easy, there is even a flag called --root.
Configuring the system: Here is where a lot of work is done, or so little, it depends of the system's administrator. Setting up the hostname, network, service files (rc), users, locale, etc, certificates, etc.
You can use only: fdisk, cp, echo, cat, and installpkg in order to set up an entire installation automatically.
You just need to know about standard input and output in order to manipulate the necessary files and programs that you need for the installation. Because most of the things that you need to configure a Slackware system are just files.
Last edited by slac; 08-17-2022 at 11:33 PM.
Reason: Answer corrected for the op. Edit 2: Adding more detail.
Configuring the system: Here is where a lot of work is done, or so little, it depends of the system's administrator. Setting up the hostname, network, service files (rc), users, locale, etc, certificates, etc.
The custom rc files are easy to put in a package. If you have a network with many machines you probably don't have local users but get the user information from some catalog service like ldap or nis. On my custom installation media there are not many questions left, however there is still a dialog asking for IP address. That IP address is then used to query a DNS server in the network about which hostname it should use.
Quote:
Originally Posted by slac
Because most of the things that you need to configure a Slackware system are just files.
Exactly, and it is easy to put files in a custom Slackware package which you then can deploy to many machines.
However, doing this kind of work takes time. If you are going to install less than 10 machines with your custom installation media you might save time by instead keeping a log of all the answers you are going to give during installation.
Something missing in the original question and discussion is whether the "several PCs" means several identical PCs, or several each-is-different PCs.
If all PCs are identical, there are options of disk cloning followed by individual modification for specific systems. If the PCs are different, then changing hardware, changing drivers, etc. may mean the setup either has to be customized or has to be very generic.
But as Henrik says, if "several" is a small number, it might be easier to bite the bullet and do it manually.
If all PCs are identical, there are options of disk cloning followed by individual modification for specific systems.
Cloning might be an option even if the hardware is not very similar between machines. The important thing is how they boot, maybe you need two clones, one for UEFI and one for MBR.
Once an initial clone is up and running a few additional custom packages can be added for things like network configuration and graphics drivers.
The drawback of a cloning strategy is that you will be rather lost the day you need to reinstall from scratch (how did I create that master clone X years ago?). You will also get an increasing number of patch packages that you will need to apply to all installations after the initial cloning has been done. Maybe you want to update your master clone every now and then, but then, are you really sure that your master clone is pristine? Sometimes you might want to do a reinstall from scratch to get to a well known status.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.