Linux Lecture1
Linux Lecture1
ADMINISTRATION
Course Content
Course Content
Lecture/Lab 1
– Introduction to UNIX
- UNIX Operating System Architecture
– Linux Operating System
– Users, Groups and Permissions
- Examining Permissions
Lecture/Lab 2
– Linux Installation
– Hard Disk Partition Details
– Linux File System
- ext2 / ext3
– Dual Boot Installation
Lecture/Lab 3
– Desktop Familiarization
- Text and GUI Mode
- Virtual Terminals
- GNOME and KDE Desktop
Course Content
Lecture/Lab 4 & 5
– UNIX Shell
– UNIX Commands
– Shell Commands
- File System Management
- File Management and Viewing
- Help, Job and Process Management
- Network Management
- System Management
- User Management
- Printing and Programming
- Document Preparation
- Miscellaneous
Lecture/Lab 6
– System Initialization and Services
- Boot Sequence, Runlevels & Daemon Processes
– User Administration
- User Creation/ Suspension & Deletion
- Group Administration
Course Content
Lecture/Lab 7
– Network Configuration
- Configuration Utilities
- Multiple NICs
– Task Schedulers
- cron daemons
– Disk quota management
– Backup and Restore
Lecture/Lab 8
– Adding and Removing Software Packages
• RPM Package Management
– Setting Printer
– System Monitoring
- File System Analysis
- System Log Files & Analysis
– System Troubleshooting
- Filesystem Corruption and Recovery
- Things to check: The X Window System
- Service, Networking & Booting
- The Rescue Environment
- Recovery Runlevels, Boot Floppies
Course Content
Lecture/Lab 9
– DHCP
- Server setup
- Client setup
– NIS
- NIS Server setup
- NIS Clinet setup
Lecture/Lab 10
– NFS
- NFS Serever & Client configuration
- autofs implementation
– Samba Server
- File & Print Service
Lecture/Lab 11
– Basic Concept of DNS
- Implementation of BIND
- forward & reverse lookup
- DNS Directives
Course Content
• Lecture/Lab 12
– Apache Web Server
- Basic Configuration
- Name based Virtual Hosting
- Restriction through htaccess
• Lecture/Lab 13
– Sendmail - Mail Server
- Configuring mail service
- SMTP Server
• POP3 / IMAP Server
• Lecture/Lab 14
– Proxy Server - Squid
- ACL for restricting access
• Lecture/Lab 15
– Linux System as a Router
- Setup and configuration
- Static Routing
– SELinux Configuration
– Firewall Using IPTables
- Filter and NAT rules
Introduction to Linux
UNIX
History of UNIX
History of UNIX
1973 Unix is re-written mostly in C, a new language
developed by Dennis Ritchie.
Being written in this high-level language greatly
decreased the effort needed to port it to new
machines.
Introduction to Linux
History of UNIX
What is LINUX
LINUX Distributions
Mandrake: http://www.mandrakesoft.com/
RedHat: http://www.redhat.com/
Fedora: http://fedora.redhat.com/
SuSE/Novell: http://www.suse.com/
Debian: http://www.debian.org/
Ubuntu: http://www.ubuntu.com/
Ubuntu, a popular desktop and server distribution
derived from Debian, maintained by Canonical Ltd..
Introduction to Linux
UNIX Structure
Introduction to Linux
File System
File System
Each node is either a file or a directory of files,
where the latter can contain other files and
directories.
You specify a file or directory by its path name,
either the full, or absolute, path name or the one
relative to a location.
The full path name starts with the root, /, and
follows the branches of the file system, each
separated by /, until you reach the desired file,
e.g.:
/home/condron/source/xntp
Introduction to Linux
File System
A relative path name specifies the path relative to
another, usually the current working directory that
you are at. Two special directories :
. the current directory
.. the parent of the current directory
So if I'm at /home/frank and wish to specify the path
above in a relative fashion I could use:
../condron/source/xntp
This indicates that I should first go up one directory
level, then come down through the condron directory,
followed by the source directory and then to xntp.
Introduction to Linux
Access Permissions
There are three permissions for any file, directory
or application program.
Access Permissions
Each of the three permissions are assigned to
three defined categories of users.
The categories are:
Access Permissions
One can easily view the permissions for a file by
invoking a long format listing using the command
ls -l.
Access Permissions
The permissions for this file are listed are listed at
the start of the line, starting with rwx.
Access Permissions
This listing indicates that the file is readable,
writable, and executable by the user who owns the
file (user juan) as well as the group owning the file
(which is a group named student).
$ ls –l
Introduction to Linux
Moving in Directories
cd try_it
Changes the directory to try_it
pwd
Prints present working directory (e.g.
/home/smith/try_it)
cd .. Move to superior directory
pwd : Prints /home/smith
cd /home The absolute path
pwd : Prints /home
cd The system is returned to the user home
directory
pwd : Print /home/smith
Introduction to Linux
Make Directory
Remove Directory
Copy File
Remove File
The command rm file_a
removes the file_a from the system
If you use wildcard. For example
rm h*c
you will remove all files beginning with h and
ending with c which are in working directory.
If you write
rm *
you will erase all files from your working directory.
Introduction to Linux