LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This 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


Reply
  Search this Thread
Old 04-04-2012, 06:21 AM   #1
virusakos
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Rep: Reputation: Disabled
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.

Regards,
Charis
 
Old 04-04-2012, 06:31 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
For building a custom installation DVD of Red Hat based OSes the first thing to look at is Kickstart.
Some links:
http://www.centos.org/docs/5/html/In...ickstart2.html
http://linuxmoz.com/centos-kickstart-guide/
http://www.centos.org/docs/2/rhl-cg-...2-options.html
http://www.centos.org/docs/2/rhl-cg-...-ksconfig.html
 
1 members found this post helpful.
Old 04-05-2012, 04:07 AM   #3
virusakos
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thank you for the links.

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?
 
Old 04-06-2012, 11:18 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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 members found this post helpful.
Old 04-09-2012, 02:25 AM   #5
virusakos
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Understandable, thank you.

A couple more questions I came across.

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?
 
  


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
how to automate an installation script suppressing user interaction aditi Programming 2 02-08-2010 11:43 PM
how to automate an installation script suppressing user interaction aditi Linux - Newbie 1 02-06-2010 05:56 AM
Reusing a custom built kernel on a new installation dizzi Slackware 4 08-01-2007 03:57 PM
Boot up and run applications without user interaction cleroux Linux - Newbie 2 07-11-2006 03:03 PM
Custom-Made Installation DVD from 4-CD ISO Set? jdanniel Linux - Newbie 1 08-07-2004 01:06 PM

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

All times are GMT -5. The time now is 08:41 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