SlideShare une entreprise Scribd logo
1  sur  36
Télécharger pour lire hors ligne
ACE Course CT01558
Linux Introduction
Linux Boot & Installation
 Booting Linux
 Distribution Selection
 Considerations on Installation
 Installation Options
 Basic administration
Linux#2 - Installation 2
Agenda
8/22/2013
Linux#2 - Installation 3
System Initialization
BIOS
Boot
loader
Kernel
& device
drivers
init services Login
8/22/2013
Running Linux System
Linux#2 - Installation 4
BIOS Initialization
 Power On Self Test recognizes hardware, CPU,
memory, bootable configuration from CMOS
 Bootable devices:
 CD ROM or Floppy
 Drive [IDE, SCSI, SATA, RAID, SSD, SD, microSD, …]
 Network
 USB devices
8/22/2013
Linux#2 - Installation 5
The Boot Loader
 Last step in BIOS
 Loads first partition of bootable device
 It can present a menu of OS choices
 Can also let you choose “Other OS”
 Linux boot loaders:
 LILO (Linux Loader) – older, static
 GRUB (GRand Unified Bootloader) dynamic
 Syslinux [for CDs and USBs]
8/22/2013
Linux#2 - Installation 6
Kernel Initialization
 Kernel loads based on parameters passed
 All logging goes to /var/log/dmesg
 Detects hardware
 Loads initrd (if necessary)
 Mounts root
 Loads /lib/x.x.x/modules
 Passes control to /sbin/init
8/22/2013
Linux#2 - Installation 7
init (Initialization)
 Init loads scripts from /etc/rc.d
 rc.sysinit is the master script at boot time
 Loads networking, drivers, encryption, and provides
[OK] or [FAIL] feedback
 Based on parameter or /etc/inittab default,
it will execute scripts in rc.x (x=runlevel)
 All boot scripts live in init.d,
can be configured via chkconfig
 Last script is rc.local
8/22/2013
Linux#2 - Installation 8
UNIX File System
tmp bin usr var etc dev
bin lib
/
local spool
Somewhere
for local
additions
Libraries,
some utilities
and config.
files
Spool files
for batch
utilities
Admin utilities
config. files
Special
device files
Somewhere
everyone
can use
Utilities
System
programs
The top-level “root” directoryPartial view
lib
System
libraries
8/22/2013
 Pre-compiled kernels
 The one downloaded in your distribution
 The one you receive with system updates
 Custom kernels
 The ones you BUILD:
 More security
 Better performance
 Hardware support or Virtualization
8/22/2013Linux#2 - Installation 9
Kernel Features
8/22/2013Linux#2 - Installation 10
Kernel Compiler Features
Linux#2 - Installation 11
Linux Distributions
Kernel
GNU
X
Other
Linux
Operating
System
Red
Hat
Mint
Ubuntu
Others
+
+
+
+
Installation tools,
configuration tools,
SUPPORT, etc.
8/22/2013
 Mobile Linux
http://en.wikipedia.org/wiki/Embedded_Linux
 Game console Linux http://openpandora.org
 Embedded Linux http://elinux.org
 Automobile consoles & Google TV
 Older hardware
 Printers & Network equipment
8/22/2013Linux#2 - Installation 12
Non Distribution Linux
Linux#2 - Installation 13
Linux Installation
 PRE
 Hardware Device Configuration
 Software Features
 Deployment Considerations
 Actual Installation
 POST
 Updating, security patches!
 Accounts, groups, services
 Maintenance
8/22/2013
Installing Linux: Hardware
Fedora 13 hardware requirements
8/22/2013Linux#2 - Installation 14
Sample pre-installation checklist
8/22/2013Linux#2 - Installation 15
 USB media
 DVD media
 FTP server
 HTTP Web server
 NFS server
 SMB server
 Packages on hard disk
16
Installing Linux: Installation Methods
8/22/2013Linux#2 - Installation
Linux#2 - Installation 17
Server Design Issues
 Example: Server requirements are very diverse
 Internet or intranet?
 Which services are required?
 Does it require user accounts?
 Heavy or light usage?
 No generic solution
 Each server needs to be carefully designed
8/22/2013
Linux#2 - Installation 18
H/W Compatibility & Resources
 Supports a wide variety of CPUs & Architectures
 Linux Hardware ‘How To’ at The Linux Documentation
Project: www.tldp.org
 Know your RAM & Disk requirements
 Server, Desktop, Custom
http://www.tldp.org/HOWTO/Hardware-HOWTO
8/22/2013
Linux#2 - Installation 19
Laptops
 Tricky installations
 Custom bus, Video and/or Sound chipsets
 Older laptops may be difficult to install
 Boot from CD, floppy or network
 URL: www.linux-laptop.net
8/22/2013
 USB
 http://www.pendrivelinux.com/
 Virtual Machines
 Virtual Box http://www.virtualbox.com
 Vmware Player http://www.vmware.com
 CLOUD
 Amazon Web Services, Azure, …
8/22/2013Linux#2 - Installation 20
USB & Virtual Installs
Linux#2 - Installation 21
Block Devices & Filesystem Schemes
 /dev
 Char & Block devices
 Partitions: /dev/hda1… /dev/sda1…
 Filesystem Hierarchy Standard (FHS)
www.pathname.com/fhs
 / /etc /dev /lib/ /bin /boot /sbin
 /usr /home /tmp /var /mnt /proc
8/22/2013
Linux#2 - Installation 22
Removable Media
 Mounting means making a foreign filesystem look like
part of the main tree.
 Before accessing, media must be mounted
 Before removing, media must be unmounted
 By default, non-root users may only mount certain
devices (cd, dvd, floppy, usb, etc)
 Mountpoints are usually under /media
can also be defined in /etc/fstab
8/22/2013
Linux#2 - Installation 23
Mounting CDs / DVDs
 Automatically mounted in Gnome/KDE
 Otherwise, must be manually mounted
 CD/DVD Reader
 mount /media/cdrom
 CD/DVD Writer
 mount /media/cdrecorder
 eject command unmounts & ejects the disk
8/22/2013
Linux#2 - Installation 24
Mounting USB Media
 Detected by the kernel as SCSI devices: /dev/sdaX or
/dev/sdbX or similar
 Type: tail /var/log/messages to find out
 Automatically mounted in Gnome/KDE
 Icon created in Computer window
 Mounted under /media/Device ID
8/22/2013
Linux#2 - Installation 25
GUI User Mount Tool
 Run from “Applications”, “System
Tools”, “Disk Management.”
 Allows you to mount or dismount
drives or partitions.
8/22/2013
Linux#2 - Installation 26
Disk Partition Layout
M
B
R
Primary Extended Logical
8/22/2013
Linux#2 - Installation 27
Partitioning Hard Drives
 GUI or text tools available during install
 Auto or Manual modes
 /boot partition
 Dual boot systems
 Swap partition (2x RAM)
 Create LVM or RAIDs
8/22/2013
Linux#2 - Installation 28
Virtual Consoles
 Linux starts with 6 default virtual consoles
 Alt-F1 to Alt-F6 (or CTRL <- ->)
 Can have up to 63 consoles
 Controlled from /etc/inittab
1:2345:respawn:/sbin/mingetty tty1
…
6:2345:respawn:/sbin/mingetty tty6
8/22/2013
Linux#2 - Installation 29
System Shutdown and Reboot
 To reboot:
 shutdown –r
 reboot
 init 6
 To halt:
 shutdown –s
 halt
 init 0
 You must be administrator!
8/22/2013
Linux#2 - Installation 30
Controlling Services
 service ‘servicename’ function
 Function: start / stop / restart / status
 kill PID
 nice level process
 GUI: “System Tools”,
“System Monitor”
8/22/2013
Linux#2 - Installation 31
Monitoring & Process Control
 top – displays top processes
 uptime + ps = w
 ps ax – list of all running processes
 nice PID priority – changes priority level
 Default priority is 10, it can be changed
 from -20 (highest priority) to 19 (lowest)
 kill –signal PID
 killall process
8/22/2013
Linux#2 - Installation 32
Hands-on Lab-1
Exploring Linux Services
 From command line type:
 top (press h, q after reading screens)
 w [integrated who / uptime]
 whoami
 ps ax [list all active processes]
 pstree
8/22/2013
Linux#2 - Installation 33
Hands-on Lab-2
 From command line type:
 su -
 service http start
 service http status
 Or “ps ax | grep httpd”
 killall httpd
8/22/2013
Linux#2 - Installation 34
Hands-on Lab-3
 From command line type:
 mount
 To view default mounts: ‘more /etc/fstab’
 df –h
 du –sh /var
8/22/2013
Questions???
 Booting Linux
 Distribution Selection
 Considerations on Installation
 Installation Options
 Basic administration
Linux#2 - Installation 36
Summary
8/22/2013

Contenu connexe

Tendances

Introduction to Linux OS
Introduction to Linux OSIntroduction to Linux OS
Introduction to Linux OSMohammed Safwat
 
Introduction to Linux basic
Introduction to Linux basicIntroduction to Linux basic
Introduction to Linux basicf114n
 
Linux operating system ppt
Linux operating system pptLinux operating system ppt
Linux operating system pptAchyut Sinha
 
what is LINUX ? presentation.
what is LINUX ? presentation.what is LINUX ? presentation.
what is LINUX ? presentation.saad_khan1122
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux osjoycoronado
 
Linux Seminar for Beginners
Linux Seminar for BeginnersLinux Seminar for Beginners
Linux Seminar for BeginnersNAILBITER
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linuxLuis Terron
 
BITS: Introduction to linux, distributions and installation
BITS: Introduction to linux, distributions and installationBITS: Introduction to linux, distributions and installation
BITS: Introduction to linux, distributions and installationBITS
 
IamLUG -- Lotus On Linux Report
IamLUG -- Lotus On Linux ReportIamLUG -- Lotus On Linux Report
IamLUG -- Lotus On Linux ReportBill Malchisky Jr.
 
Linux command ppt
Linux command pptLinux command ppt
Linux command pptkalyanineve
 
A general Overview of linux !!
A general Overview of linux !!A general Overview of linux !!
A general Overview of linux !!jainema23
 
Linux ppt
Linux pptLinux ppt
Linux pptlincy21
 

Tendances (19)

Presentation on linux
Presentation on linuxPresentation on linux
Presentation on linux
 
Introduction to Linux OS
Introduction to Linux OSIntroduction to Linux OS
Introduction to Linux OS
 
Introduction to Linux basic
Introduction to Linux basicIntroduction to Linux basic
Introduction to Linux basic
 
Linux operating system ppt
Linux operating system pptLinux operating system ppt
Linux operating system ppt
 
comparing windows and linux ppt
comparing windows and linux pptcomparing windows and linux ppt
comparing windows and linux ppt
 
what is LINUX ? presentation.
what is LINUX ? presentation.what is LINUX ? presentation.
what is LINUX ? presentation.
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux os
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 
Linux Seminar for Beginners
Linux Seminar for BeginnersLinux Seminar for Beginners
Linux Seminar for Beginners
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 
Ppt af linux
Ppt af linuxPpt af linux
Ppt af linux
 
Linux vs windows
Linux vs windowsLinux vs windows
Linux vs windows
 
BITS: Introduction to linux, distributions and installation
BITS: Introduction to linux, distributions and installationBITS: Introduction to linux, distributions and installation
BITS: Introduction to linux, distributions and installation
 
Linux basics
Linux basicsLinux basics
Linux basics
 
IamLUG -- Lotus On Linux Report
IamLUG -- Lotus On Linux ReportIamLUG -- Lotus On Linux Report
IamLUG -- Lotus On Linux Report
 
Linux
Linux Linux
Linux
 
Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
 
A general Overview of linux !!
A general Overview of linux !!A general Overview of linux !!
A general Overview of linux !!
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 

Similaire à Linux introduction Class 02

Grub and dracut ii
Grub and dracut iiGrub and dracut ii
Grub and dracut iiplarsen67
 
Basis Linux (aan de hand van LPIC-1)
Basis Linux (aan de hand van LPIC-1)Basis Linux (aan de hand van LPIC-1)
Basis Linux (aan de hand van LPIC-1)Peter Martin
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linuxVicent Selfa
 
101 1.1 hardware settings v2
101 1.1 hardware settings v2101 1.1 hardware settings v2
101 1.1 hardware settings v2Acácio Oliveira
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedureDhaval Kaneria
 
Let Me Pick Your Brain - Remote Forensics in Hardened Environments
Let Me Pick Your Brain - Remote Forensics in Hardened EnvironmentsLet Me Pick Your Brain - Remote Forensics in Hardened Environments
Let Me Pick Your Brain - Remote Forensics in Hardened EnvironmentsNicolas Collery
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedureDhaval Kaneria
 
CEHv10 M0 Introduction.pptx
CEHv10 M0 Introduction.pptxCEHv10 M0 Introduction.pptx
CEHv10 M0 Introduction.pptxYasserOuda2
 
Linux booting process - Linux System Administration
Linux booting process - Linux System AdministrationLinux booting process - Linux System Administration
Linux booting process - Linux System AdministrationSreenatha Reddy K R
 
Android for Embedded Linux Developers
Android for Embedded Linux DevelopersAndroid for Embedded Linux Developers
Android for Embedded Linux DevelopersOpersys inc.
 
Android crash debugging
Android crash debuggingAndroid crash debugging
Android crash debuggingAshish Agrawal
 

Similaire à Linux introduction Class 02 (20)

Notes for LX0-101 Linux
Notes for LX0-101 Linux Notes for LX0-101 Linux
Notes for LX0-101 Linux
 
Linux Booting Process
Linux Booting ProcessLinux Booting Process
Linux Booting Process
 
Grub and dracut ii
Grub and dracut iiGrub and dracut ii
Grub and dracut ii
 
Linux admin course
Linux admin courseLinux admin course
Linux admin course
 
Basis Linux (aan de hand van LPIC-1)
Basis Linux (aan de hand van LPIC-1)Basis Linux (aan de hand van LPIC-1)
Basis Linux (aan de hand van LPIC-1)
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 
Changes
ChangesChanges
Changes
 
101 1.1 hardware settings v2
101 1.1 hardware settings v2101 1.1 hardware settings v2
101 1.1 hardware settings v2
 
Understanding The Boot Process
Understanding The Boot ProcessUnderstanding The Boot Process
Understanding The Boot Process
 
1.1 hardware settings v2
1.1 hardware settings v21.1 hardware settings v2
1.1 hardware settings v2
 
Ch04 system administration
Ch04 system administration Ch04 system administration
Ch04 system administration
 
Ch04
Ch04Ch04
Ch04
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
 
Let Me Pick Your Brain - Remote Forensics in Hardened Environments
Let Me Pick Your Brain - Remote Forensics in Hardened EnvironmentsLet Me Pick Your Brain - Remote Forensics in Hardened Environments
Let Me Pick Your Brain - Remote Forensics in Hardened Environments
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
 
Ch08
Ch08Ch08
Ch08
 
CEHv10 M0 Introduction.pptx
CEHv10 M0 Introduction.pptxCEHv10 M0 Introduction.pptx
CEHv10 M0 Introduction.pptx
 
Linux booting process - Linux System Administration
Linux booting process - Linux System AdministrationLinux booting process - Linux System Administration
Linux booting process - Linux System Administration
 
Android for Embedded Linux Developers
Android for Embedded Linux DevelopersAndroid for Embedded Linux Developers
Android for Embedded Linux Developers
 
Android crash debugging
Android crash debuggingAndroid crash debugging
Android crash debugging
 

Plus de Adrian Mikeliunas

Office Hour Week 14 Adrian.pptx
Office Hour Week 14 Adrian.pptxOffice Hour Week 14 Adrian.pptx
Office Hour Week 14 Adrian.pptxAdrian Mikeliunas
 
CISSP introduction 2016 Udemy Course
CISSP introduction 2016 Udemy CourseCISSP introduction 2016 Udemy Course
CISSP introduction 2016 Udemy CourseAdrian Mikeliunas
 
Introduction to WordPress Class 6
Introduction to WordPress Class 6Introduction to WordPress Class 6
Introduction to WordPress Class 6Adrian Mikeliunas
 
Introduction to WordPress Class 5
Introduction to WordPress Class 5Introduction to WordPress Class 5
Introduction to WordPress Class 5Adrian Mikeliunas
 
Introduction to WordPress Class 4
Introduction to WordPress Class 4Introduction to WordPress Class 4
Introduction to WordPress Class 4Adrian Mikeliunas
 
Introduction to WordPress Class 3
Introduction to WordPress Class 3Introduction to WordPress Class 3
Introduction to WordPress Class 3Adrian Mikeliunas
 
Introduction to WordPress Class 2
Introduction to WordPress Class 2Introduction to WordPress Class 2
Introduction to WordPress Class 2Adrian Mikeliunas
 
Genymotion Android fast development
Genymotion Android fast development Genymotion Android fast development
Genymotion Android fast development Adrian Mikeliunas
 
Cómo usar la tecnología para generar más Seguridad y desarrollo local
Cómo usar la tecnología para generar más Seguridad y desarrollo localCómo usar la tecnología para generar más Seguridad y desarrollo local
Cómo usar la tecnología para generar más Seguridad y desarrollo localAdrian Mikeliunas
 
Introduction to WordPress Class 1
Introduction to WordPress Class 1Introduction to WordPress Class 1
Introduction to WordPress Class 1Adrian Mikeliunas
 
Ii 1500-publishing your android application
Ii 1500-publishing your android applicationIi 1500-publishing your android application
Ii 1500-publishing your android applicationAdrian Mikeliunas
 
Ii 1300-java essentials for android
Ii 1300-java essentials for androidIi 1300-java essentials for android
Ii 1300-java essentials for androidAdrian Mikeliunas
 
Ii 1100-android development for fun and profit
Ii 1100-android development for fun and profitIi 1100-android development for fun and profit
Ii 1100-android development for fun and profitAdrian Mikeliunas
 
Cyber Security At The Cinema
Cyber Security At The CinemaCyber Security At The Cinema
Cyber Security At The CinemaAdrian Mikeliunas
 

Plus de Adrian Mikeliunas (17)

Office Hour Week 14 Adrian.pptx
Office Hour Week 14 Adrian.pptxOffice Hour Week 14 Adrian.pptx
Office Hour Week 14 Adrian.pptx
 
WordPress Security 2018
WordPress Security 2018WordPress Security 2018
WordPress Security 2018
 
CISSP introduction 2016 Udemy Course
CISSP introduction 2016 Udemy CourseCISSP introduction 2016 Udemy Course
CISSP introduction 2016 Udemy Course
 
Introduction to WordPress Class 6
Introduction to WordPress Class 6Introduction to WordPress Class 6
Introduction to WordPress Class 6
 
Introduction to WordPress Class 5
Introduction to WordPress Class 5Introduction to WordPress Class 5
Introduction to WordPress Class 5
 
Introduction to WordPress Class 4
Introduction to WordPress Class 4Introduction to WordPress Class 4
Introduction to WordPress Class 4
 
Introduction to WordPress Class 3
Introduction to WordPress Class 3Introduction to WordPress Class 3
Introduction to WordPress Class 3
 
Introduction to WordPress Class 2
Introduction to WordPress Class 2Introduction to WordPress Class 2
Introduction to WordPress Class 2
 
Genymotion Android fast development
Genymotion Android fast development Genymotion Android fast development
Genymotion Android fast development
 
Cómo usar la tecnología para generar más Seguridad y desarrollo local
Cómo usar la tecnología para generar más Seguridad y desarrollo localCómo usar la tecnología para generar más Seguridad y desarrollo local
Cómo usar la tecnología para generar más Seguridad y desarrollo local
 
Linux introduction Class 03
Linux introduction Class 03Linux introduction Class 03
Linux introduction Class 03
 
Introduction to WordPress Class 1
Introduction to WordPress Class 1Introduction to WordPress Class 1
Introduction to WordPress Class 1
 
Task deck
Task deckTask deck
Task deck
 
Ii 1500-publishing your android application
Ii 1500-publishing your android applicationIi 1500-publishing your android application
Ii 1500-publishing your android application
 
Ii 1300-java essentials for android
Ii 1300-java essentials for androidIi 1300-java essentials for android
Ii 1300-java essentials for android
 
Ii 1100-android development for fun and profit
Ii 1100-android development for fun and profitIi 1100-android development for fun and profit
Ii 1100-android development for fun and profit
 
Cyber Security At The Cinema
Cyber Security At The CinemaCyber Security At The Cinema
Cyber Security At The Cinema
 

Dernier

Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 

Dernier (20)

Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 

Linux introduction Class 02

  • 1. ACE Course CT01558 Linux Introduction Linux Boot & Installation
  • 2.  Booting Linux  Distribution Selection  Considerations on Installation  Installation Options  Basic administration Linux#2 - Installation 2 Agenda 8/22/2013
  • 3. Linux#2 - Installation 3 System Initialization BIOS Boot loader Kernel & device drivers init services Login 8/22/2013 Running Linux System
  • 4. Linux#2 - Installation 4 BIOS Initialization  Power On Self Test recognizes hardware, CPU, memory, bootable configuration from CMOS  Bootable devices:  CD ROM or Floppy  Drive [IDE, SCSI, SATA, RAID, SSD, SD, microSD, …]  Network  USB devices 8/22/2013
  • 5. Linux#2 - Installation 5 The Boot Loader  Last step in BIOS  Loads first partition of bootable device  It can present a menu of OS choices  Can also let you choose “Other OS”  Linux boot loaders:  LILO (Linux Loader) – older, static  GRUB (GRand Unified Bootloader) dynamic  Syslinux [for CDs and USBs] 8/22/2013
  • 6. Linux#2 - Installation 6 Kernel Initialization  Kernel loads based on parameters passed  All logging goes to /var/log/dmesg  Detects hardware  Loads initrd (if necessary)  Mounts root  Loads /lib/x.x.x/modules  Passes control to /sbin/init 8/22/2013
  • 7. Linux#2 - Installation 7 init (Initialization)  Init loads scripts from /etc/rc.d  rc.sysinit is the master script at boot time  Loads networking, drivers, encryption, and provides [OK] or [FAIL] feedback  Based on parameter or /etc/inittab default, it will execute scripts in rc.x (x=runlevel)  All boot scripts live in init.d, can be configured via chkconfig  Last script is rc.local 8/22/2013
  • 8. Linux#2 - Installation 8 UNIX File System tmp bin usr var etc dev bin lib / local spool Somewhere for local additions Libraries, some utilities and config. files Spool files for batch utilities Admin utilities config. files Special device files Somewhere everyone can use Utilities System programs The top-level “root” directoryPartial view lib System libraries 8/22/2013
  • 9.  Pre-compiled kernels  The one downloaded in your distribution  The one you receive with system updates  Custom kernels  The ones you BUILD:  More security  Better performance  Hardware support or Virtualization 8/22/2013Linux#2 - Installation 9 Kernel Features
  • 10. 8/22/2013Linux#2 - Installation 10 Kernel Compiler Features
  • 11. Linux#2 - Installation 11 Linux Distributions Kernel GNU X Other Linux Operating System Red Hat Mint Ubuntu Others + + + + Installation tools, configuration tools, SUPPORT, etc. 8/22/2013
  • 12.  Mobile Linux http://en.wikipedia.org/wiki/Embedded_Linux  Game console Linux http://openpandora.org  Embedded Linux http://elinux.org  Automobile consoles & Google TV  Older hardware  Printers & Network equipment 8/22/2013Linux#2 - Installation 12 Non Distribution Linux
  • 13. Linux#2 - Installation 13 Linux Installation  PRE  Hardware Device Configuration  Software Features  Deployment Considerations  Actual Installation  POST  Updating, security patches!  Accounts, groups, services  Maintenance 8/22/2013
  • 14. Installing Linux: Hardware Fedora 13 hardware requirements 8/22/2013Linux#2 - Installation 14
  • 16.  USB media  DVD media  FTP server  HTTP Web server  NFS server  SMB server  Packages on hard disk 16 Installing Linux: Installation Methods 8/22/2013Linux#2 - Installation
  • 17. Linux#2 - Installation 17 Server Design Issues  Example: Server requirements are very diverse  Internet or intranet?  Which services are required?  Does it require user accounts?  Heavy or light usage?  No generic solution  Each server needs to be carefully designed 8/22/2013
  • 18. Linux#2 - Installation 18 H/W Compatibility & Resources  Supports a wide variety of CPUs & Architectures  Linux Hardware ‘How To’ at The Linux Documentation Project: www.tldp.org  Know your RAM & Disk requirements  Server, Desktop, Custom http://www.tldp.org/HOWTO/Hardware-HOWTO 8/22/2013
  • 19. Linux#2 - Installation 19 Laptops  Tricky installations  Custom bus, Video and/or Sound chipsets  Older laptops may be difficult to install  Boot from CD, floppy or network  URL: www.linux-laptop.net 8/22/2013
  • 20.  USB  http://www.pendrivelinux.com/  Virtual Machines  Virtual Box http://www.virtualbox.com  Vmware Player http://www.vmware.com  CLOUD  Amazon Web Services, Azure, … 8/22/2013Linux#2 - Installation 20 USB & Virtual Installs
  • 21. Linux#2 - Installation 21 Block Devices & Filesystem Schemes  /dev  Char & Block devices  Partitions: /dev/hda1… /dev/sda1…  Filesystem Hierarchy Standard (FHS) www.pathname.com/fhs  / /etc /dev /lib/ /bin /boot /sbin  /usr /home /tmp /var /mnt /proc 8/22/2013
  • 22. Linux#2 - Installation 22 Removable Media  Mounting means making a foreign filesystem look like part of the main tree.  Before accessing, media must be mounted  Before removing, media must be unmounted  By default, non-root users may only mount certain devices (cd, dvd, floppy, usb, etc)  Mountpoints are usually under /media can also be defined in /etc/fstab 8/22/2013
  • 23. Linux#2 - Installation 23 Mounting CDs / DVDs  Automatically mounted in Gnome/KDE  Otherwise, must be manually mounted  CD/DVD Reader  mount /media/cdrom  CD/DVD Writer  mount /media/cdrecorder  eject command unmounts & ejects the disk 8/22/2013
  • 24. Linux#2 - Installation 24 Mounting USB Media  Detected by the kernel as SCSI devices: /dev/sdaX or /dev/sdbX or similar  Type: tail /var/log/messages to find out  Automatically mounted in Gnome/KDE  Icon created in Computer window  Mounted under /media/Device ID 8/22/2013
  • 25. Linux#2 - Installation 25 GUI User Mount Tool  Run from “Applications”, “System Tools”, “Disk Management.”  Allows you to mount or dismount drives or partitions. 8/22/2013
  • 26. Linux#2 - Installation 26 Disk Partition Layout M B R Primary Extended Logical 8/22/2013
  • 27. Linux#2 - Installation 27 Partitioning Hard Drives  GUI or text tools available during install  Auto or Manual modes  /boot partition  Dual boot systems  Swap partition (2x RAM)  Create LVM or RAIDs 8/22/2013
  • 28. Linux#2 - Installation 28 Virtual Consoles  Linux starts with 6 default virtual consoles  Alt-F1 to Alt-F6 (or CTRL <- ->)  Can have up to 63 consoles  Controlled from /etc/inittab 1:2345:respawn:/sbin/mingetty tty1 … 6:2345:respawn:/sbin/mingetty tty6 8/22/2013
  • 29. Linux#2 - Installation 29 System Shutdown and Reboot  To reboot:  shutdown –r  reboot  init 6  To halt:  shutdown –s  halt  init 0  You must be administrator! 8/22/2013
  • 30. Linux#2 - Installation 30 Controlling Services  service ‘servicename’ function  Function: start / stop / restart / status  kill PID  nice level process  GUI: “System Tools”, “System Monitor” 8/22/2013
  • 31. Linux#2 - Installation 31 Monitoring & Process Control  top – displays top processes  uptime + ps = w  ps ax – list of all running processes  nice PID priority – changes priority level  Default priority is 10, it can be changed  from -20 (highest priority) to 19 (lowest)  kill –signal PID  killall process 8/22/2013
  • 32. Linux#2 - Installation 32 Hands-on Lab-1 Exploring Linux Services  From command line type:  top (press h, q after reading screens)  w [integrated who / uptime]  whoami  ps ax [list all active processes]  pstree 8/22/2013
  • 33. Linux#2 - Installation 33 Hands-on Lab-2  From command line type:  su -  service http start  service http status  Or “ps ax | grep httpd”  killall httpd 8/22/2013
  • 34. Linux#2 - Installation 34 Hands-on Lab-3  From command line type:  mount  To view default mounts: ‘more /etc/fstab’  df –h  du –sh /var 8/22/2013
  • 36.  Booting Linux  Distribution Selection  Considerations on Installation  Installation Options  Basic administration Linux#2 - Installation 36 Summary 8/22/2013