Linux Format

Kickstart a CentOS installati­on

-

You can automate the installati­on of CentOS (and other RPM-based distros such as RHEL and Fedora) by using what are known as kickstart files. These are text files that contain instructio­ns for the Anaconda installer. The instructio­ns vary and can include language and localisati­on settings, the layout of the partitions as well as authentica­tion informatio­n for the root user. You can also use kickstart files to select package groups and individual packages that you want to install.

You can use different kickstart files for installing different types of systems, such as a web server, a mail server or a graphical desktop. What makes the kickstart file so powerful is that it enables you to embed scripts that are executed at key stages of the install process. This means that you can automate a lot of the work that you’d normally do by hand and have the installer run all of those steps for you. For example, you can automatica­lly restore files from a backup and modify yum’s configurat­ion files to download updates from a local mirror instead of the CentOS servers.

When you install a CentOS machine, the Anaconda installer will save a kickstart file for that particular installati­on under /root/

anaconda-ks.cfg. You can use this file to install another system, identical to the one you’ve just installed. Furthermor­e, you can also use this kickstart file to customise and create your own files. The most convenient way is to use the graphical KickstartC­onfigurato­r tool ( seethe lastpage) that you can download and install with yum install system-config-kickstart . To use the kickstart file to start an installati­on, refer to the chapter on Kickstart installati­ons in the RHEL documentat­ion at https://access.redhat.com/ documentat­ion/en-US/Red_Hat_Enterprise_ Linux/6/html/Installati­on_Guide/ s1-kickstart2-startingin­stall.html.

Newspapers in English

Newspapers from Australia