Linux

67
LINUX -101

Transcript of Linux

Page 1: Linux

LINUX -101

Page 2: Linux

What is Linux?

is an Operating Systemis a clone of Unix Operating systemis design to run on a PCis Multi-tasking / Multi-user

Page 3: Linux

What is Linux? is robust and scalable is stable is open-source as are most

application available for it is growing in popularity (apache) is portable (PDA , cellphones, car and

appliances) is secure

Page 4: Linux

History of Linux

In 1991, Linus Torvalds, a student at the University of Helsinki Finland, developed the Linux kernel.

It was released on the internet and was freely available for download.

Back in 1983,the Free Software foundation(www.fsf.org) began developing open source software to create a free Unix operating system, this software was called the GNU(guh-noo) utilities. GNU stands for “GNU’s not unix”

Page 5: Linux

History of Linux Around 1991, the GNU utilities were combined with the

Linux kernel. Today most of people call this operating system Linux. however, the free software foundation says that this is

incorrect and it should be called GNU/Linux. You should know that the Linux source and most

applications for it are free of charge, So any company charging you for Linux is not charging you for the software but instead, for the compiling of the software, the packaging , and support of the software.

Page 6: Linux

Licensing Information Is the most important part of the Open

Source Software movement. Is legally covered by the GNU General Public

License , is also known as GPL. GPL allows people to take free software and

distribute their own versions of the software.

Page 7: Linux

Licensing Information

However, the vendors who sell free software cannot restrict the right s of users who purchase the software . In other words, users who buy GPL software can make copies of it and distribute it free of charge or for a fee.

Page 8: Linux

Licensing Information

Also distributors of GPL software must make it clear that the software is covered by the GPL and must provide the complete source code for the software at no cost. Linux is the perfect example of how this is supposed to work.

Page 9: Linux

Open Source An open source license is

a copyright license for computer software that makes the source code  available for everyone to use. This allows end users to review and modify the source code for their own customization and/or troubleshooting needs.

Open Source software is free but is not in the public domain , it is not shareware either.

Page 10: Linux

Open Source

Open-source licenses are also commonly free , allowing for modification, redistribution, and commercial use without having to pay the original author. Some open-source licenses only permit modification of the source code for personal use or only permit non-commercial redistribution.

Page 11: Linux

Open Source

All such licenses usually have additional restrictions such as a requirement to preserve the name of the authors and a copyright statement within the code. One popular set of free open-source software licenses are those approved by the Open Source Initiative (OSI) based on their Open Source Definition (OSD).

Page 12: Linux

When Red Hat released its fully packaged version of Linux with support its popularity took-off, soon after that commercial vendors like IBM ,Dell , and HP began pushing Linux Servers. Linux continues to increase in popularity more and more mainstream computer users.

Page 13: Linux

Types of Linux

A Linux Distribution is a precompiled and pre-packaged version of Linux. It may offer certain features and software applications that others do not. There over 300 different Linux distributions. Here are some of the most popular:Red Hat/fedora/enterpriseDebianSUSE(Novell)Gentoo

Page 14: Linux

A Linux Clone is a Linux version on a certain distribution , for example , CentOS and White Box Enterprise Linux(to name a couple) take the Red Hat Enterprise Linux source and recompile it . This way users get the stability and benefits of the Red Hat Enterprise Linux code but at no cost.

Linux Clones

Page 15: Linux

Linux vs. Unix

Linux is a Unix like operating system Unix is “the original” Unix is broken down into system V

and BSD Unix is typically run on a larger mini-

computers and distributed through commercial variants like IBM’s AIX and Sun’s Solaris.

Page 16: Linux

However, you can get free Unix ,Free BSD

Linux is made for PC’s and lower end Servers

Linux is a type of Unix

Linux vs. Unix

Page 17: Linux

Windows StrengthsBetter supportMore software availableEasier for new users to useProfessionals & Commercial TeamsClosed source makes it more secure (debatable).

Comparison of Linux and Windows

Page 18: Linux

Windows WeaknessesBecause of its popularity it is the targetClosed source makes modification difficultCostStability

Comparison of Linux and Windows

Page 19: Linux

Linux StrengthsOpen Source make it more secure (debatable)Costs less (free)Most Applications are freeHighly portable Highly customizableThe “Networking OS”

Comparison of Linux and Windows

Page 20: Linux

Comparison of Linux and Windows

Linux WeaknessesChallenging to learn how to useCan be difficult to install applications and patchesDevices are not always supported (like on a laptop)Application aren’t always available

Page 21: Linux

Linux Certifications

Topics to cover

Linux + ( Comp TIA ) A+, Net+, Server+Red Hat RHCT/RHCELPI (Linux Professional Institute)CLP/CLEUnix Certifications

Page 22: Linux
Page 23: Linux

Installing Linux - A Topics to CoverCase ScenarioIdentify Proper HardwareMethods for installing LinuxLinux Multimedia OptionsDetermine a purpose for the Linux machine

Page 24: Linux

Installing Linux - B

Topics to CoverConfiguring Linux File systemsConfiguring Boot ManagersConfiguring Network OptionsConfiguring Linux Installation ParametersInstall

Page 25: Linux

Identify Proper Hardware for Installation

Linux + Objective covered:1.1 Identify all system hardware required and check compatibility with Linux distribution.CPUMemoryDrive spaceScalability

Page 26: Linux

Things to consider first before proceeding.

Workstation Linux Appliances Devices and device drivers in Linux Text vs. Graphics installation

requirements Fedora Linux CPU platforms-o i386o x86_64o ppc

Page 27: Linux

Memory requirements Hard Disk requirementso sizeo speed & interfaceo controller Hard disk requirements vs. partitioning Scalability of Linux and of Hardware

Page 28: Linux

Sample compatibility

Linux fedora . Red Hat Site: http://fedora.redhat.com./docs/release.notes/fc5/X86 specifics for FedoraThis section covers any specific information you may need to know about Fedora Core and the x86 hardware platform.

Page 29: Linux

X86 Hardware Requirements

In order to use specific features of fedora core 5 during or after installation, you may need to know details of other hardware components such as video and network cards.

Page 30: Linux

X86 Hardware Requirements

CPU specifications:

Intel processorsAMDCyrixVIA

Page 31: Linux

CPU

Fedora core 5 is optimized for Pentium 4 CPU’s , but also supports earlier CPU’s such as Pentium , Pentium pro, Pentium II, Pentium III and compatible AMD and VIA processors.

Recommended for text-mode: 200 MHZ Pentium-class or better

Recommended for graphical: 400 MHZ Pentium II or better

Page 32: Linux

CPU

AMD64 processors (both Athlon64 and Opteron)

Intel processors with Intel @ extended memory 64 Technology (Intel EM64)

Minimum RAM for text mode 128mb Minimum Ram for Graphical 192mb Recommended for Graphical 256mb

Page 33: Linux

Hard Disk Space Requirements

In practical terms, additional space requirements may range from as little as 90mb for a minimal installation to as much as an additional 175mb for an “ everything ” installation . The complete packages can occupy over 9Gb of disk space.

Page 34: Linux

Determine Installation Method

Appropriate method of installation based on environment (e.g., boot disk, CD-ROM , network ( HTTP,FTP,NFS,SMB).

You must boot Linux to install Linux , cannot be done from windows or other OS. However, some distributions have programs that begin the Linux install from other OS.

Page 35: Linux

Determine Installation Method

#1 most popular install method is CD When downloading , there are options to

create a Linux boot floppy from DOS. Some older BIOS versions don’t support

CDROM boot. DVD-ROMS are also an option(SuSE) Another options is a network installation

or hard disk partition installation.

Page 36: Linux

Determine Installation Method

Running Linux from a CD , without ever installing, is an option . see (www.slackware.com)

Downloading LinuxMethod of interaction installationo GUIo Texto Scripted

Page 37: Linux

Install Multimedia options

Install Multimedia options

VideoSoundCodecs

Page 38: Linux

Install Multimedia options When run in Text mode, Linux works with just

about any video card available. When run in graphics mode, you need to be

very careful what video card you are using to run Linux. Specifically you should check the compatibility of the XFree86 and X.org-X11 server with your video card. You can do this by going to these websites:

o wwww.xfree86.orgo www.x.org

Page 39: Linux

Sounds

About sound cards, Linux supports most sound cards. The standard Linux kernel includes two sets of sound drivers.

OSS ( Open Sound System)ALSA (Advanced Linux Sound System)

Page 40: Linux

Codecs

Codecs are computer programs that compress or decompress audio or video streams. You may have to download codecs from the internet to support certain audio or video types.

Page 41: Linux

Identify purpose of Linux machine

Based on predetermined customer requirements (e.g., appliance, desktop system , database , mail server, web server, etc.)

Determined what software and services should be installed (e.g., client applications for workstation, server services for desired task)

Page 42: Linux

Objective and Purpose

What will this machine be used for? In windows, this is usually pretty cut

and dry but not so in Linux. Any system can be a workstation or

server based on the installed applications.

Most all server applications are included in the standard Linux distribution.

Page 43: Linux

Objective and Purpose

Your requirements will determine what is installed and the hardware selected.

When we install Linux, you will see the variety of applications available and how can easily install all or selected applications &application pieces.

Page 44: Linux

Partition according to pre-installation plan using Fdisk

/ boot / usr / var / home Swap RAID/volume Hot-spare lvm

Page 45: Linux
Page 46: Linux

Partition according to pre-installation plan using Fdisk

Unlike windows were the entire OS is inside one partition (and usually just one directory, the Linux OS is , typically , more spread out.

In windows, a partition corresponds with a drive letter (such as C: or D:, etc)

Partitions are logical disks carved out from the physical disk.

Page 47: Linux

Partition according to pre-installation plan using Fdisk

Linux typically uses the PC partitioning system, made up of 3 partition types:

Primary PartitionExtended Partition - serves as a placeholder for a logical partition.Logical partition - resides in an extended partition

Page 48: Linux

Linux partition

To Linux, these partition types don’t mean a lot . Primary and extended partitions are numbered 1 – 4 (such as / dev /hda1) and logical partitions start at 5 and go up.

The master boot record (MBR) is where the partition table is stored.

Boot loaders ( which we will discuss later, are also stored in the MBR.

Page 49: Linux

Linux partition

The minimum partition necessary for Linux is the root, or /,partition.

The difference between the / (root) directory and the /root directory

Page 50: Linux

Linux partition

When installing Linux , you will be asked if you want to automatically partition your disk or manually partition the disk.

LVM – the Logical Volume Manager isn’t a program but design to allow flexibility of disk management .

Page 51: Linux

Linux partition

To understand LVM, you must understand the following:Physical Volume: a physical volume (PV) is another name for a regular physical disk partition that is used or will be used by LVM.Volume Group: any number of physical volumes (PV’s) on different disk drives can be lumped together into a volume group (VG).

Page 52: Linux

Linux partition Logical Volumes: Volume Groups must then

be subdivided into logical volumes. Each logical volume can be individually formatted as if it were a regular Linux partition. A logical volume is, therefore, like a virtual partition on your virtual disk drive.

The LVM is the disk management design that provides great flexibility of disk management.

Page 53: Linux

Linux “fdisk”

Linux has a tool called fdisk that can be used to partition your disk.

However, when installing in GUI mode, you wont be using this tool.

The Linux fdisk program is named after the DOS fdisk program but the Linux fdisk program has more functionality.

Page 54: Linux

“fdisk”

Commonly, certain directories are split into their own file systems. They are:/boot- /boot holds critical boot files and is typically 5-50MB in size./usr- /usr holds most Linux programs and is typically 500MB to 6GB in size./var- /var holds files that can are variable in size such as log files and mail queues. It is typically 100MB to 200Gb in size.

Page 55: Linux

“fdsik” /home - /home holds users home

directories but not the root user’s home directory./home is usually 200MB to 200GB in size.

Swap – the swap file system is not a mounted partition. Swap is used to help out the system when not enough RAM is available. The swap partition is usually 1.5 to 2 times the system’s RAM size.

Page 56: Linux

“fdsik” /usr/local – holds programs that are unique

to this system specially compiled programs. /usr/local is usually 100MB to 3GB in size. /opt – holds 3rd party programs and files

(usually commercial programs). It is about 100 MB to 3GB.

/tmp –hold temporary files and is usually 100MB to 200GB.

/mnt and /media –aren’t partitions but are used as mount points for removable media.

Page 57: Linux

RAID Volumes

RAID( Redundant Array of Inexpensive Disk)Is when the operating system or a hardware controller is creating multiple pieces of the same data for redundancy or for performance.There are different levels of RAID.RAID can be configured at installation time but is not for the new Linux user.

Page 58: Linux

Hot-spare- a hot-spare is a disk is used with RAID. It is configured such that if a disk is drive goes out, the data that was stored on that disk is copied onto the redundant disk (the hot-spare) and the hot-spare resumes the job of the disk that failed.

Page 59: Linux

Configure File System

When you create a partition, you format that partition and put a file system on it.The type of format is selected by the administrator you generally, have three choices in Linux:(ext2)(ext3)REISER

Page 60: Linux

Configure File System

Ext2 – the original Linux file system type, it works fine but if the computer is not properly shut down , it can take a long time to be checked when the computer reboots.

Page 61: Linux

Configure File System

Ext3 – ext3 solves this improper shutdown and checking problem because it provides journaling. Journaling is a feature that keeps a record of changes to a file system so that checking it is very fast after an improper shutdown.

Ext3 is the most popular type of Linux file system.

Page 62: Linux

Configure File System

REISER – a Linux file system type that provides journaling as popular as ext3.

NOTE:o that there are other types of file

system formats for Linux.o that the swap file system is not

mounted and is not one of these types of file systems.

Page 63: Linux

Configure a Boot loader A boot loader is what loads Linux into

memory when the system starts. If all you do is run a single copy of Linux on

a server, you will still use a boot loader but probably never have to configure one or even think about it.

However, if you run more than one copy of Linux or want to be able to choose which Linux kernel to run, or run different operating systems , besides Linux , you will need to configure a boot loader.

Page 64: Linux

Boot Loader

LILO – stands for Linux LoaderLILO and GRUB are the most common Linux boot loadersELILO – the EFI LILO boot loader, used to boot 64bit Linux machines.GRUB – stands for Grand Unified Boot Loader. GRUB was the first boot loader to boot above 1024 cylinder.

Page 65: Linux

Boot Loader

The biggest benefit to boot loaders is: Being able to run multiple operating

systems(example: Linux & windows or fedora Linux SuSE Linux)

Being able to run multiple kernels on the same machine.

Page 66: Linux
Page 67: Linux