SlideShare una empresa de Scribd logo
1 de 36
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente

Introduction to Linux OS
Introduction to Linux OSIntroduction to Linux OS
Introduction to Linux OS
Mohammed Safwat
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux os
joycoronado
 

La actualidad más candente (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
 

Similar a Linux introduction Class 02

Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
Dhaval Kaneria
 

Similar a 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
 

Más de Adrian Mikeliunas

Cyber Security At The Cinema
Cyber Security At The CinemaCyber Security At The Cinema
Cyber Security At The Cinema
Adrian Mikeliunas
 

Más 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
 

Último

%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Último (20)

%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 

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