Install Linux
Install Linux
Workshop on:
System Security
IDS
Packet filtering using iptables
Overview
The object of this seminar is to provide
comprehensive check list of the more important
steps to be taken to install a linux system.
cont...
Overview continued
Although the labs can be done without a lot of
background in UNIX systems programming, it is
advisable to have some basic concepts of the
following topics:
1. Basic scripts
2. Sed and awk expressions
3. Regular expressions
4. Setting up UDP and TCP sockets
Overview cont.
5. Setting up DNS servers
6. Setting up a web server
Enjoy the seminar
Raj Nagendra
William Zereneh
Introduction
Hardware compatibility
Disk space
Installation method
Installation class
Workstation Installation
Server Installation
Custom Installation
Upgrade
Hardware Information
Keyboard Navigation
Displaying Online Help
Virtual Consoles
Server setup
Network Configuration
Firewall Configuration
Language Support Selection
Time Zone Configuration
Set Root Password
Authentication Configuration
Package Group Selection
Preparing to Install
Installing Packages
Boot Diskette Creation
Video Card Configuration
X Configuration Monitor and
Customization
Installation Complete
Disk Partitioning
Configuring the Boot Loader
Post-Installation
1. Kerberos
1. Kerberos Cont.
Disadvantages
Implementation is difficult
Account information migration from UNIX password database
to a Kerberos password can be tedious
Partial compatibility with Pluggable Authentication Modules
PAM
Applications need to be modified to utilize Kerberos
Assumes a trusted user using an untrusted host on an
untrusted network, but if Key Distribution Center (KDC) is
compromised, then the entire Kerberos authentication system
will be at risk.
All or nothing solution. must use PAM or kerberized versions
of all clients/server applications
1. Kerberos Cont.
2. System Maintenance
/swapfile
none swapdefaults
00
2. System Maintenance
Run levels
/etc/inittab
Change run level for system maintenance
2. System Maintenance
linux -b
2. System Maintenance
Documentation
Network maintenance
2. System Maintenance
Types of Disasters
Backups
2. System Maintenance
Type of Backups
Full backup
Incremental backup
Backup Media
Tape
Disk
Network
2. System Maintenance
Backup Technologies
tar
tar vcf /mnt/backup/home.backup.tar /home/
tar vzcf /mnt/backup/home.backup.tar /home/
cpio
find /home/ | cpio -o > /mnt/backup/home.backup.cpio
find /home/ -atime +365 | cpio -o >
/mnt/backup/home.backup.cpio
/sbin/hdparm -t /dev/hdaX
Show information
/sbin/hdparm -i /dev/hdX
Network
File System
Access Time
/chroot
ext3
defaults,noatime
1 2
Resource Monitoring
CPU Power
Bandwidth
Memory
Storage
free
top
vmstat
Example:
total
used
free shared
Mem:
255508 240268
15240
86188
-/+ buffers/cache: 146488 109020
Swap:
530136
26268 503868
Automate free
/usr/bin/watch -n 1 -d free
buffers cached
0
7592
example
PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
20 0 984 984 788 R 6.5 0.1 0:00 1 top
/usr/bin/iostat
/usr/bin/mpstat
/usr/bin/sar
Storage
smartd/smartctl
df
du
badblocks
smartd is a daemon that monitors the SelfMonitoring, Analysis and Reporting Technology
System (S.M.A.R.T.) built into ATA-3 and later
IDE and SCSI-3 hard drive.
/usr/sbin/smartctl -i /dev/hda
Device: Maxtor 90650U2 Supports ATA Version 5
Drive supports S.M.A.R.T. and is enabled
df Disk free
/bin/df
Filesystem
/dev/hda5
/dev/hda1
none
1K-blocks
Used Available Use% Mounted on
5578804 4279424 1298180 77% /
108868
9899 93348 10% /boot
256616
0 256616 0% /dev/shm
du Disk usage
/usr/bin/du /tmp
du /tmp/
4
/tmp/screens/S-root
8
/tmp/screens
.....
4
/tmp/ssh-XXa4kqTn
4
/tmp/uscreens/S-donkey
8
/tmp/uscreens
88
/tmp
smartd
Big Brother - bb
Multi Router Traffic Grapher - mrtg
logwatch
.....
References
www.redhat.com
www.disasterplan.com
www.amanda.org
www.linux-backup.net
http://web.mit.edu/kerberos/