Professional Documents
Culture Documents
la prparation de l'examen
LPI 101
v 1.1
nabilbenamar.com
LPI 101
nabilbenamar.com
LPI 101
Description
Weight 2
Candidates should be able to determine and configure fundamental system
hardware.
Set the correct hardware ID for different devices, especially the boot device.
Tools and utilities to list various hardware information (e.g. lsusb, lspci, etc.)
nabilbenamar.com
/sys
/proc
/dev
modprobe
lsmod
lspci
lsusb
nabilbenamar.com
LPI 101
nabilbenamar.com
LPI 101
nabilbenamar.com
LPI 101
/proc/interrupts
nabilbenamar.com
LPI 101
/proc/interrupts
nabilbenamar.com
LPI 101
man proc
/proc/interrupts
nabilbenamar.com
DMA
nabilbenamar.com
LPI 101
10
/proc/dma et /proc/ioports
cat /proc/dma
4: cascade
nabil@nabil-laptop:~$
cat /proc/ioports
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-0060 : keyboard
00c0-00df : dma2
00f0-00ff : fpu
03c0-03df : vga
nabilbenamar.com
sudo
LPI 101
/proc/dma
DMA channels enable
fast data transfer
which
does
not
involve the CPU.
Our machine does
not have any notable
DMA assignments
11
USB
nabilbenamar.com
LPI 101
USB
devices
are
attached to a host in a
tree
through
some
number of hub devices.
The lsusb command
can be used to see how
devices are physically
attached to a Linux
system.
lsusb -t
12
USB
USB
nabil@nabil-laptop:~$ lsusb -t
LPI 101
14
maximum 12 Mbps.
Maximum thorique de 480 Mbps.
Pour avoir des vitesses suprieurs USB 1.1 vous devez avoir
des contrleurs USB 2.0 ainsi que des priphriques USB 2.0.
Un priphrique USB 2.0 reli un concentrateur USB 1.1 ne
sera en mesure de fonctionner qu' des vitesses USB 1.1.
nabilbenamar.com
LPI 101
15
Class drivers
nabilbenamar.com
LPI 101
16
lspci
Description
Options
-t
Show a treelike diagram containing all buses,
bridges, devices, and connections between them.
nabilbenamar.com
LPI 101
17
Lsmod
Insmod
Rmmod
modprobe
nabilbenamar.com
LPI 101
18
Exemples
# modprobe -l -t net
# modprobe -l
nabilbenamar.com
LPI 101
19
/sys
/sys
nabilbenamar.com
LPI 101
21
/sys
de chargement
priphriques,
des
modules
de
pilotes
de
nabilbenamar.com
nabilbenamar.com
LPI 101
23
Poids 3
Description
/var/log/messages
dmesg
BIOS
bootloader
kernel
init
nabilbenamar.com
LPI 101
24
LILO
GRUB
/boot/grub/menu.lst
boot/grub/grub.conf
nabilbenamar.com
LPI 101
25
Au dmarrage
nabilbenamar.com
LPI 101
26
nabilbenamar.com
LPI 101
27
nabilbenamar.com
LPI 101
28
paramtre du noyau.
nabilbenamar.com
LPI 101
29
nabilbenamar.com
LPI 101
30
Exemple
LILO prompt:
nabilbenamar.com
to
/dev/hda9
LPI 101
for
the
root
31
nabilbenamar.com
LPI 101
32
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
lp
nabilbenamar.com
LPI 101
33
l'examen
nabilbenamar.com
LPI 101
34
LPI 101
35
dmesg
# dmesg | less
Apr 3 08:06:12 nabil-laptop kernel: [ 15.780260] wlan0: ethernet device 0c:60:76:52:05:d3 using NDIS driver:
bcmwl5, version: 0x50a4f0e, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 14E4:4315.5.conf
Apr 3 08:06:12 nabil-laptop kernel: [ 15.781250] wlan0: encryption modes supported: WEP; TKIP with WPA,
WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
nabilbenamar.com
LPI 101
36
Runlevels
Distinguer entre :
LPI 101
37
nabilbenamar.com
LPI 101
38
nabilbenamar.com
LPI 101
39
Le mode mono-utilisateur
LPI 101
40
nabilbenamar.com
LPI 101
41
/etc/rc.sysinit or /etc/init.d/rcS
nabilbenamar.com
LPI 101
42
/etc/init.d
/etc/init.d/apache2
nabilbenamar.com
LPI 101
43
KNNname et SNNname.
Since K comes before S alphabetically, the K services
are stopped before the S services are started.
nabilbenamar.com
LPI 101
44
nabilbenamar.com
LPI 101
45
nabilbenamar.com
LPI 101
46
id:N:initdefault:
Remarque
nabilbenamar.com
LPI 101
47
Sur ubuntu
cat /etc/init/cron.conf
LPI 101
48
nabilbenamar.com
LPI 101
49
# init 0
Reboot immediately:
# init 6
# init 1
or:
# init s
telinit
LPI 101
50
# shutdown -r now
shutdown -P now
nabilbenamar.com
LPI 101
51
shutdown
# shutdown h now
# shutdown r now
nabilbenamar.com
LPI 101
52
Rfrences
nabilbenamar.com
LPI 101
53