Linux Home Networking
Linux Home Networking
Windows Server Installation Red Hat Linux System Sign Up For Orkut Now
Destination for technical resources Register Now for Certification in Join Communities of Your Interest,
Expert guidance to Windows Client. Red Hat Linux System Try out Cool Games & Apps and
Technet.Microsoft.com/Windows Administration More!
HTCampus.com/RedHat www.google.com/Orkut
Like 2 0 Share
Contents
1 Introduction
2 Setting Up The Kickstart Server
2.1 Basic Preparation
2.1.1 Create The Installation Directories Dell.com/Laptops/Inspiron Ads by Google
2.1.2 Copying The Files
2.1.3 HTTP & FTP Preparation
2.1.4 NFS Preparation
2.2 Setup Your Webserver
2.3 Setup Your FTP Server
2.4 Create A Special FTP User
2.5 Setup Your NFS Server
2.6 Configure Your DHCP Server
3 Creating A Kickstart Boot CD
4 The Network Installation
4.1 If You Selected The NFS Method
4.2 If You Selected The HTTP Method
4.3 If You Selected The FTP Method
5 Troubleshooting The Network Installation
6 Automating Installation With Kickstart Ctrls.in/VPS-Hosting-Servers-India Ads by Google
6.1 How To Create New Kickstart Configuration Files Other Linux Home Networking Topics
6.1.1 Adding Post Installation Commands
6.1.2 A Note About Using anaconda-ks.cfg Introduction to Networking
6.2 How To Run A Kickstart Installation Linux Networking
6.2.1 Using a NFS Server Simple Network Troubleshooting
6.2.2 Using a Web Server Troubleshooting Linux with Syslog
Installing Linux Software
6.2.3 Booting With Your Kickstart Files The Linux Boot Process
7 Conclusion Configuring the DHCP Server
Linux Users and sudo
Windows, Linux and Samba
Sharing Resources with Samba
Samba Security and Troubleshooting
Introduction Linux Wireless Networking
Linux Firewalls Using iptables
Linux FTP Server Setup
Fedora Linux allows you to do operating system installations via a network connection using a Kickstart server. It is frequently much faster than Telnet, TFTP and xinetd
using CDs and the process can be automated. The procedure is fairly simple: Secure Remote Logins and File Copying
Configuring DNS
Connect the new server (installation client) to the same network as the server with the pre-loaded installation files (installation server). Dynamic DNS
The Apache Web Server
Boot the installation client from a specially created boot CD Configuring Linux Mail Servers
Enter your preferred installation method (FTP, HTTP, NFS) and the needed network parameters to do this Monitoring Server Performance
The installation procedure will then continue with the more familiar Fedora Linux installation screens. Enter your selections and then Advanced MRTG For Linux
complete the installation. The NTP Server
Network-Based Linux Installation
Linux Software RAID
This chapter will briefly explain how to set this up using all three methods using a single installation server (bigboy) with an IP address of Expanding Disk Capacity
192.168.1.100. Managing Disk Usage with Quotas
Remote Disk Access with NFS
Configuring NIS
Setting Up The Kickstart Server Centralized Logins Using LDAP and RADIUS
Controlling Web Access with Squid
Modifying the Kernel to Improve Performance
Kickstart can be configured on an FTP, NFS or Apache server. Each method is explained below, but my experience has been that the Apache Basic MySQL Configuration
server has a number of advantages over the other two.
Using a web server for kickstart is generally easier because: LHN Linux Forums - Latest Threads
Sometimes a kickstart server has to be located on a remote network, often passing through a firewall. Strict firewall rules for HTTP are config dhcp (Linux - General Topics) in this
generally easier to configure than those for FTP or NFS. sentence for runnin dhcp server what is the
minin of bold and coloride sentence? Normally
The http:// nomenclature used by kickstart for accessing files is more familiar to users than that used for NFS and FTP. This may be if you have a cable modem or DSL, you get...
important for you when configuring files for automated kickstart installation. Getting hostnames (DNS) from router? (Linux -
Hardware, Networking & Security) I have 4
computers wired into my home D-Link DIR-625
Basic Preparation router and any number of wireless notebooks
that come and go. Connecting to the router I
can...
In this example we are going to set up a kickstart server that will be used in Fedora Core installations. All the necessary files will be placed in the
1 of 6 4/11/2011 6:42 PM
Quick HOWTO : Ch25 : Network-Based Linux Installation - Linux Home ... http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:...
Copy all the contents of each installation CD to the /data/network-install/RPM directory. This will require about 3-5 GB of space. When this
is completed, your /data/network-install/RPM directory should look like this:
NFS Preparation
Create ISO images of the installation CDs and place them in the /data/network-install/ISO directory. This will require about 3-5 GB of space
as well. You can download the ISO images from the Fedora website or use the Fedora CDs as shown below. If you create the ISOs files from CDs,
make sure they have the same file names as the ones you can download from the Fedora Web site.
Follow these steps for each CD, substituting the filename where necessary:
Note: Here is a sample procedure to make ISO files with the older mkisofs command. You may have to install the mkisofs RPM on newer Fedora
versions. The command requires a mounted CDROM drive, so don't forget the mount command.
2 of 6 4/11/2011 6:42 PM
Quick HOWTO : Ch25 : Network-Based Linux Installation - Linux Home ... http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:...
NameVirtualHost 192.168.1.100
#
# For HTTP Installations
#
<VirtualHost 192.168.1.100>
ServerName 192.168.1.100
DocumentRoot /data/
</VirtualHost>
<Directory /data/network-install>
Options +Indexes
AllowOverride AuthConfig
order allow,deny
allow from all
</Directory>
#
# File: vsftpd.conf
#
#
# Anonymous FTP Root Directory
#
anon_root=/data/network-install/RPM
#
# Log file definition
#
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
1) Create a /etc/exports file with the following entry in it. You must use tabs, not spaces between the entries
/data/network-install *(ro,sync)
2) Make sure that the rpcbind (portmap on older versions of Linux) , nfs, nfslock and netfs daemons are all running to create an NFS server. The
startup scripts for these are found in the /etc/init.d directory. Chapter 29, "Remote Disk Access with NFS", will explain this in more detail.
3) Run the exportfs command to add this directory to the NFS database of network available directories.
4) The installation client must have a matching pair of forward and reverse DNS entries on your DNS server. In other words, a DNS lookup on the
IP address of the installation client must return a server name that will map back to the original IP address when a DNS lookup is done on that
same server name.
This may mean that you will have to create entries for all your DHCP IP addresses if you choose to use a DHCP method of assigning IP addresses
during installation.
3 of 6 4/11/2011 6:42 PM
Quick HOWTO : Ch25 : Network-Based Linux Installation - Linux Home ... http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:...
Setting up the Installation Server as a DHCP server is fairly straight forward and can be found in Chapter 8, "Configuring the DHCP Server".
1. Your RPM directory should have a subdirectory named images in it. There will be a file there named boot.iso which is used in booting your
system when installing Linux from DVD or CD. Fedora mirror sites that have directory structures similar to that of the DVD also have a boot.iso
file located in the <fedora-version>/Fedora/i386/os/images/ directory. This file is different in both size and function to that on your DVD. It
usually larger than 10 MB in size and it is the boot file you need for kickstart. Download the boot.iso file from your favorite mirror site using a
utility like wget.
2. You will now need the device name of your CDROM device. This can be obtained using the wodim command. In this case it is called
/dev/scd0.
3. Insert a blank CD. The wodim command can now be used again to burn the boot.iso ISO image file to the CD.
Keep the CD. You will soon need it for your kickstart client machine.
Local CDROM
Hard Drive
NFS Image
FTP
HTTP
During the installation, issue the following command on the server to check the Apache logs. It will help to verify whether the kickstart client is
accessing the files correctly. You should get a status code of 200<code> after each GET statement. You should retrace your steps if
you are not.
The "Red Hat directory" will be "/". The following menus will be text based versions of the usual Fedora
installation screens.
4 of 6 4/11/2011 6:42 PM
Quick HOWTO : Ch25 : Network-Based Linux Installation - Linux Home ... http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:...
The "Red Hat directory" will be "/data/network-install/RPM". Enter the username and password of your special FTP
user account. The following menus will be text based versions of the usual RedHat installation screens.
Note: During the installation, issue the following command on the server to check the FTP logs. It will help to
verify whether the kickstart client is accessing the files correctly.
This section shows you how to automate network installations using the kickstart application and NFS. You can use HTTP and FTP but they have
been omitted to keep the discussion brief.
You may want to then edit the configuration file and comment out certain parameters that may change from system to system with a "#". These
could include things like the system's name and IP address. During the kickstart process you will be prompted for these unspecified values.
Note: Do not change the order of the entries in the kickstart configuration file.
Note: The IP address you assign must be on the same subnet as that of the DHCP server for kickstart to work. If the server is going to reside on a
different network after the installation, then you'll have to run a separate script to change the IP addressing information after the installation is
complete.
You may want to run some commands on the newly created Linux installation after kickstart is complete. Some processes that are activated by
default by Fedora may not be suitable for your server and may need to be disabled.
This can be done by placing a %post section at the end of the kicksrart file with all the post installation commands you wish to run. Here is an
example:
%post
chkconfig isdn off
chkconfig pcmcia off
chkconfig portmap off
chkconfig apmd off
chkconfig nfslock off
chkconfig nfs off
It is possible to use the /root/anaconda-ks.cfg file as a template for future installations. RedHat comments out the partitioning information in this
file, so you will either have to uncomment it and then make your partitioning modifications or be prepared to be prompted for your portioning
information.
Remember that you may want to remove the "#" comments from the partition section of the file. If not, you will be prompted for this information.
install
nfs --server=192.16.1.100 --dir=/data/network-install/ISO
5 of 6 4/11/2011 6:42 PM
Quick HOWTO : Ch25 : Network-Based Linux Installation - Linux Home ... http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:...
install
url --url http://192.168.1.100/network-install/RPM
Once you have booted from your boot CDROM, you'll need to use the following command at the lilo boot: prompt to continue with the
installation. The ks.cfg file is the kickstart configuration file we want to use.
NFS Method
HTTP Method
Whenever you have to create lots of cloned Linux servers, then you may want to configure your DHCP server to specify the single kickstart
configuration file you wish to use. Here is how it's done:
2) Edit your dhcpd.conf file and add the following lines to the section for the interface that will be serving DHCP IP addresses. The next-server
value is the IP address of the kickstart server.
filename "/data/network-install/kickstart/ks.cfg";
next-server 192.168.1.100;
3) Insert the boot CD into the kickstart client Linux box and connect it to the DHCP network. At the boot: prompt type in the following
command:
boot: linux ks
Kickstart will first search for a configuration file named ks.cfg on either the boot CD. It will then automatically attempt to get a DHCP IP address
and see if the DHCP server will specify a configuration file.
Kickstart will then use NFS to get both the configuration file and the installation ISOs. The rest should be automatic.
Conclusion
The Kickstart method of Fedora Linux installation can greatly reduce the length of time it takes to install the operating system. Time is saved not
only because a network connection can be faster than using CDs, but also because it can be left unattended to install a predetermined Linux
configuration. A Kickstart server connected to an isolated wireless network dedicated to the purpose may be a good idea for data centers with
hundreds of Linux servers.
A recent standard called PXE allows you to run kickstart without a CD ROM if you configure the NIC card to do a network boot from a specially
configured DHCP server. The topic is beyond the scope of this book, but it may be interesting for readers with more complex projects to research
this option more.
6 of 6 4/11/2011 6:42 PM