Custom CentOS DVD built with user interaction during installation or first run
Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
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.
Custom CentOS DVD built with user interaction during installation or first run
Hello all.
I would like some pointers for understanding how to build a custom CentOS DVD which will have some interaction with the user during installation or during the first run.
My requirements are the following:
CentOS (preferably 6.2 which is the latest at the time of writing the post) without GUI
MySQL
Apache
OpenLDAP
JBoss 5.1.0 (no option for different version)
Ant 1.8+ (no option for different version)
(Possibly other software, eg for backup)
I want to build the DVD for using it in an appliance. So, after the intallation and/or first run, users will have access only through web applications.
The flow of installation or first run goes like this:
1) Gather data from user (like password for MySQL)
2) Create configuration files from user provided data
3) Run ant to build an application using the configuration files
4) Start jboss to perform some other required steps
5) Shut down jboss and run ant to build final application for deployment
6) Start jboss and erase any installation left overs
If anything goes wrong, an option for restoring initial state (i.e. system without performing any of the above steps) would be nice.
I am not a total newbie on linux and of course I am not an expert.
I am comfortable on creating unix scripts given proper documentation though I have limited knowledge on which commands and/or tools will help me build the DVD.
I am not sure where to start looking for creating the required DVD, so any help is much appreciated.
Something that it's not very clear to me is how to install software that is not in a package.
For example, to my knowledge, CentOS provides RPM for Ant 1.7.x
Do I have to make an RPM for Ant 1.8.x on my own and make it available on the installation DVD using the packages section in Kickstart or can I use a Post-installation script to copy the software I need to install from a pre-defined location on DVD to a directory on the installed system?
Both ways would work, but making a RPM is a much cleaner solution. In that case the package management would know that you have Ant installed, so that it does not try to install the Ant version from the repositories when you install a software that is dependent on Ant.
1) Am I right to assume that using a Post-installation script I can control which services should start on boot and which should not or there is another way to do it?
2) Is there a 'standard' way of creating python programs like the Setup Agent that runs in first boot or my best bet is to read the source code of Setup Agent?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.