1.11k likes | 1.57k Views
Unit 2: Installing a Linux System. Unit objectives Install Fedora Core 2 (we’ll use 6) Describe types of hardware devices and their configuration Obtain the necessary information about hardware and software to install Linux . Topic A: Installing Linux.
E N D
Unit 2: Installing a Linux System Unit objectives • Install Fedora Core 2 (we’ll use 6) • Describe types of hardware devices and their configuration • Obtain the necessary information about hardware and software to install Linux
Topic A: Installing Linux 1.1 Identify all system hardware required (for example: CPU, memory, drive space, scalability) and check compatibility with Linux Distribution 1.2 Determine appropriate method of installation based on environment (for example: boot disk, CD-ROM, network (HTTP, FTP, NFS, SMB)) 1.3 Install multimedia options (for example: video, sound, codecs) 1.6 Partition according to pre-installation plan using fdisk (for example: boot, /usr, /var, /home, swap, RAID/volume, hot-spare, lvm) 1.7 Configure file systems (for example: (ext2) or (ext3) or REISER) 1.8 Configure a boot manager (for example: LILO, ELILO, GRUB, multiple boot options) 1.11 Select appropriate parameters for Linux installation (for example: language, time zones, keyboard, mouse) 3.1 Configure client network services and settings (for example: settings for TCP/IP)
High Level Activities • Gather Hardware and Software information • Select install method • Create installation media (If needed) • Configure
Installation methods • Network installations • FTP server • Web server • NFS server • Hard disk • CD-ROM • Most common • Bios needs to be set to boot from CD-ROM before HD
Installation procedure • Start installation • Choose language, keyboard, mouse • Specify options • Partition hard disk • Configure boot loader • Configure network and firewall • Choose system language and time • Set root password continued
Installation procedure continued • Select packages • Create user account • Configure video
Installation • Graphical is easy • Text can help troubleshoot • If you get hung, F2 and disable hardware probe • More difficult
Language, Keyboard, Mouse • Should auto detect • When in doubt- • 101 key PC keyoard • US English Layout • Generic mouse
Installation Type • Different Installation require different amounts of HD space • Up to 7 GB
HD Partitions • Dangerous to your system • Changing the partitions will erase existing date • Minimum Requirements • Root directory / • Everything installs on top of this • Swap Partition • Virtual memory
Filesystems • Ext2 • Ext3 • Vfat • Xfs • reiserFS
Filesystems • Ext3 and resierFS • Can journal • Faster restore of data
Virtual memory • Supplements physical memory • Slower, but helps out • Should be twice the size of the RAM
Partitioning-Creating Partitions • Can be automatic • Let machine decide • Use defaults unless a special reason • Disk Druid • Graphical Interface • Fdisk • Not used in install, but still there • Text based and complex
Configuring the boot loader • Boot loader • Started by the BIOS after POST • Loads Linux into memory • Can also boot other operating systems • LInux LOader (LILO) • GRand Unified Bootloader (GRUB)
Where to install Boot loader • Master Boot Record • May conflict with Windows installations • In / or /boot • Plays nicer
Configuring the network & Firewall • Network • If NIC is detected, install screen appears • Manual or DHCP • Firewall • Generally designed to stop others from connecting to you, not you to others.
Root password and Authentication • Root is Superuser/Administrator • Full rights to everything • Don’t work as root • REMEMBER PASSWORD
Package Selection • Packages based on the role you selected earlier. • Can add more later.
User account • Default by database on local machine • MD5 shadow passwords • Encrypts password and compares encryption results • Can use network • NIS, LDAP, Kerberos, etc.
Sample Questions Why would Kernel 2.3.19-2 be an INAPPROPRIATE kernel for a production web server? A. It is a test version of the kernel. B. It is not the most recent kernel available. C. It needs to be upgraded to Kernel 2.3.20 for network support. D. This version of the Linux kernel has a known problem with Apache.
Sample Questions Why would Kernel 2.3.19-2 be an INAPPROPRIATE kernel for a production web server? A. It is a test version of the kernel. B. It is not the most recent kernel available. C. It needs to be upgraded to Kernel 2.3.20 for network support. D. This version of the Linux kernel has a known problem with Apache. Answer: A
Sample Questions A Linux administrator is about to install a Linux server. The server has 256MB of RAM. Which of the following sizes of the swap partition is generally recommended? A. 128MB B. 256MB C. 512MB D. 1024MB
Sample Questions A Linux administrator is about to install a Linux server. The server has 256MB of RAM. Which of the following sizes of the swap partition is generally recommended? A. 128MB B. 256MB C. 512MB D. 1024MB Answer: C
Sample Questions An administrator wants to install Linux onto a computer that does not have a CD-ROM drive. Which of the following is the BEST way to complete the installation? A. Install via TFTP (Trivial File Transfer Protocol) from the network. B. Install via FTP from an FTP server. C. Install via NFS (Network File Server) from a Web server. D. Copy the CD-ROM files to the machine using the 3.5" diskette drive.
Sample Questions An administrator wants to install Linux onto a computer that does not have a CD-ROM drive. Which of the following is the BEST way to complete the installation? A. Install via TFTP (Trivial File Transfer Protocol) from the network. B. Install via FTP from an FTP server. C. Install via NFS (Network File Server) from a Web server. D. Copy the CD-ROM files to the machine using the 3.5" diskette drive. Answer: B
Sample Questions When a file server is installed, which of the following directories would MOST likely be on a separate partition? A. /usr B. /var C. /home D. /local
Sample Questions When a file server is installed, which of the following directories would MOST likely be on a separate partition? A. /usr B. /var C. /home D. /local Answer: C
Sample Questions Linux will be installed on a new system. Where will LILO be installed? A. In the /boot directory. B. In the /root directory. C. In the master boot record. D. In the /usr/sbin directory.
Sample Questions Linux will be installed on a new system. Where will LILO be installed? A. In the /boot directory. B. In the /root directory. C. In the master boot record. D. In the /usr/sbin directory. Answer: C.
Sample Questions Which if the following is the only required partition when Linux is installed? A. / B. /var C. /etc D. /boot
Sample Questions Which if the following is the only required partition when Linux is installed? A. / B. /var C. /etc D. /boot Answer: A.
Sample Questions A site administrator instructs the technician to install Linux as a secondary OS on an existing workstation. He wants to use the boot loader of the primary OS. When requested where to place LILO, the technician should select which location? A. BIOS B. /etc/disktab C. Master boot record D. Partition superblock
Sample Questions A site administrator instructs the technician to install Linux as a secondary OS on an existing workstation. He wants to use the boot loader of the primary OS. When requested where to place LILO, the technician should select which location? A. BIOS B. /etc/disktab C. Master boot record D. Partition superblock Answer:B
Major components of a PC • Central processing unit (CPU) • Physical memory • Disk drive • Mainboard & peripheral components • Video adapter card • Keyboard & mouse
Functions of CPUs • Manipulate data • Perform arithmetical computations • Direct the functions of other hardware devices