Escolar Documentos
Profissional Documentos
Cultura Documentos
Division : GIS
Team : Motorola
Prepared by :
Date :
Page Number : 1
Training Agenda
Start times
DAY 1
Introduction to Linux
(Expectations, Pre-Quiz)
10:00-10:30
Day 2
Recap of Day 1,
Package Management
10:30-11:30
11:30-11:45
Tea Break
Tea Break
11:45-12:30
Filesystem Management
12:30-13:00
Network Configuration
13:00-14:00
Lunch Break
14:00-15:45
Basic System
Configuration Tools
15:45-17:30
System Initialization
and shutdown process
17:30-18:00
Date :
Page Number : 2
Lunch Break
Installation
Purpose
Date :
Page Number : 3
Program Objectives
At the end of this course, you will be able to:
Date :
Page Number : 4
Ground Rules
In order to ensure the productivity of our training, we will
need to be.
- Punctual..
- Put mobile on vibration and do not receive calls within the
training room..
- Not dropout from the training without
permission..
- Be more interactive.
Date :
Page Number : 5
CONTENTS
LESSON 1
LESSON 2
LESSON 3
LESSON 4
LESSON 5
LESSON 6
LESSON 7
LESSON 8
LESSON 9
LESSON 10
Linux Basics
File system Basics
Users & Groups
Bash Shell
Text Processing and Vi
Basic System Configuration Tools
System Initialization and shutdown process
System Services and kernel modules
Package Management
File system Management
Date :
Page Number : 6
Contents
LESSON 11
LESSON 12
LESSON 13
LESSON 14
Date :
Network Configuration
Installation
NFS & FTP
Troubleshooting
Page Number : 7
Lesson 1
Linux Basics
Date :
Page Number : 8
Linux Basics
Lesson Objectives
At the end of this lesson, you will be able to
Understand Linux Basics
Date :
Page Number : 9
Linux Origins
1984: The GNU Project and the Free Software Foundation
Creates open source version of UNIX utilities
Creates the General Public License (GPL)
1991: Linus Torvalds creates open source, UNIX-like kernel,
released under the GPL
Date :
Page Number : 10
Different Distributions
Date :
Page Number : 11
Linux principles
Date :
Page Number : 12
Date :
Page Number : 13
Date :
Page Number : 14
Date :
Page Number : 15
Running Commands
Commands have the following syntax:
command options arguments
Each item is separated by a space
Options modify a command's behavior
Single-letter options usually preceded by
Date :
Page Number : 16
Date :
Page Number : 17
Date :
Page Number : 18
Lesson 2
File system Basics
Date :
Page Number : 19
Date :
Page Number : 20
Date :
Page Number : 21
Date :
Page Number : 22
Some Commands
cd changes directories
cd /home/
To a directory one level up
cd ..
To your home directory
Cd
ls can be used to list the directory contents.
-l, -ld, -a
cp copy files and directories
cp file1 file2 destination
-r, -f, -v
mv moves files and directories from one location to other
mv file destination
Date :
Page Number : 23
Date :
Page Number : 24
Hard Links
Syntax:
ln filename [linkname]
Date :
Page Number : 25
Syntax:
ln -s filename linkname
Date :
Page Number : 26
Date :
Page Number : 27
Lesson 3
Date :
Page Number : 28
Date :
Page Number : 29
All users in a group can share files that belong to the group
User names are case sensitive
To add a new user
useradd options <username>
Options are
-d home_dir
-c comment
-g initial_group
-G Secondry Group
-m user's home directory will be created if it does not exist.
-s shell
Date :
Page Number : 30
Date :
Page Number : 31
File Security
Date :
Page Number : 32
Date :
Page Number : 33
Date :
Page Number : 34
Date :
Page Number : 35
Lesson 4
Bash Shell
Date :
Page Number : 36
What is a shell
Date :
Page Number : 37
Bash Shell
Date :
Page Number : 38
Date :
Page Number : 39
Date :
Page Number : 40
Date :
Page Number : 41
Lesson 5
Date :
Page Number : 42
Text processing
Date :
Page Number : 43
Date :
Page Number : 44
Vi Editor
Date :
Page Number : 45
To start Vi execute..
vi <filename>
If the file exists, the file is opened and the contents are
displayed
If the file does not exist, vi will create it when the edits are
saved for the first time
i begins insert mode at the current cursor position
a begins in append mode
A append to end of line
I insert at beginning of line
o insert a new line below
O insert a new line above
Date :
Page Number : 46
Date :
Page Number : 47
Lesson 6
Date :
Page Number : 48
Date :
Page Number : 49
Date :
Page Number : 50
Date :
Page Number : 51
Date :
Page Number : 52
Lesson 7
Date :
Page Number : 53
BIOS Initialization
Boot Loader
Kernel initialization
init starts and enters desired run level by executing:
/etc/rc.d/rc.sysinit
/etc/rc.d/rc and /etc/rc.d/rc?.d/
/etc/rc.d/rc.local
X Display Manager if appropriate
Date :
Page Number : 54
Boot Loader
1st Stage - small, resides in MBR or boot sector
2nd Stage - loaded from boot partition
Minimum specifications for Linux:
Label, kernel location, OS root filesystem and location of the initial
ramdisk (initrd)
GRUB the GRand Unified Bootloader
Command-line interface available at boot prompt
Boot from ext2/ext3, ReiserFS, JFS, FAT, minix, or FFS file
systems
Configurtion file is /boot/grub/grub.conf
Changes to grub.conf take effect immediately
If MBR on /dev/hda is corrupted, reinstall the first stage bootloader
with:
/sbin/grub-install </dev/hda>
Date :
Page Number : 55
Boot Process
Date :
Page Number : 56
Run Levels
/etc/rc.d/rcX.d
/etc/rc.d/init.d
Date :
Page Number : 57
Date :
Page Number : 58
Lesson 8
Date :
Page Number : 59
What is a Process
Date :
Page Number : 60
Date :
Page Number : 61
Cron
Date :
Page Number : 62
Managing Services
Date :
Page Number : 63
Date :
Page Number : 64
Linux Kernel
The kernel constitutes the core part of the Linux operating system. It
interacts with hardware and provide resources to application.
Some features are
System initialization: detects hardware resources and boots up the
system.
Process scheduling: determines when processes should run and for how
long.
Memory Management: allocates memory on behalf of running processes.
Security: Constantly verifies filesystem permissions and firewall rules.
Implements standard network protocols and filesystem formats.
Architectures supported are x86, x86_64, IA64/Itanium etc.
Kernels are installed under /boot/vmlinuz-*
Date :
Page Number : 65
Kernel Modules
Date :
Page Number : 66
Date :
Page Number : 67
Hardware Devices
Character Devices
Date :
Page Number : 68
Date :
Page Number : 69
Lesson 9
Package Management
Date :
Page Number : 70
Date :
Page Number : 71
Date :
Page Number : 72
Date :
Page Number : 73
Lesson 10
Date :
Page Number : 74
Date :
Page Number : 75
Identify Device
Partition Device
Make File system
Label File system
Create entry in /etc/fstab
Mount New Filesystem
Date :
Page Number : 76
Disk Partitioning
Date :
Page Number : 77
Date :
Page Number : 78
Date :
Page Number : 79
Lesson 11
Network Configuration
Date :
Page Number : 80
Date :
Page Number : 81
Date :
Page Number : 82
Device Aliases
Date :
Page Number : 83
Lesson 12
Installation
Date :
Page Number : 84
Date :
Page Number : 85
Date :
Page Number : 86
Date :
Page Number : 87
Lesson 13
Date :
Page Number : 88
Date :
Page Number : 89
Date :
Page Number : 90
NFS
Date :
Page Number : 91
Date :
Page Number : 92
/etc/exports syntax is
/some/directory
Host(options)
When specifying hostnames, use the following methods
single host Where one particular host is specified with a
fully qualified domain name, hostname, or IP address
wildcards Where a * or ? character is used to take into
account a grouping of fully qualified domain names that match
a particular string of letters.
*.csc.com
IP networks Allows the matching of hosts based on their IP
addresses within a larger network. For example,
192.168.1.0/24
Default options are ro, sync, root_squash
Date :
Page Number : 93
Lesson 14
Troubleshooting
Date :
Page Number : 94
Filesystem Recovery
Date :
Page Number : 95
Rescue Environment
Date :
Page Number : 96
END
Any Questions?
Date :
Page Number : 97
Trainer Contacts
Seat No: SA 77
Ext. no. 709363
Mobile no. 9310470605
Training material will be uploaded on TPD
(Training Process Database IN-NDA02)
Date :
Page Number : 98