Slide 1 : LINUX KOLLA SANJEEVA RAO MCA
: LINUX INSTALLATION
Naming Conventions for Physical Devices : Naming Conventions for Physical Devices Hard Disk: hd
Primary master : /dev/hda
Primary slave : /dev/hdb
Secondary master : /dev/hdc
Secondary slave : /dev/hdd
Naming Conventions for Physical Devices : Naming Conventions for Physical Devices SATA Hard Disk:
/dev/sda
/dev/sdb
/dev/sdc
/dev/sdd
Here there is no concept of Primary & Secondary or master & Slave.
Naming Conventions for Physical Devices : Naming Conventions for Physical Devices SCSI Drive:/dev/sda
The main aim of SCSI is that several peripherals can be daisy chained to one host adapter, using only one slot in the bus.
Here there is no concept of Primary & Secondary or master & Slave.
Naming Conventions for Physical Devices : There is no drive letters in LINUX such as C in Windows, here the convention is /dev/hda1. Naming Conventions for Physical Devices Partitions
Naming Conventions for Physical Devices : Floppy: fd
/dev/fdo ( For Floppy-1)
/dev/fd1 ( For Floppy-2) Naming Conventions for Physical Devices
Naming Conventions for Physical Devices : Naming Conventions for Physical Devices TAPE DRIVE: ht
/dev/ht0 (for Tpae drive 1) /dev/ht1 (for tape drive 2)
Naming Conventions for Physical Devices : Naming Conventions for Physical Devices cdroms:
/dev/cdrom 0 (for CDROM- 1)
/dev/cdrom 1 (for CDROM- 2)
Naming Conventions for Physical Devices : Naming Conventions for Physical Devices pen drives:
/dev/sda1 (for all external devices )
TYPES OF INSTALLATION : TYPES OF INSTALLATION
MODES OF INSTALLATION : MODES OF INSTALLATION LINUX TEXT
LINUX No probe
Linux Media Check
Linux Rescue
Linux updates
Linux Ask method
REQUIREMENTS OF INSTALLATION : REQUIREMENTS OF INSTALLATION
STEP BY STEP PROCEDURE FOR TEXT BASED INSTALLATION : STEP BY STEP PROCEDURE FOR TEXT BASED INSTALLATION Before putting the REDHAT linux CD-01 put the computer in BOOT from CD-ROM mode from BIOS setup.
Insert CD and Select /press F2 to get the modes of installation, such as
LINUX TEXT
LINUX No probe
Linux Media Check
Linux Rescue
Linux updates
Linux Ask method
For graphical mode press ENTER for text mode you have to type at
boot: linux text
Select New installation
or
Re Installation
STEP BY STEP PROCEDURE FOR TEXT BASED INSTALLATION ( contd..) : STEP BY STEP PROCEDURE FOR TEXT BASED INSTALLATION ( contd..) Select Automatic partition
or
Manual partition [ with DISK DRUID]
DISK DRUID is a partition tool.
Delete all existing partitions ( use up and down arrows for giving option to get ‘*’ on appropriate selection use space bar to get ‘*’ and follow instructions given at the bottom such as F4 for delete and so on)
(a) Allocate the sizes to mandatory directories.
(b) Create SWAP Area
STEP BY STEP PROCEDURE FOR TEXT BASED INSTALLATION ( contd..) : STEP BY STEP PROCEDURE FOR TEXT BASED INSTALLATION ( contd..) Example:
How to create a new partition?
Mount point: /
File System Type: Ext3
Allowable on :hda ( in case if your HDD is connected to primary master)
size :4000MB
one partition is created .
( Repeat this procedure to create all partitions)
STEP BY STEP PROCEDURE FOR TEXT BASED INSTALLATION ( contd..) : STEP BY STEP PROCEDURE FOR TEXT BASED INSTALLATION ( contd..) How to create swap area ?
Mount point : [ ] nothing to be selected
File System Type : SWAP
Allowable on : hda ( in case if your HDD is connected to primary master)
size : Double of the RAM Size if RAM<1 GB)
1 ½ of RAM size if RAM<1 GB
Note: To find out the RAM size press Ctrl+Alt+F2 and type command FREE and to come back to Text mode press Ctrl+Alt+F1 and to come back to GUI mode press Ctrl+Alt+F7.
HOW SWAP PARTITION WORKS? : HOW SWAP PARTITION WORKS?
STEP BY STEP PROCEDURE FOR TEXT BASED INSTALLATION ( contd..) : STEP BY STEP PROCEDURE FOR TEXT BASED INSTALLATION ( contd..) 7. Select Automatic partition.
or
Manual partition [ with DISK DRUID]
DISK DRUID is a partition tool.
Format all Partitions. The file system is Ext 3.
We can choose boot loader label and we can edit the label.
Configure Network address, Firewall option etc.
Give the Root password.
Select and customize software packages.
After installing all CDs it will ask for again Ist CD , insert it and wait for completion of Installation.
Reboot the system.
User name: ROOT ( default user made by the System)
Password:
Welcome to REDHATLINUX V4. ********
STEP BY STEP PROCEDURE FOR GUI BASED INSTALLATION : STEP BY STEP PROCEDURE FOR GUI BASED INSTALLATION Boot up system using CD.
Press Enter at the boot prompt.
Choose the appropriate language( English).
Press Enter on the OK prompt.
Choose the Appropriate Key Board (US).
Press Enter on the OK prompt.
Configure TCP/IP. Select Use Dynamic IP configuration ( BOOTP/DHCP).
Press Enter on the OK prompt.
Pres Enter on the OK prompt.
At this point Anaconda ( the installer ) will retrieve the necessary installation image and will probe the system for its monitor and mouse type and will finally present you with the welcome screen. Click Next.
Choose the appropriate mouse for your system . Click Next.
Manually partition your system using Disk Druid( Delete any Pre Existing partitions). The partitioning Scheme is as follows:
STEP BY STEP PROCEDURE FOR GUI BASED INSTALLATION ( contd..) : STEP BY STEP PROCEDURE FOR GUI BASED INSTALLATION ( contd..) Format all partitions.
Use the Default Boot Loader Settings.
Choose DHCP for networking and activate on boot.
Choose Enable Firewall.
Select the appropriate language Support.
Set the time Zone as appropriate for location.
Set the root password.
Select the Customize the set of packages to be installed and click next.
You should be now be at the about to install screen. Click next to begin.
Reboot the system after installation.
Welcome to REDHATLINUX V4. ********
PROCEDURE FOR NET WORK BASED INSTALLATION : PROCEDURE FOR NET WORK BASED INSTALLATION Just Follow the Above Steps up to Configuring TCP/IP
NFS METHOD:
NFS Server name : 188.152.0.253 ( For Example)
NFS mount : /var/ftp/pub
FTP METHOD:
FTP Site name : 192.168.1.254 ( For Example)
REDHAT Diretory : pub/…
Again just follow the Normal Method.
Here system will pick up the image from Server instead of CD.
Sample Partition Structure : Sample Partition Structure
Partitioning HARD DRIVES : Partitioning HARD DRIVES Hard Drives are divided in to partitions .
Partitions normally contain file systems.
. Primary
. Extended
. Logical
The default file system in Linux is EXT3.
Multiple partitions may be assembled in to larger virtual partition:
software RAID and LVM.
Primary: The first four partitions on the disk are called primary partitions.
Extended: If more than four partitions are needed , one of the four partitions may be converted into a special extension partition.
Logical: Extension partition that may contain one or more logical partitions.
MBR ( MASTER BOOT RECORD) : MBR ( MASTER BOOT RECORD) It contains
Boot Loader
Partition table
Boot signature
Boot loader: It gives GRUB loader information.
Partition table: It gives information about partition such as starting address, Ending address , size etc.
Boot Signature: It is having active partition information.
RAID &LVM : RAID &LVM Multiple partitions may be assembled in to a single virtual partition by using Advanced techniques.
Software RAID: It is used to provide redundancy, improve performance, or create partitions bigger than a single disk.
multiple partitions from different disks are assembled in to a RAID Device, A disk drive which is treated like a normal partition.
LVM: LVM is used to assign one or more partitions to a volume group, which can be used to create virtual partitions called logical volumes. These logical volumes are easier to resize than normal prtitions.
Boot up system using CD. Press Enter at the boot prompt. : Boot up system using CD. Press Enter at the boot prompt.
Running annaconda …….. : Running annaconda ……..
Redhat screen : Redhat screen
Slide 30 : Redhat welcome screen
Slide 31 : Choose the appropriate language( English).
Press Enter on the OK prompt.
Slide 32 : Choose the Appropriate Key Board (US).
Click Next ….
Manually partition your system using Disk Druid( Delete any Pre Existing partitions). : Manually partition your system using Disk Druid( Delete any Pre Existing partitions).
Disk Setup…. : Disk Setup….
Slide 35 : Format all partitions.
Slide 36 : Edit partitions if require delete.
Slide 37 : Edit partitions if require delete.
Slide 38 : Select the partition on which you want to load LINUX
Slide 39 : Format all the partitions.
Slide 40 : Use the Default Boot Loader Settings
Slide 41 : Here you can edit the boot loader label
Slide 42 : Choose DHCP for networking or manually set IP ….
Slide 43 : Choose Enable Firewall.
Slide 44 : Select the appropriate language Support.
Slide 45 : Set the time Zone as appropriate for location.
Slide 46 : Set the root password.
Slide 47 : Select the Customize the set of packages to be
installed and click next.
Slide 48 : Select the optional packages to be installed
Slide 49 : Package group selection …….
Slide 50 : Click next to begin installation…….
Slide 51 : Depending on your package selection you require 4 CDs
Slide 52 : Installing packages……… insert Second CD
Slide 53 : Installing packages……… insert Fourth CD
Slide 54 : Installing packages completed ……… insert First CD
Slide 55 : Congratulations , the installation is completed
Slide 56 : Welcome to the world of LINUX………….
Slide 57 : Select Yes to agree the license Agreement
Slide 58 : Adjust your display settings as per your requirements
Slide 59 : Detection of various hardware devices and configuring
Slide 60 : Create user Name and give password
Slide 61 : If you want to load some third party applications
USEFUL LINKS : USEFUL LINKS http://fedora.redhat.com http://www.redhat.com/docs/manuals/linux/