Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Instructors info
: 0972.259.260
: nguyenphuongquan@gmail.com
Com
: SHB
1991: Linux
1994: Redhat
Linus Torvald
Tux
LINUX VS UNIX
Linux
Unix
1. Linux Installation
Linux Installation
Linux Installation
Partitions
Three types of partition on hard
drives: primary, logical, and extended
The partition table is located in the master boot
record (MBR) of a disk
When more than 4 partitions are required, one of
the primary partitions must become an extended
partition
Linux numbers primary or extended partitions as 1
through 4
If logical partitions are defined, they are
numbered starting at 5
swap
Size
Description
4GB or
Contains all directories not
more
present on other filesystems
2 x RAM size used to support virtual memory
/boot
100MB
/home
200MB per
user
2GB or
more
/var
/tmp
As much as
possible
LILO vs GRUB
LILO
GRUB
/etc/lilo.conf
/boot/grub/grub.conf
or
/boot/grub/menu.lst
No
Yes
Command to install
lilo
grub-install
Yes
No
Configuration file
Example of grub.conf
Example of lilo.conf
Runlevel
Managing Runlevel
View default runlevel
grep :initdefault: /etc/inittab
View current runlevel:
runlevel
Change to another runlevel:
telinit runlevel
List the services and their applicable runlevels:
chkconfig --list [servicename]
Modify the runlevels in which a services run
chkconfig --level runlevels servicename {on|off|reset}
Example: chkconfig --level 345 nfs-common on
Exercise
1. Login as root in graphical mode
2. Learn your current runlevel with runlevel
Q&A
Thank You