Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
CentOS 6 Linux Server Cookbook

You're reading from   CentOS 6 Linux Server Cookbook An all-in-one guide to installing, configuring, and running a Centos 6 server. Ideal for newbies and old-hands alike, this practical tutorial ensures you get the best from this popular, enterprise-class free server solution.

Arrow left icon
Product type Paperback
Published in Apr 2013
Publisher Packt
ISBN-13 9781849519021
Length 374 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Jonathan Hobson Jonathan Hobson
Author Profile Icon Jonathan Hobson
Jonathan Hobson
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

CentOS 6 Linux Server Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Installing CentOS 2. Configuring CentOS FREE CHAPTER 3. Working with CentOS 4. Managing Packages with Yum 5. Securing CentOS 6. Working with Samba 7. Working with Domains 8. Working with Databases 9. Providing Mail Services 10. Working with Apache 11. Working with FTP Index

Finishing the installation process with Firstboot


In this recipe we will learn how to finalize the installation process by enabling Firstboot, a simple application that enables you to manage the first-time installation of your server in a slightly less complicated way.

Firstboot can function in both the console and desktop environments and its intention is to activate the Setup agent. It has a single purpose that is often considered to be an optional extra, it isn't always going to be necessary, but for beginners and experienced users alike, it does provide instant access to a tried and tested process that will enable you to finalize the installation of any CentOS server in a fast and efficient manner.

Getting ready

To complete this recipe, you will require a minimal installation of the CentOS 6 operating system with root privileges and a connection to the Internet in order to facilitate the download of additional packages.

How to do it...

On a minimal installation Firstboot is not installed by default and for this reason we will begin this recipe by installing the necessary package and its related dependencies.

  1. To do this, log in as root and type the following command:

    yum –y install firstboot
    
  2. When the installation is finished, simply enable the package to run at boot by typing the following command:

    chkconfig firstboot on
    
  3. At a convenient time, simply reboot the system to access Firstboot by typing:

    reboot
    
  4. On a successful reboot, you will be presented with the Firstboot application. To begin, simply use the Up and Down arrow keys in conjunction with the Tab key to jump between the elements on the screen. Make the appropriate changes to your system and use the Return key to confirm your choices. On certain screens you are given the opportunity to use the Space bar in order to nominate or activate a particular setting. Choose Quit to exit Firstboot at any time.

  5. Having quit Firstboot, you will be invited to access your server in the usual way but remember, any permanent changes to your security settings may not take effect until you reboot your server. So if this is the case, return to your console and type:

    reboot
    

How it works...

Firstboot is a simple package with the sole purpose of activating the Setup agent. It is not intended to be complicated and for this reason you probably found that it was both easy to install and even easier to activate.

So what did we learn from this experience?

We start the recipe by installing the necessary packages. In this case, the target package was called Firstboot and so we issued the following command to the server:

yum –y install firstboot

The system then proceeded to install a number of different dependencies that includes many setup utilities, but as Firstboot runs as a service, to access these utilities you should ensure that the service is running. So our next step was to return to the console and type:

chkconfig firstboot on

Note

If you prefer to ensure that Firstboot will only launch with the desktop environment, simply modify the preceding command to read as follows:

chkconfig --level 5 firstboot on

Having done this, we then proceeded to reboot the system like so:

reboot

On a successful reboot, you are then invited to run the various tools associated with this service. Of course, a discussion regarding the actual settings you should employ is a subject we will return to later on in this book, but having successfully completed this recipe you now understand that this small addition does have specific uses that serve to simplify the process of finalizing the installation of any CentOS server.

On a console-based server, the act of running Firstboot will enable you to run a screen by screen setup process that covers the main aspects of a first-time installation. For experienced users, this can prove to be a welcome reminder, but for new users Firstboot can prove to be a useful introduction to CentOS by offering a one-stop, tried and tested starting point. It may not be a necessary feature, but this small tool does go some way to make CentOS a very easy experience.

There's more...

As the name implies, Firstboot will only run once. However, should you ever wish to return to this screen in the future, simply log in to your server as the root user and ensure the service is set to run at boot by typing:

chkconfig firstboot on

Now remove the following file by typing:

rm /etc/sysconfig/firstboot

You will be asked if removing this file is intended, so type y (yes) and press the Return key to confirm your decision like so:

rm: remove regular file 'etc/sysconfig/firstboot' ? y

Having done this Firstboot is now active and will be ready to run on your next reboot.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image