linux by hands
TRANSCRIPT
-
..
Linux-
-
2002
-
;/.
-
, ,
(, MRTG ), . , Unix- Linux RSP 2000 .
, ,
.
1. LINUX 81.1. 81.2. Linux 81.3. Linux? 7 /1.4. Linux- 121.5. 151.6. 18
1.6.1. 181.6.2. 201.6.3. 21
1.7. ? ( ) 221.7.1. : / 221.7.2. 251.7.3. TCP/IP 321.7.4. DNS 351.7.5. TCP/IP 3S1.7.6. 401.7.7. IP TCP 41
1.8. 421.9. Linux 431.10. ; 46
2. 482.1. Red Hat Linux , 482.2. Linux Mandrake 592.3. Linux Intel 810 642.4. 65
2.4.1. Windows 9x Linux 652.4.2. Windows 9x, Windows NT/2000 Linux 662.4.3. /oadlin 67
2.5. 692.6. 69
2.6./. : 702.6.2. 712.6.3. gnorpm, kpackage, apt 742.6.4. , 78
2.7. 78
3. 803.1. 80
3.1.1. 813.2. 8/3.3. 813.4. 833.5. 843.6. 86
3.6.1. 893.6.2. 973.6.3. linuxconf 97
3.7. 92
4. Linux 944.7. . 944.2. 96
4.2.7. 964.2.2. , 98
4.3. 994.4. Linux 707
-
4.5. 1024.6. . 1024.7. fdisk 1074.8. Disk Drake 1094.9. . /etc/fstab 1094.10. () 1134.11. LILO 1154.12. 1194.13. 1244.14. 7254.15. 125
4.15.1. SCSI 1264.15.2. FDC 1264.15.3. 126
4.16. 1284.17. cpio 1294.18. 1314.19. RAID 1324.20. Linux 135
5. 1375.1. fork() () 137
5.1.1. 1395.2. / 7405.3. 5.4. 7445.5. . init 7465.6. '. 7495.7. () 7535.8. 753
5.8.1. Syslogd 7545.8.2. , 7555.5.3. 7555.8.4. 7575.5.5. klogd 7585.8.6. 758
6. Linux 1596.1. 7596.2. X Windows 7596.3. 760
7. 1617.1. . 7677.2. 7647.3. '. 765
7.3.7. 7687.3.2. - - 7 7 7
7.4. DSL- 7727.4.1. DSL Linux Mandrake , 7737.4.2. DSL 774
7.5. /777.6. 787
8. 1848.1. inetd xinetd 784
8.7.7. inetd 7848.1.2. tcpd 7868.7.3. IPv6 7878.7.4. xinetd 7878.7.5. xinetd /898.7.6. xinetd 79/8./.7. /etc/xinetd 792
8.2. : ssh.n telnet /958.3. 2028.4. DHCP (Dynamic Host Configuration Protocol) 2038.5. . MRTG 2088.6. (NFS) 2/7
S.6./. NFS 2778.6.2. NFS 2/8
-
8.7. ht:/Dig 2198.8. - Socks5 220
8.8.;. 2208.8.2. SocksS 2238.8.3. SocksS (licq) 223
8.9. 2258.9.?. LIDS? 2258.9.2. LIDS 2268.9.3. 2288.9.4. 23/8.9.5. LIDS 234
9. Server Message Block (SMB) 2369.1. Samba 2369.2. 2389.3. SMB- Linux : 2479.4. Linux Windows- 2439.5. Windows- , Linux 2449.6. smb.conf 2469.7. SWAT 247
10. DNS 25110.1. DNS 25270.2. DNS 25770.3. DNS 25970.4. DNS 25970.5. nslookup 260
11. FTP 2637 7 . 7 . FTP wu-ftpd 264
11.1.1. ftpaccess 26577.7.2. ftphosts 26977.7.3. ftpusers 2697 7 . 7 . 4 . ftpgroups 27077.7.5. ftpconversions 27077.7.6. xferlog 270
77.2. ProFTP 27777.2.7. /etc/proftpd.conf 27277.2.2. 27477.2.3. .ftpaccess 275
77.3. FTP- 2757 7 . 4 . 27677.5. FTP 277
12. Apache 27972.7. Apache 27972.2. 287
72.2.7. httpd.conf 2S772.2.2. Apache netconf 290
72.3. 29772.4. HTTP- 297
72.4.7. 29272.4.2. IP- 293
72.5. SSL Apache 29472.5. /. SSL 29412.5.2. SSL Apache 29572.5.3. 296
72.6. httpd.conf 29772.7. 3 7 7
13. 37573.7. sendmail 37673.2. sendmail 32273.3. 32573.4. 32773.5. 330
14. 33374.7. IPChains 33374.2. IPChains 334
-
14.3. 33714.3.1. SYN 33714.3.2. 33774.3.3. 33S14.3.4. /- 33814.3.5. 339
14.4. 33914.5. IPTables 345
15. - SQUID 34715.1. SQUID? 34715.2. SQUID 34775.3. SQUID 34875.4. SQUID 34975.5. squid,conf 350
75.5.1. 35015.5.2. 35075.5.3. 35775.5.4. 35775.5.5. 35775.5.6. ACL 35275.5.7. 35315.5.8. 353
75.6. . 35475.7. 35475.8. 35575.9. 356
16. MySQL 35S76.1. 35816.2. 36776.3. Apache + PHP + MySQL 362
76.3.7. : RPM 36276.3.2. : 365
17. . 3677 7 . 7 . 367
17.1.1. 36777.7.2. 36877.7.3. IpChains 36877.7.4. DNS 36917.1.5. Squid 377
77.2. Dial-In 37277.2.7. 37277.2.2. mgetty 37377.2.3. 37577.2.4. IP Forwarding 37677.2.5. 37677.2.6. - 37777.2.7. Windows- 37777.2.8. 378
77.3. 37877.3.7. callback? 37877.3.2. . 1 37977.3.3. . 2 38777.3.4. . 1 38377.3.5. . 2 385
18. 38678.7. 386
7 8 . 7 . 7 . 38778.7.2. RAMDISK 38778.7.3. 38878.7.4. 388
78.2. 3898.2.7. Processor type and features 39078.2.2. Loadable module support 39378.2.3. General setup 39378.2.4. PnP support 395
-
18.2.5. Block devices ; 39518.2.6. Networking options 396/8.2.7. SCSI support 39778.2.8. Network device support 397/8.2.9. IrDA, USB support 39718.2.10. Filesystems 39718.2.11. Sound 397
/8.3. 397 19. . RPM- 399
19.1. 39919.2. 407/9.3. 41219.4. 41919.5. RPM- 428/9.6. vi 432/9.7. bash 434
19.7.1. 43519.7.2. / 436/9.7.3. 436/9.7.4. 438/9.7.5. 44/19.7.6. 44//9.7.7. 447/9.7.8. 447/9.7.9. 449
20. . X Window 45020.1. 45/20.2. XF86Config 45520.3. X Window 45920.4. Windows 46/20.5. 46220.6. GNOME 46920.7. X- 474
21. Linux 4SO21.1. 4802/.2. 4822/.3. nVidia 4832/.4. Windows- wine 4872/.5. wine 4S82/.6. 4922/.7. 494
2/. 7. /. 49421.7.2. 4962/.7.3. 50/
22. 50222.1. 502
22.1.1. DrWeb Linux 50322.1.2. AVP Linux 505
22.2. 5/0 23. 5)5
23./. SATAN ; 5/523.2. 5/923.3. 52/
24. 523 525
-
1 Linux
7.7. , -
UNIX Linux-, -. ,
. , ' , -
100% . , Linux Linux-. - : , . ,
, . 17 , -
. ,
,
, -
, , -
Linux. ,
.
Linux-, . , DNS,HTTP, FTP, IpChains, SQUID. , , .
1.2. Linux Linux , ,
Unix. 60- Multics, General Electrics, AT&T BellLaboratories . . Multics , ,
.
8
-
Linux
1969 Unix, ,
Multics. , Multics, -. .
Unix , .
.
Unix - .
, .
Unix - , -
, IBM Novell. 1972
. Unix .
Unix. , - . 1975 Unix -- Berkeley Software Distribution (BSD). ,
AT&T. , -
, Unix. , 1980 - Microsoft Xenix. , Unix, - , .
1982 AT&T Unix System 3. Unix. Unix System V. , - .
BSD Unix 1983 Unix BSD 4.2. - ,
, , TCP/IP, . -
Unix BSD 4.2. Unix -
. 80- Unix System V BSD Unix. AT&T Labs Unix System V Unix System Labs. 1991 - System V 4, System V 3, BSD 4.2, Xenix.
-
Linux
, IBM Hewlett-Packard, (Open Software Foundation, OSF). - Unix. OSF Unix.
1993 AT&T Unix Novell. Unix Novell, System V 4. UnixWare.
-
. 90- - : Motiff OpenLook. , Common DesktopEnvironment (CDE).
Unix - . -
.
. , SunOS Sun, AIX IBM, a AUX Macintosh.
Linux Minix, . Minix UNIX-, - , -
Unix. - Minix, Linux. Linux USENET comp.os.minix.
5- 1991 - Linux 0.02. bash (Bourne Again Shell) gcc (GNU compiler). .
, .
. -
Linux - . Linux - UNIX, , TCP/IP, , - ,
.
Linux - Intel. Co - Linux , , Sun Microsystems. , , Linux.
, Linux, , , ,
Linux?. Linux.
10
-
Linux
,
Linux , - -, -
Linux.
1.3. Linux? .
Windows NT Server - Microsoft. Novell Netware . UNIX - -. -
,
. UNIX- ( TCP/IP), Intel. Linux.
Linux, .-,
, .
, Microsoft. - Windows? , -, .
,
.
? Windows? , ,
?-, Linux . , -
Linux, - . -
Linux, . ,
Linux SMP . , Linux UNIX- , , .
-
,
.
, , -. -
, -
ASP Linux, , , .
. Linux-
11
-
Linux
Microsoft. Microsoft. , Windows NT(2000) Server, SMB- Linux. , 9 .
-, Linux . Windows NT(2000) Server, , -
.
.
, .
, -
, .
, ,
, .
-, Linux - . , -
- -
Intel 80486DX 32 . , . -
,
Red Hat Linux 5.2. , ,
. ,
, Intel 80486. Linux, -
, GPL. GPL , - , GPL, -
.
1.4. Linux- Linux .
Linux - . -
, Linux. , -, Microsoft Linux, $400 Windows 98 $60.
Linux , Linux-. Microsoft Windows NTServer ( Windows 2000 Server), , . Windows NT(2000)
12
-
Linux
Server , -, Microsoft .
, Linux - -, . -
80- , DOS: , -, ,
-
Norton Commander. 90- ( 1993 ) : Microsoft Windows Windows 3.1. Windows3.1? -, , -, , , , .
( ) Windows 3.1 .
Windows Windows for Workgroups. 1995 Windows 95, -
Microsoft . - , .
Windows 3.1 32- -. Microsoft - Windows NT 4 Server. ( ) TCP/IP, - , ,
, .
2000 Microsoft Windows 2000 Server. Windows 2000 Windows NT 4 Server, Active Directory, - TCP/IP, ( ).
, , -
, 2000 Microsoft , Unix 80- . . ( 1979 ), Unix :
1. 32-.2. .3. , .
, 1993 , -
Unix 1979 . , TCP/IP , . ,
TCP/IP , .
: Unix , .
13
-
Linux
, Windows , - . Active Directory - Network Information Service. , , , , ...
, Unix DOS- . X Window Linux-, - . KDE Gnome,Linux . - -- .
, Novell , -
. Linux Unix, . , Linux . -
, , Linux - Windows NT (2000) Server, , .
.
Unix- - -
. ,
, .
, , ,
Microsoft, , , ,
? Microsoft - .
Linux-? , --. , Linux (Unix)? - , , Windows NT (2000)? - . 60- Arpanet, - . NT- - -, 1996 ? - 70- . Unix-. -
? , BMW Hond'bi? :Linux (Unix) . - ,
,
.
,
. :
14
-
Linux
. , -
, ,
Red Hat Linux. , -
, , Linux (SuSELinux), Dresdner Bank CollabNet , - Linux. , , Linux, . ,
, -
? . Linux- -
.
, -
. , ,
. -
, -
, , PVM (Parallel Virtual Machine). , -
.
, -
, Linux-: Web-, -, -, , -, NT Samba. .
1.5. ,
, .
, , ,
. ,
,
. .
-
Linux Linux Mandrake Linux RedHat. Linux.
Linux. , Linux. .
SCSI RAID. , , ,
Linux-.
15
-
Linux
Linux. , ,
? . -
, -
.
-
, TCP/IP, - . ADSL-, .
. -
inetd xinetd. , , a xinetd Linux-. - ssh, - DHCP, NFS, , , ht:/Dig . : -
-
SocksS, LIDS. MRTG, - .
Samba, Windows-. Linux- - Windows, , Windows- Linux-.
-
DNS. - . -
, DNS, , . -
DNS, , DNS-.
FTP - . wu-ftpd ProFTPD, a FTP-.
Web- Apache, , - . : , -
, ,
SSL, . POP SMTP,
SMTP-. : SMTP , a POP . , .
16
-
Linux
, TheBat!, Netscape Messenger, Outlook Express.
-
, .
, -
, -
.
--
SQUID, , . Web ? .
,
MySQL. - , MySQL. Apache+PHP+MySQL.
-
.
,
. -
.
, ( ), . ,
. 17, . - , ,
. -
. -
.
Linux - .
.
.
Linux. , , ,
.
, -
X Window, GNOME.
.
, -
,
Microsoft. , Linux, . -
17
-
Linux
( , , -, ..), - (Louncher'a). , . -
Windows- Linux Windows-. , - , Quake 2 3, CounterStrike, Unreal Tournament, Diablo 2 .
. -
Linux -: DrWeb AVP. .
,
, ,
: SATAN, , .
-
, .
-
Linux ( ) , X Window ( ). Linux, - .
. -
(URL-), , Linux. - .
1.6. :
1. .2. .3. .
.
1.6.1. (. 1.1) ,
(Intranet). He -. Intranet , , .
. -
, ,
. -
, ,
18
-
Linux
(hub)
. 1.1.
. -
. -
, ,
.
-
,
, ,
, . -
, , , .
, ,
.
. 1.1 - -
.
- - .
-
^ ( -) (switch). , -
, -
, .
IP- . IP- IP-, , .
,
. , ,
.
.
, -
,
. -
, , , .
.
, , -
.
. 7.6 . .
.
-
.
LUCENT CAJUN P115G. 24 10/100 ,
19
-
Linux
(hub)
1 100FX. 230 .
48 10/100 Mbit LUCENT-CAJUN P334T. 8 , , - . 334 -- $900. 100FX $150...250 .
1.6.2. , ,
(. . 1.2). . ,
. ,
Web, FTP, SMTP/POP-.
.
-
-
, , Intel.
-
.
,
.
. 1.1? , . (: ) .
,
. ZyXEL U336S. - , -
.
300...480 /. ZyXEL, - , ( ) . , - . ZyXEL.
300...480 / . DSL-, 1 /. - , Radio Ethernet.
. 1.2. ()
20
-
Linux
1.6.3. ,
,
, . -
. ,
.
(. . 1.3). .
. -
, .
,
, . () , - .
, -
, -
, , Radio Ethernet. ,
-
. -
,
. -
, -
.
:
,
-
( -
. 1.3.
)? - ,
( ), - . -
, , , .
. 1.3 (dial-up) .
,
ZyXEL. Robotics , ZyXEL . -
- ,
. -
21
-
Linux
,
. , ,
. - - ,
. -
, -
, . -
-
.
.
, -
. ,
, , -
, .
,
. , -
.
: -
, .
^ , -
, .
1.7. ?( )
,
, .
,
- .
, ( -!), TCP/IP. (). -,
, , .
, , . . .
1.7.1. : / . -
: (peer-to-peer) / (client/server), ., . -
, (,) , , - . -
.
-
22
-
Linux
, ( (), ).
( - ), . ,
(Linux, FreeBSD, Windows NT, Windows 98) - (Windows 95, Windows for Workgroups).
. -
.
Windows 9x, , (. . 1.4).
,
, , . WG1, WG2 (. . 1.5).
, (- ), , .
Windows 9x ( - - ), , -, WG1.
,
, - .
, , , ,
. -
': ' ' }>'.-1(.(.
VPHI^ SHP!1DENIS .1.
.
/
. -
-
-
. ,
: .
-
,
. ,
,
-
. 1.4. Windows 9x
WG1 WQ2
. 1.5.
23
-
Linux
. , , ,
. /
( ). /
(login ) (password). : , - - ,
(, , ).
(user authentication). , ,
, .
, .
, -
. / .
, / . -
(workstations). , , -
.
( ): , , (-), -, Web- ..
. 1.1 , -, ,
.
1.1
(dialup) -
() Microsoft
dhcp
NFS, FTPd (ProFTPD, wu-ftpd) samba
Squid
route(d) sendmail( postfix/qmail) imap Linux, IPChains
(/),
17
8
8, 139
15
8, 14
13
8, 14
24
-
Linux
. 1.1
() IP-
Web-
IP-
modSSL
bind
Lpd, Samba, CUPS apacheIPChains (IPTables Linux)MySQL/ PostgreSQL/ InterBaseIPChains
( )
//
12
10
6,912
14
1614
, -
, -
, .
, , -
, , Web-. , ,
,
,
. (, ) , , - ,
486DX/66 32 . , -, ,
.
Linux , , ,
Linux- , . , -
, .
.
, -
, . ,
,
64 ( 128 ), , ,
. -
.
1.7,2. , , TCP/IP,
. --
,
25
-
Linux
( ) . , -
.
. , -
. 1.6. () .
. 1.6 , , (, 1 2), - , ,
(, 1 1), . : , -
. -
, .
, , ,
.
TCP/IP.TCP/IP (Transmission Control Protocol/Internet Protocol - /-) . .
RIP (Routing Information Protocol). RIP . OSPF (Open ShortestPath First), , RIP.
ICMP (Internet Control Message Protocol) . , -
( , ).
FTP (File Transfer Protocol) . . ,
, , .
( FTP-)
1
2
A3
1-1
2-2
-
1
; 1-2
2
2-
. 1.6.
26
-
Linux
. FTP-. - FTP- -. FTP- ftp.
HTTP (Hyper Text Transfer Protocol) -, HTML. HTTP Web-. HTTP- .
POP (Post Office Protocol) -- . .
SMTP (Simple Mail TransferProtocol) .
, ,
. -
POP-, , , , . -
, , -
.
.
, . -
,
.
The Bat!, Outlook, Outlook Express, Netscape Messenger, KMail. SMTP--
. ,
,
. SMTP- . 13.2 . SMTP . - POP-, . , .
SMTP (, POP- , POP), .
. '
POP , - , .
. .
SLIP (Serial Line Internet Protocol) . -
. -
.
(Point-to-Point Protocol) , -
, SLIP. - .
RFC 1547 RFC 1661.
27
-
Linux
TCP/IP, .
, -
. -
, ,
, . () , -
.
80- (ISO International Organization for Standardization) (OSI -- Open System Interconnection). :
- - OSI -
-
OSI. (. . 1.7) OSI :
1. .2. .3. .4. .5. .6. .7. . -
.
-
-
-
,
,
. -
.
- -
: -
.
, .
.
6 -, .
. 1.7. OSI
28
-
Linux
. 1.7 , OSI , .
. , ( 1) - 2. .
. . 1.7. , - ( ), - , ,
. , , -
, , .
( 1) , - . , 1 .
-
.
-. -
, ..
.
-, -
.
,
,
.
. .
(Physical Layer) , -
, .
, -
, : , .
:
, , .
-
.
100Base-TX ( Ethernet). (Data link Layer)
. , -
.
(--), -. -,
-.
29
-
Linux
-
, .
(frames). . -
: , .
,
. ,
. -
, .
.
.
,
. (. . 1.8) : .
.
.
1
. 1.8.
, ,
. ( ) - ,
, .
( -). - - , LAP-B.
(Network Layer) ,
. ,
.
. - -
.
,
.
.
- .
30
-
Linux
(, 10Base-T - 1024 ), - .
, .
,
-
.
. -
-
. - -
, , -
. (, hop ). .
.
. -
, ,
.
(routing protocols) RIP OSPF. , ,
Address Resolution Protocol (ARP). .
: IP ( TCP/IP),IPX ( Novell).
(Transport Layer)
. -
,
, -
. -
( ) . :
1. .2. .3. .4. .5. .
OSI, , -
.
: TCP UDP ( TCP/IP),SPX ( Novell).
31
-
Linux
(Session Layer) -
, ,
. -
(), ( ) - .
- - .
:
1. . - .
2. .3. .
.
,
, .
(Presentation Layer) ,
. ,
.
.
: SSL (Secure Socket Layer). .
(Application Layer) ,
-
. .
: HTTP, FTP, TFTP, SMTP, POP, SMB, NFS. OS/
OSI -,
. -
, ,
, , ,
. -
-, , . .
7.7.3. TCP/IP ,
TCP/IP-. , - .
, . -
IP- IP- , .
32
-
Linux
IP- (TCP/IP-) -, IP-. IP- 32- , -
, , :
1. 111.111.213.2322. 127.0.0.13. 192.168.9.2
, , TCP/IP
, . IP- IP- (NIC, Network Information Center).
,
(LAN, Local Area Networks) (Wide Area Networks). (Arpanet), , . ( ) , IP- NIC. IP-, .
, LAN WAN, .
IP. , ( ). -, , -
.
, .
.
Ethernet, Token Ring, FDDI, ATM. ,
.
.
IP Sub-networking-HOWTO, -.
,
. , () . IP-, , 192.168.1.0...192.168.1.255. . (192.168.1.0) , (broadcast) . , (), , .
,
. ,
2 . 851 33
-
Linux
. ,
(), , ,. (), .
-
( ) , , .
,
IPv4-Forwarding. Linux, FreeBSD, UNIX-, Windows NT/2000. Windows 98, , .
UNIX-, Linux.
, -
() . , , ARP-.
. ,
, .
- :
255.255.255.0 256 (0...255);255.255.255.192 64 (192...255);255.255.0.0 65536 (256*256).
IP- : , , , D . . : 255.0.0.0.
16777216 . 1.0.0.0...126.0.0.0, () 125.*.*.*
. 255.255.0.0. 65536 . 128.0.0.0...191.255.0.0. 136.12.*.*
. 256 ( 254 , 0 255 ). -255.255.255.0. : 192.0.1.0...223.255.255.0. - : 195.136.12.*
. -
. , 128.11.1.0 :
10000000 00001011 00000001 00000000 192.168.1.0:
11000000 10101000 00000001 00000000
10, , , .
34
-
Linux
1110, D, (multicast). D, , .
. . 1.2 , , , D .
1.2
D
010
1101110
11110
1.0.0.0. ..126.0.0.0128.0.0.0.. .191.255.0.0192.0.1.0.. .223.255.255.0224.0.0.0.. .239.255. 255.255240.0.0.0.. .247.255.255.255
16777216(224)65536 (216)256 (28)Multicast
,
. IP- (0.0.0.0), , , .
255.255.255.255 . , ,
. -
. , -
.
(255). , 192.168.2.255. , 192.168.2.0.
IP- 127.0.0.1 -. -
.
, -
, . .
loopback. IP- IP-, 127. 127.0.0.0 , : 127.0.0.1, 127.0.0.5, 127.77.0.6.
,
, IP, . :
10.0.0.0 ( , 255.0.0.0).172.16.0.0...172.31.0.0 (16 , 255.255.0.0).192.168.0.0...192.168.255.0 (256 , 255.255.255.0).
,
IP-.
1.7.4. DNS - ,
, Web-, IP-. , ,
35
-
Linux
. , http://www.romb.net http://62.244.59.193. , . ,
romb, a www net . , , , -
.
IP- DNS (Domain Name System). DNS, - . , IP- - , . ,
, , .
, Web- :http://www.department.firma.isp.ru. , , - .
() IP- DNS, - . DNS- ( user-dns), - IP- . DNS , DNS- , ,
(. . 1.9). ru
( ru-dns). ru-dns -
,
isp ( ). - isp , (-) firma, ,
department, IP- -
www.department.firma.isp.ru. , - . , - ,
, , DNS user-dns, - IP-.
DNS . - , , , n- .
ru, isp , firma , department (. . 1.9).
InterNIC. (-) (. . 1.3).
-^-'"' ~^^ ~^com ^^^ \
6 9"g \_ googie /*"\ isp
romb Q
II \
IV
II
department
. 1.9.
36
-
Linux
ISO 3166 1.3
I4J
byIv
mdtr
iqilples
frid
Q'athu
It
kz
irtmit
Qbdevn
va
CO
mx
,
us. -
ISO 3166. ftp:/ftp.ripe.net/iso3166-countrycodes.
:
com (, yahoo.com).edu (, mit.edu).gov (, nasa.gov).org (, linux.org).net (, ukr.net).
ISC (Internet Software Consortium) 2002 150 (. . 1.10). ISC.
Internet Domain Survey Host Count
160,000,000 y140,000,000 -120,000,000 -100,000,000 -
80,000,000 -60,000,000 - >40,000,000 -20,000,000 -
0
I ISouirt: Internet Software Conioithun (www.xc.oig)
. 1.10,
37
-
Linux
1.7.5. TCP/IP : ,
TCP/IP, , .
TCP/IP . TCP/IP.
TCP/IP 60- 70- DARPA (U.S. Department of Defense Advanced ResearchProjects Agency). . 1.4.
TCP/IP 1.4
19701972197319741981198219831984
NCP (Network Control Protocol) Arpanet Telnet (. RFC 318) FTP (RFC 454) TCP (Transmission Control Program) IP (RFC 791) TCP IP TCP/IP Arpanet TCP ( NCP) DNS
, -
RFC. RFC (Request for Comments) -- . .
RFC (Internet Society,ISOC). ISOC RFC. RFC :
(Required)
TCP/IP. (Recommended)
RFC . (Elective) . (Limited use) -
.
(Not recommended) . RFC -. TCP/IP , -
: , , (. . 1.11).
1 2 3 4
( , Application Layer) () (Transport Layer) ( Internet, Internet Layer) (Network Interface Layer)
. 1.11. TCP/IP
38
-
Linux
.
-
-
TCP/IP.
, -
.
.
(frame) , -
Ethernet. -
(frame), (packet), (datagram), (segment). - -
TCP UDP
/~" "V
. 1.12. TCP/IP
.
(. . 1.12).
(-) . -- :
IP (Internet Protocol).... .ARP (Address Resolution Protocol) ... -
( ) .ICMP (Internet Control Message Protocol) ... -
.
IGMP (Internet Group Management Protocol)... - , -
, .
RIP (Route Internet Protocol) OSPF (Open Shortest Path First) ... .
.
(- OSPF). , .
39
-
Linux
() . -
: TCP (Transmission Control Protocol) UDP (User Datagram Protocol). TCP - , -
. -
, .
,
.
UDP (). UDP - TCP. . .
TCP/IP. : DNS, Telnet,WWW, Gopher, WAIS, SNMP, FTP, TFTP, SMTP, POP, IMAP.
TCP/IP OSI (. . 1.5). TCP/IP OSI 1.5
OSI7,65,4
3' 2, 1
WWW (HTTP), FTP, TFTP, SMTP, POP, telnet, WAIS, SNMPTCP, UDPIP, ICMP, RIP, OSPF, ARPEthernet, PPP, SLIP
TCP/IP1234
TCP/IP . IP TCP, .
1.7.6. , ,
, .
(. 1.5) , .
, .
, IP- IP- , . IP- , , .
,
. ,
IP- , , , .
40
-
Linux
.
, .
, TCP/IP, - . , 80 WWW- ( Apache), a 53 .
demon ( daemon) , -
- . , -
: , .
- -
DOS. , - . ,
. -
, , -
.
, .
1.7.7. IP TCP IP
TCP. IP , - . ,
. 1.6, IP- .
IP- 1.6
Source IP-address(IP- )Destination IP-address(IP- )Protocol ()Checksum ( )
TTL (Time to Live, )
Version
Header Length ( )Type of Service( )Total Length ( )Identification ()Fragmentation Flags( )Fragmentation Offset( )Options and Padding( )
TCP UDP
, .
. TTL
IP 4 6. IP . 8 (4 ) 20 (4 )
IP-. , , . (8 ) IP- (16 ) . ( ), (16 )3 2
IP-. , 0x0 (13 )
41
-
Linux
TCP, IP, - . TCP- . 1.7.
TCP- 1.7
Source port ( )Destination Port ( )Sequence Number ( )Acknowledgement Number ( )Data Length ( )Reserved ()Flags ()Window ()Checksum ( )Urgent Pointer ( )
TCP - TCP -
,
TCP-
TCP
( Flags)
1.8. (-
)! -. -
, .
, ,
. .
-
, pupkin 123! ( ,
). RAID-, , , -
. RAID . ,
, ,
, -
SCSI-. - (133) SCSI, - , SCSI.
, ,
.
-
. . 7. . 8 . ,
-- ,
42
-
Linux
-- xinetd inetd. , .
.
, , , -
DHCP. : - , ,
.
-
, .
, . -
.
1.9. Linux -
Linux, - -, , www.linuxcenter.ru. - :
1. Red Hat Linux.2. Linux Mandrake.3. ALT Junior Linux.4. ASP Linux.5. Black Cat Linux.6. Slackware.7. Astaro Security Linux.8. SuSE Linux.
S
Red Hat Linux LinuxMandrake, . Mandrake Red Hat, , . - ,
, SuSE Slackware, , . -
, , ,
Red Hat, , - 100%- Red Hat. , , ALTJunior , .
, Red Hat Linux. , .
( ) - Linux. He , , Red Hat.
43
-
Linux
, .
Red Hat - - . ,
,
, . ,
Linux, , - Red Hat. , - , .
:
, .
, , -
? 7.2(7.3)
8... , . ,
,
. -
ext2 ext3. .
Gnome 1.4 - Nautilus, , .
.
: .
, .
. -
, .
, -
USB Firewire. : firewall -
, -
.
Linux Mandrake. Linux Mandrake Intel Pentium, AMD Athlon PowerPC. Linux . Mandrake ,
,
, .
, , Red Hat. ,
( - win-). - .
44
-
Linux
, Linux Mandrake , . -
, ,
.
:
, , , , -.
9.0 :1. .
64 (!) .2. .3. ( 1 ) .
1 , -
, .
4. , ReiserFS, XFS JFS.5. : Firewire, USB, USB2, 1830 DRM,
133, .6. (Control Center).
2.4.19. :-
1. KDE 3.0.3 Office.2. GNOME 2.0.1 Evolution 1.0.8 , WindowMaker 0.8, IceWM 1.2,
Enlightenment 0.16.5, BlackBox 0.623. StarOffice 6.0 KOffice 1.2.
MS Office.4. Mozilla 1.1, Konqueror 3.02 Galeon 1.2.5.5. GIMP 1.2.3.6. GCC 3.2, Glibc 2.2.5.7. Apache 1.3.26.8. PHP 4.2.3.9. MySQL 3.23.52 PostgreSQL 7.2.210. Sendmail Postfix.ALT Junior Linux
.
, .
,
.
ALT Junior 1.0 2.4.5, , - MatroxG-, ATI Rage & ATI Radeon, Intel 810/815, 3DFX Voodoo 3/4/5. nVidia.
ASPLimix 7.2 , , . -
45
-
Linux
. , -
, :
1. ( ) - ,
.
2. - RAID.
3. RAID. ASPLinux 7.2, ,
i386: 180386DX Pentium IV. --
nVidia ( Riva TNT2), www.nvidia.com
.
, ,
pptpd, VPN Windows, portslave, pppd RADIUS (callback).
:
- (Docu-mentation CD).
Astaro Security Linux. . ,
-- ,
:
,
https . - SCSI (, SCSI- -) ISA, .
1.10. ,
, .
.
.
. ( ) . -
, - ,
.
46
-
Linux
(^ , . ,
Ethernet ( ), - , , -
. .
(router) .
.
.
(routing) -- .
(bridge) . , .
Ethernet, - , -
.
.
,
- .
,
-
.
, -
.
(soket) (file handle). . , ,
: IP- , (TCP UDP) , .
, .
(Gateway) . , - , , ,
LAN WAN. , , , , -
, ,
.
47
-
2
2.1. Red Hat Linux , -
, 6 (, , 8.x). , ,
, 6.0 (Hedwig) ( ) , . , Intel 486DX4, Windows MS Office, (. . 2.1). . -
,
( , ). , 6.0 8.0 ,
. , ,
, ,
, .
, 6 AGP. PCI, - XFree86 ( , , ). 7.x, 8.x, .
.
Linux Red Hat . . -, RedHat inetd, ( 7) xinetd. . , . 8. inetd , .
, inetd xientd, - xientd inetd.-, : - Linux . - Linux Unix: Unix .
48
-
, Linux Microsoft, . Pentium133 32 Linux Internet-, -. Windows 2000 Server, -, , Celeron 300 256 . - Red Hat 6 . 2.1, . 2.2 .
Red Hat 6 2.1
,
486DX8
150
X Window ( Linux) 8...16 200...300 . , , X Window , , , -
X Window . 20 .
2.2
,
,
Pentium 133 32
600
-
, , -. --
Web- ( ). , -, . 15, . , , .
- -
- , -, -
. ,
, , ,
( ) . -
. ,
- , -
,
- 33 /. , ,
, , .
49
-
- , -
- .
. ,
, -
,
. 300 ,, -, -
10 . - . 15.
Linux- -
. Linux - , Linux. : - , ().
.
. -
.
* ,
.
.
Linux . 4.
, -
, -
.
. , Linux ext2 (ext3), VFAT, ISO9660, UFS, XFS .
(swapping ) -
,
. -
? . , : ,
( ). , - , , -
. .
, 8 , 16 . 6...7 , .
, -
. -
, ( ), .
Linux - Windows, . ,
50
-
,
.
Linux: fdisk Linux.
fdisk . 4.7 . -
.
, -
, Partition Magic. : -
. :
Red Hat (Disk Druid) . -
Linux, - , . ,
, Windows--, Linux, fips. dosutils Red Hat. Windows, , .
MS DOS Windows (win368 . swp). Windows (format a: /s), fips ( !), fips.
-
, , ,
.
FAT FAT32, Disk Druid Linux-.
Linux Linux:
1. -.2. (boot floppy).3. .4. .
.
BIOS CD-ROM, . ,
, :
* dosutils images ( :). rawrite MS DOS (
MS DOS, rawrite
51
-
- Windows. Windows rawritewin):
: \dosutils\rawrite
Enter disk image source f i le name::
:\ images\xxxx. img :
boot. img ;bootnet. img .
:
Enter destination drive: :
Red Hat . ,
CD-ROM . FTP NFS.
, Red Hat () (. . 2.1).
, - ,
, .
: CD-ROM . -
-
-
Red Hat. -
,
, -
Red H a t ( /pub/Red Hat).
. -
.
Please enter.th? (
:
the. nans' or: the director
-' Red; "Lit*.
FTP
. 2.1. Red Hat FTP
: -.
:. (Server) (Workstation) ,
(. . 2.2). Server
Workstation.
52
-
Wiat.tape of nachine are youinstalling? For maximumflexibility, choose "Custom",
WorkstationServer
(Workstation)
Linux, -
64 , 16 /boot - - ,
-
.
600 ..
. 2.2. (Seryer)
, 64 , 256 , 512 /usr, 512 /home 256 /var. 1.6 .
Linux, -. ,
Linux. -
.
( ) . - , ,
, ,
.
: ,
,
/ . - ,
, -
, .
, -
( ), . ,
Linux root, . . ,
: (/dev/hdal /dev/hda2). , (, X Window ). root, , . :
l inux root=/dev/hdal
53
-
( ) (/dev/hdal) , - /dev/hda2.
:
/ -
_/bin
_/dev
_/etc
_/home
_/mnt
_/var
_/root
/sbin
Red Hit Linn ( 11 Red Hat Sofbiare
/tmp .
. 4 (. 4.5), - Linux.
, Red Hat Disk Druid, . - fdisk Disk Druid. - . Disk Druid ( ).
Windows- - -
Linux. ,
2048 , Linux - 600 . , 600 - 64 -
.
536 ( Linux Native), 64 ( Linux
hda6hdbl
64.: IK 3020
1222
Linux swapLinux nativeLinux native
Ma t 78M28/S) I 621/ 64/! 1222M
Fl- F2-AJtllrS2*. v i.W
. 2.. Disk Druid
54
-
Swap). /, .
Windows- (, /mnt/disk_c) Edit. , (. . 2.3).
2.3 ,
8.. .1632
64... 128 128
,
6432
,
.
. 2.3. .
,
( Linux Swap), , . , Windows-.
Add () , (. . 2.3).
Windows. , , ,
.
, -
. -
/mnt. , Windows- win /mnt, Is /Hint/win.
/home /var , - -
. /home . ( ) . , , -
, - :
,
.
(. . 2.4). , -
. -
: -
.
55
-
. 2.4.
-
Linux, -
-
-
,
. -
-
, -
-
.
-
.
.
, .
.
( ), . - .
ISA NE2000, a PCI - NEY2KPCI (NE2000 PCI). IRQ,DMA, /. PCI !
.
, .
, -
. -
? , , , , , .
, ,
Windows-. .
. ,
.
.
(. . 2.5). - /dev/lpO Linux LPT1 DOS, /dev/lpl LPT2
56
-
:
What device is your printer{note that /dev/lpO is equiv-
. ' . : ' Printer Bevies:
(tuto-detected ports:/deu/lpO: Detected/dev/lpl: Not Detected/dev/lp2: Not Detected
1
^^ p^55!!5_connected toalent to LPTl:)?
li: : I
.. ,
.
SMB-,
IP-- ( Windows ,
-
), , ,
,
. 2.5.
,
( , ). (Fix stair-stepping of text).
,
:
, LF, Linux , -
( CR). -,
, LF CR.
.
root. root (-) -. root Linux Adminisrtator Windows NT (2000/XP). - , -
, .
6 . .
- 123456, qwerty, password .
.
(. . 2.6). MD5 (Use Shadow Password Enable MD5 Password). authconfig.
-
, -
.
-
, ..
-
Windows, -
(MBR) Linux .
. 2.6. LILO
LInuxLOader (LILO) Linux -. , : MBR Linux. Windows 9x, MBR.
-
.
-
-
(label). LILO , -
-
. LILO :
LILO boot: Linux, linux Enter,
Linux (default). DOS /dev/hdbl dos. Tab.
XFree86 (X Window) X Window UNIX-
. -
(MIT) UNIX-. - UNIX - X Window.
The boot manager Red Hat uses can boot other operatingsystems as well, You need to tell me what partitions youwould like to be able to boot and what label you want touse For each:6F themi' - : : : v : : / ' '
COS 16-bit >=32Linux native
. 2.7. LILO
58
-
, (DavidWexelblat) MIT X Window i80386-Pentium IV . XFree86, , , 86 (Linux, FreeBSD ). XFree86 XFree86 Project,Inc. X Window . 20 .
, .
. .
, Custom - . , -
.
.
, -
, , .
, ,
Standard VGA 640x480 . , Linux Red Hat 6 AGP.
, Red Hat7.x (8.x) XFree86 . , AGP , PCI.
! .
2.2. Linux Mandrake Linux
Mandrake. . 2.4 . - 128 10...20 , . -
Linux Mandrake 350 . , 1 -.
2 , , .
Linux Mandrake 2.4
,
,
Pentium32650 VESA 2.0
Pentium 166 642048 VESA 2.0
59
-
.
, ' - -
, Red Hat.
Linux Mandrake (. . 2.8) Red Hat. . ( Mandrake 9) .
, . ,
: -, -
. -
-
,
.
-
, -
,
(. . 2.5). , -
-
? Mandrake 9 : .
. 2.8. Linux Mandrake
2.5
,
,
+ . Mandrake 7.2 Linux
.
(. . 2.6). 2.6
(Workstation) (Server)
(Development)
http, ftp, mail .. -
60
-
--
SCSI. SCSI-, Yes .
.
SCSI (Small Computer System Interface) . -
,
. SCSI , (), , , -
, , SCSI.
Linux h t n drake" , -
Miscellaneous.
, -
, -
(. . 2.9).
: -
, -
(- ), , -
supermount (-
. 2.9. Miscellaneous CDROM, Floppy), . /tmp , numlock.
Linux Linux Mandrake - DiskDrake. DiskDrake PartitionMagic (. . 2.10) , Red Hat Disk Druid, .
Linux- Windows-( ) Resize. - , , 2 (2048 ) . 2 Mandrake ,
.
Create. Linux native (. . 2.7).
61
-
256 () , -
-
, ,
-
. -
(Linux swap). -
(Done)
.
, -
Linux Mandrake ( - ) --
. -
( -)
, , Extension CD, Applications CD, 2nd Applications CD, (. . 2.11). , (. 2.12). , , , .
( ), - (Individual package selection).
. 2.10. DiskDrake
2.7 ,
3264
128256
,
1 28 64 128
6432
. 2.11. -
. 2.12.
62
-
.
,
(. . 2.13).
( .), -
.
, -
() (). -
, .
,
, , .
( , ) , .
.
. -
. -
. IP-, , , DNS- . - . -
, ...
Red Hat Linux. ( root) - .
,
. root'oM .
.
. LILO, LILO Red Hat Linux.
.
. ,
High Frequency SVGA 1024x768 at 70 Hz. , Extended SVGA 800x600 at 60 Hz. - ! - . .
.
Linux. , Linux , ,
.
, !
63
-
2.3. Linux Intel 810 , Intel 810,
, , .
, Intel 810 / .
. 1810 - Windows 9x/ME/2000/XP, Linux , .
2 :XFCom_i810-1.2-3.i-386.rpm - -I810Gtt-0.2-4.src.rpm agpgart.o
Intel, URL:http://support.intel.com/support/graphics/intel810/agreeRPM3.htm http://support.intel.com/support/graphics/intel810/agreeRPM4.htm .
roof.1. gcc glibc ( ).2. , /etc/lilo.conf,
append="mem=127M" label="linux".Mem=127M , , 128 .
3. .4. : rpm -Uvh XFCom-i810-glibc2.1-1.0.0-rh60.i386.rpm.5. agpgart.o: rpm rebuild I810Gtt-0.l-4.src.rpm.6. :
, .
/ u s r / s r c / M a n d r a k e / R P M S / i 5 8 6 / i 8 1 0 G t t - 0 . 1 - 4 . 1 3 8 6 . r p m ( / u s r / s r c /redhat/RPMS/1386/1810Gtt-0 .1-4 .1386. rpm Red Hat).
7. : rpm -Uvh 810Gtt-0.l-4.i386.rpm.8. : In -sf /usr/XHR6/bin/XFCom_i810 /etc/
Xll/X. / e t c / X l l / X F 8 6 C o n f ig (. -
2.1).
JIumum 2.1. /etc/Xll/XF86ConfigSection "Device"Identif ier "1810"
EndSection
Section "Screen"Driver "svga"Device "1810"Monitor ""
Subsection "Display"Depth 16
64
-
Modes " 6 4 0 x 4 8 0 " "800x600" "1024x768" "1152x864""1280x1024" "1600x1200"
Viewport 0 EndSubsectionSubsection "Display"
Depth 24Modes "640x480" "800x600" "1024x768" "1152x864" "1280x1024"Viewport
EndSubsectionEndSection
X. Ctrl+Alt+Backspace. X , startx .
.
X Window : X, X ( ), X.
2.4.
, , .. -
-
. -
, Linux Windows . Linux FAT/FAT32 Lin4Win, , .. Linux .
Partition Magic v5 (6, 7). Linux Mandrake 7.0 , Partition Magic
. fdisk Linux, Linux.
-
:
1. Windows 9x Linux.2. Windows NT, Windows 9x Linux.
2.4.1. Windows 9x Linux ,
Windows 9x, Linux. , Windows 9x MBR(Master Boot Record) , Linux , . :
LINUX! - Windows, Linux .
3 . 851 65
-
, Windows Linux :1. Linux. , .
root . ( reboot).
2. : loadlin .
3. loadlin: Linux, Windows, . Linux .
(Windows9 + Linux) LILO (Linux Loader). - - , -
. Linux , - LILO MBR.
Linux ( , Linux) MBR, LILO, fdisk /mbr. fdisk Windows.
2.4.2. Windows 9x, Windows NT/2000 Linux
NT Loader. Windows 2000 NTFS, a Windows 9x FAT/FAT32. ! -, Windows 95, , Windows 2000. Windows 98 Windows2000 .
Linux Windows 2000. , Linux 1024 ! 1024 - - Linux , 1024, . Linux , , Linux 1024 Linux .
:
Linux. LILO MBR Linux . Windows2000 Recover Commandmode. Administrator. - fixboot fixmbr Windows 2000 .
'
.
fixboot fixmbr Windows 2000 (MBR). fixmbr fdisk /mbr Windows .
66
-
Linux root. /etc/ l i lo .conf, -, joe/etc/ l i lo .conf . , , /dev/hda. - , Linux, ,/dev/hdbl.
,
.
Windows 2000 . Linux /linux.Idr:
dd if=/dev/hdcl bs=512 count=l of=/bootsect.Inx :
mcopy /bootsect.Inx a: Linux reboot Windows 2000. -
linux.ldr : read-only. boot.ini
:\ l inux. ldr="Linux" , Linux
NT Loader.
Linux - Microsoft Windows Windows 9x, NT, 2000. Windows, Linux. NT Loader, a LILO. :
Linux Windows, Windows -Windows 9 NT/2000 - - , , Windows 9x. NT Loader. NT Loader.
2.4.3. loadlin ,
Linux - DOS Windows 95. Windows 98, loadlin - MS DOS. , - loadlin FAT32. DOS (format a: / s ) autoexec.bat loadlin. Linux - Windows 98, Me Windows 2000/NT .
loadlin , - Windows MBR ( LILO), Linux . loadlin ( . 2.8):
67
-
loadlin Hflporoot=KopHeBan_OC
loadlin @__
loadlin 2.8
root= _
@__
, .
, ,
( ). - Linux. lilo ( lilo) , root=/dev/hda3, .
vga=normal , loadlin ( !) , ,
:
c:\loadlin\loadlin.exe c:\loadlin\kernel\vmlinuz root=/dev/hda3 vga=normal
:\loadlin\loadlin.exe @param.1stParam.1st:c:\loadlin\kernel\vmlinuz root=/dev/hda3 ro vga=normal
.
Linux DOS. config.sys (. 2.2).
2.2. config.sys[MENU]MENUITEM=DOS, Load DOSMENUITEM=LINUX, Load LinuxMENUDEFAULT=DOS,5[LINUX]install=c:\loadlin\loadlin.exe c:\loadlin\kernel\vmlinuz root=/dev/hda3 ro vga=normal[DOS]; , DOS,; .. ,
; config.sys
68
-
2.5. , , .
linuxconf. . 2.9 . 2.10 - Linux Mandrake Linux Red Hat.
- Linux Mandrake 2,9
DrakxconfDrakbootDrakgwDraknetDrakfloppyDraksecDrakxservicesDiskdrakeAdduserdrakeKeyboarddrakeMousedrakePrinterdrakeNetconfModemconfXFdrakeXdrakresXconfigurator
(1)
LILO -
*
X
X Window
- Linux Red Hat 2.10
Setupcontrol-panelModemtoolPrintertoolNetconfXconfiguratorAuthconfig
X Window
-, -
, linuxconf setup drakexconf.
2.6. Linux -
, -
.
:
69
-
- .
.
Windows -: setup.exe, ( ), .
, Microsoft: , .
Linux - : , RPM, , - . .
2.6.1. : ,
, .
,
RPM (apt-get). , . ,
, : , tar.gz tar.bzl. , : tar, gzip.
: -
, . , prg-2.00.tar.gz . :
gunzip prg-2.00.tar.gztar xvf prg-2.00.tar
prg-2.00.tar, .
tar , ( ). v , . -
f . - tar -, f, , .
gz, a bz bz2, ():
bunzip prg-2.00. tar .bzbunzip2 prg-2 .00 . tar .bz2
, , tar ( ).
tgz. :
tar xzf p r g - 2 . 0 0 . t g z
70
-
z
gzunzip. , tar gzip.
.
() , - . :
cd prg-2.00 README
:
. /configuremakemake install
. ,
. ,
, .
,
. -
-
./configure. ./configure Makefile, ( , ) make.
(make) . , -
.
make install -- . -
/usr/bin, - Makefile.
, -
.
2.6.2. RPM Red Hat
Mandrake rpm. RPM (Red Hat PackageManager) Red Hat. , Red Hat, , .
,
,
.
,
/ .
71
-
InstallShield, Windows, RPM ( .) , . ( ), , :
, , ,
, ,
, , .
RPM Linux (Red Hat,Mandrake, ASP, Black Cat.) - , .
, , -
, . . ,
. Linux .
, sof tware-1. 0-1.1386. rpm :software ,1. ,1 ,1386 Intel 386.
-
. , ,
, .
, , , -
.
. , -
. -
, ,
.
, , . -
. -
, Intel 386. Intel, 80386DX ( ). 80486, , 80586 (Pentium), , -. CISC ( 86) :
1386 Intel 80368DX;i586 Intel Pentium (MMX), AMD K5 ();1686 Intel PPro, Celeron, , PHI, PIV.
:
rpm -1 .rpm RPM -
, ,
.
72
-
( ), , , RPM - . ,
-
.
, . ,
, ,
: .
: h v. , .
#. -, :
rpm -ihv software-1.0-1.1386.rpm ,
FTP:rpm -i f tp://somehost .domain/pub/package.rpm
:
rpm - ,
,
.
,
, . -
.
- , .
nodeps. . , postfix, sendmail. - .
(Mail Transfer Agent) - - (postfix sendmail). - postfix . sendmail - postfix , . :
rpm -e nodeps post f ix ,
, ,
sendmail ( ). : -i.
-U. , , -
, ,
, .
73
-
, h. :
rpm -Uhv ,
rpm -Uhv software-1.1-4.1386.rpm #.
:
rpm -qa | less , -
:
rpm -qa I grep _ :
rpm -qi , :
rpm -ql
2.6.3. gnorpm, kpackage, apt RPM
, , , .
,
. ( X Window) -- , kpackage KDE, gnorpm . gnorpm, - . RPM , . -
- gnorpm (. . 2.14). gnorpm:
1. .2. .3. .4. .5. RPM.
- ^Communications! Databases
E h 3 Development- 3 Editors
"^Emulators3 File tools
3 Graphical desWop^Graphics
. 2,14. gnorpm
74
-
- .
CD-ROM CD, (. . 2.15).
(^Communications{^Databases(^Development03File toolsgjGames
ArcadeBoards
. 2.15.
,
,
, .
(. . 2.16).
chromium ' " ' ; - - ' : . ' "'-".".' : ::.: ' " ": : ' ' ' ' . ,;';.' .'.;- ''*/..' ' : : ' :: '-1'1 . ; s '- ' '''". ':: - : / . 1
. chrorriiurrh0.9,64mdk;: V1 :. , : . . . . . ";
: 1959129 : :':f:
; rebuild, man drake soft com :: ; 03 06,25:35 GMT 2000: LinuifrMandrake "; ' '3 : MandrakeSotl
. Un-j^Mantffske :Team;.;
:..::i:S:
1 URL. http:^4'sv^rgi3fc!&f3{)our-,et3rf>f'36ftvvars;'cl'i! :^-i^ff^ . '
: You are captain of the cargo ship Chromium|| supplies to our troops on the front line. Your si 1 robotic fighters which you control from the rell| vessel.
DJcJsjPath ^ ;
^
.8.., responsible for deliver ng iS;hip has a small fleet ofrtive safety of the Chromium _]
...
~ - . 1 1 ^H ! - ' 1 1 ""':': 1 i:
/ I X ' ? :i ,__i - . , : : ". . ,\ . . ; ' ; _ ___J,:.:,,. ,.f/ \
.;.....:: ~ ' " ,..,.., ......, -..., ^ ^; ....^ ....^ .^ -.....t t . . ;.
. 2.16.
chromium
1913 00:00:11
1 :
: 00:00:001959129
:00:QO:11 :
. 2.17.
-
, .
-
:
-
-
75
-
. ,
(. . 2.17). .
gnorpm - .
(. . 2.18).
. 2.18.
. : ' . ' . ' ' :
| cttromtufri-Q>9,6-;l fndK ~; .
;
X'.
-
(. . 2.19). -
RPM . 19. KDE
-
, , kpackage(. . 2.20). gnorpm.
( rpm).
APT. APT . APT Debian Linux. Red Hat- (, apt-get Alt Linux, Red Hat Linux) . apt-get. apt-get :
apt-get [] [] [ . . . ] . 2.11.
. 2.19.
apt 2.11
update
,
/etc/apt/sources.list. - FTP-. :/mnt/cdrom/RedHat/RPMS/ftp://ftp.redhat.com/pub/
upgrade
. -
, /etc/apt/sources.list. - ,
, , -
. update
76
-
. 2.11
dist-upgrade
install
remove
check
clean
upgrade. , .
( ) . : . , , /rnnt/cdrorn/RedHat/RPMS/package-1.33.i386.rpm. apt-get install package. , /mnt/cdrom/RedHat/RPMS /etc/apt/sources. list
. -
, .
apt-get clean. /var/cache/apt/archives /var/cache/apt/archives/partial
|
B"@t|RPMEl- ^Amusements! - 81 Games
38 Maelstromi~ fortune- modI -'91 gnome-games!-3Sgnuchess
261123B5K8080K
3.0.1-171.0-161.4.0.1-4
1370K 4.0.pl80-8198K
1072816K
2.0-154.2.3-24.3.2-2
B-@|Graphlcs|-4Sxloadlmager^xscreensaver
| - S| Archiving| I !- 38 cdrecord
241 4.1-216600K 3.33-4
27K 1.40-1427K 2.0.3-1
886 1.10-468 2.4.2-2391 1.00-17
i.is I ^'!
. 2.20. kpackage
. 2.10 . .
apt-get install rpm -i, : apt-get . rpm .
77
-
apt-get . ?, *. , ,
POSIX. , *, ,
, , .
remove.
apt-get -f -d. apt-get , -- ,
. : force-yes. apt-get - - . ,
, ,
.
2.6.4. , RPM -
, . src . :
rprn rebuild software-2 . 00-1 . src. rpm, software-2.00-l.src.rpm
. , -
, .
, ,
Linux.
2.7. .
, Reset. - -
, , -
. Linux, - .
( ) - ,
. -
- , ,
Reset, , . ( UNIX Linux) sync, .
-
shutdown.
78
-
: , . , ,
shutdown . ,
. , 19:00 :shutdown -h 19:00 The end of a working day
: The end of a working day. :
shutdown -h now -h ,
, a now , . -h -. :, +N, N , , .
now , +0 . halt reboot
. halt , shutdown -h now, areboot shutdown -r now.
,
(sync) . - , :
The system is halted Ctrl+Alt+Del shutdown -r
now. , , /etc/inittab.
79
-
3
3.1. Linux . -
, ,
( ). Windows, ,
, , ,
.
Linux : - () , ( , ...). :
localhost login:Password:
.
Login incorrect . , -
. -
, .
Linux . , .
.
Alt + F2 . X Window, Ctrl + Alt + F2 (. . 3.1).
X Window 3.1
All + FnCtrl + Alt + FnAlt + F7Ctrl + Alt + Backspace
X Windows X Window X Window
80
-
,
, exit. - logout.
3.1.1. login Linux-.
login [] []. , . login , . 3.2. (root) su.
login 3.2
-f
-
-h
.
Linux UNIX
, getty. getty ,
login .
3.2. passwd.
. .
root, , , . ,
123 . , , -
, .
. -
, .
- , (- root) passwd .
3.3. Linux - :
root, , . ,
Linux , .
root , . ,
, -
, .
, ,
81
-
su, - .
.
adduser . -
. , (, ,
). - passwd. - (man passwd). , -
.
.
- , -
,
,
- .
, .
:
(username) -- , . , , , -
( - ). , .
(User ID) - (UID). UID, . 0...65534 . 0 root. , . -
, (1000...1100) -, (2000...2100) . . -
, , -
.
(Group ID) - (GID). ,
(native group) . -. 0 root.
(password) . (full name)
() , , Ivan Ivanov. 82
-
: .. - .
(home dir) // (, /home/den). - .
(login shell,) , . - () . : ash, bash, csh, fcsh, ksh.
/etc/passwd :username:password:UID:GID:full_name:home_dir:login_shell
/etc/passwd:root:x:0:0:root:/root:/bin/bashbin:x :1 :1 :b in :/b in:/sb in/nologindaemon:x :2 :2 :daemon:/sb in :/ sb in/nolog inden:x:500:500:den:/home/den:/bin/bashevg:x :501:501: :/home/evg:/bin/bash
,
/etc/passwd *, /etc/shadow, . -
. /etc/passwd .
/etc/shadow . MD5.
.
DES 3DES, . , -
(Shadow Passwords) MD5. .
/home , .
/root. cd ~.
.
Linux , , ~ ().
3.4. .
, , ,
. , user - ivanov petrov, sidorov sgroup. - ivanov report users
83
-
. report - sidorov Permission denied.
,
. .
. 4. - /etc/group. :
_::GID:_ . /etc/group -
3.1.
3.1. /etc/grouproot:*:0:local:*:100:den,operator,ivanguest:*:200:dialup:*:250:victor,evg
root root. 100 . den, operator, ivan. quest - guest. dialup victor evg.
, , bin,mail sys. - . . -
groupadd. , , /etc/group, , - .
3.5. userdel.
linuxconf. - linuxconf , : , .
.
usermod. : ( ) linuxconf. , , linuxconf ( userconf Linux Mandrake). , UserAccounts ( userconf, ). UserAccount Configurator Normal (. . 3.1) User Accounts (. . 3.2), Add.
84
-
TOs package allows you to adu'deietei
:: Mormal: Spe
. 3.1. User Account Configurator
i must specif at leas! the tOBin name :
and the full name1":; .^ .Sirisi^ KfcP^
|Ba--.eirifo j Dl
LOS
Fiilt name
gro-
Com
Use
IYou can edit, add; '
denftpgamesgopherhtdigIp
Denis 501FTP Usei 1 4games 12gopher 13
101Ip 4
denftpusersgopherhtdigIp
. 3.2.
. 3.3.
1
1
85
-
3.6. -
, UNIX. - , . -
, , .
: . UNIX, Windows Microsoft Windows2000, , .
quota (. ) - . , ,
.
(inodes) - (blocks). , .
inodes blocks , . , -
, -
, .
:
1. , .2. (softlimit).3. (hardlimit).4. , -
.
,
, .
, .
( 7 ) .
. Linux 1024 . , , .
quota support Filesystem - , .
/ u s r / s r c / l i n u x make menuconfig, a :
make dep; make bzlmage; make modules; make modules_install , -
. (. . 3.4) ( / e t c / l i l o . c o n f , - -- . . 18). . 18.
. 3.4 , .
86
-
CrootSdhsilabs uin_c3 liloWded linux
ed my_linuxffd linux-nonfb_64M
fldded failsafeed windowsed floppy
CrootSdhsilabs win_c]e |
> IfrS
. .4. LILO
. 4.11 - LILO . 18.
-
Turning onuser and groupquotas for localfilesystems, , .
-
.
, -
-
-,
. /home ( ), /usr (- ) , , /var. /etc/ f stab :
/dev/hdal / ext2 defaults/dev/hda4 /home ext2 defaults ,usrquota/dev/hda5 /usr ext2 defaults, usrquota,grpquotanone /proc proc defaults
usrquota , a grpquota . usrquota (grpquota) =, ,
,
. quota.user quota.group .
, , usrquota=/quotas/user.quota. .
, -
. quotacheck. , ,
.
, , :
# quotacheck -avug -
. -
, fsck. , -
, quotaon -avug .
87
-
[root@dhsilabs /root]** quotacheck -avugScanning /dev/hda5 1/1 doneChecked 6730 directories and 109842 filesUsing quotafile /quota.userUpdating in-core user quotasJsing quotafile /quota.groupUpdating in-core group quotasScanning /dev/hda8 C/mnt/ext2] doneChecked 7 directories and 11 filesUsing quotafile /mnt/ext2/quota.userJpdating in-core user quotas[rootSdhsilabs /root]* I
root -
-
,
.
quota,
,
-
-
-
, -
repquota - -
-
-
.
quotacheck -avug , . 2 , .
, ,
(), repquota -ua (. . 3.6).
. 3.5. quotacheck-avug
Croot@dhsilabs /root]** repquota -uaBlock limits
UserrootbindaemonIPnewsuucpftpnamedapachexfshtdigmysqlpostfix195densynthetic 10001001
used 1682876
3488
276560
42412
618431660
4428 107320
808624072
soft000000000000000000
hard000000000000000000
User usedroot 439980den 4trootSdhsilabs /root]**
File limitsused soft hard grace
Block limitssoft hard
0 00 0
113629439212144
215332570
172013737011
File limitsused soft hard grace16 0 01 0 0
. .6. repquota -ua
88
-
3.6.1. () edquota.
edquota - (. . 3.7), -g. , $EDITOR, . , hard soft.
Quotas for user den:/dev/hda5: blocks in use: 107320, limits (soft = 0, hard = 0)
inodes in use: 1720, limits (soft = |, hard = 0)/deu/hdaS: blocks in use: 4, limits (soft = 0, hard = 0)
inodes in use: 1, limits (soft = 0, hard = 0)
Vtmp/EdP.aaGSNQc" 5U 237C
. .7. edquota -u den
# edquota -u den :
quotacheck -u quotaon -u
:
quotacheck -u /mnt/ext2quotaon -u /mnt/ext2
quota .user quota.group. - () , .
, , -
. soft , - , hard . - ,
.
edquota -t:# edquota -t
89
-
Time units may be: days, hours, minutes, or secondsGrace period before enforcing soft limits for users:/dev/hda4: block grace period: 50 minutes, file grace period: 50 minutes
, -
.
/dev/hda4: blocks in use: 1024, limits (soft = 1,hard = 0) , . , Linux 1024 . 1 .
inodes in use: 94, limits ( sof t = 0, hard = 0) inode (, , (pipes)) .
,
. -
. :
# edquota -u , :
# edqouta -p ,
.
/. , user, ,
den. :# edquota -p den user
quota - :
quota [-guqv]quota [-qv] -u quota [-qv] -g
-v ,
, ,
, .
-q , .
-g , .
- ,
.
quota ., user -
:
Disk quotas for user user (uid 1 0 0 2 } :Filesystem blocks quota limit grace f i les quota limit grace/dev/hdb3 1024* 1 0 none 94
90
-
user, , den. ,
:
Disk quotas for user root (uid 0 ) : none -
.
, .
3.6.2. -
, ? edquota soft hard 0. - .
3.6.3. linuxconf linuxconf. -
linuxconf Filesystems -> Set quotas default(. . 3.8).
WevfhdaS
-User default;;
Disk .space soil M::
giace period
f-tes soft (rift :
H jsfliaee period .'\.*:-. Qraupdeiaut
.- .8. linuxconf
, -
. -
(grace period), . -
. User accounts -User accounts , - (. . 3.9).
91
-
You must spectfy at feast the login name.1! :
Disk space hard foist
. 3.9.
Default, - , .
No limit . .
(NFS) quota , . rquotad, - . usrquota grpquota NFS-. quota - - rpc.rquotad.
3.7.
(. 3.2). /sbin : chmod 711 /sbin/nu.
3.2. # !/bin/bash# nu (New User) .I
92
-
GROUP=100# SHELL=/bin/bash# HOME=/home# ()EXPIRE=30# DAYS=0# 5 WARN=5WHOAMI= /usr/bin/whoami
if [ $WHOAMI!="root" ]; thenecho "Access violation."exit 1
fiecho -n "Enter new name: "read USERNAMEecho -n "Enter full name: "read FULLNAMEadduser -c "5FULLNAME" -d $HOME/$USERNAME -e $EXPIRE \-g $GROUP -S $SHELL $USERNAMEpasswd -n $DAYS -w $WARN $USERNAMEpasswd $USERNAME
93
-
Linux
4.1. . , DOS
DOS - . Linux . , Linux, . , , , . -
-- . , --
, .
Linux , , . -
.
Unix- . Linux ext2 (ext3) ufs. Unix :
1. (boot block).2. (superblock).3. () (inode).4. (data block).5. (directory block).6. (indirection block).
Unix. .
.
, .
, .
94
-
Linux
() , -
. -
( inode) -.
-
.
,
. 4.1. . . ,
, .
ext2 (. . 4.1):1. .2. .3. .4. .5. .6. .
, ,
. ,
: -
.
() . . -
, -
. -
.
, .
, Linux :
1. .2. .3. .4. .
.
/dev. , /dev/ttySO - (1). , , () .
,
( (/dev), ). , , , .
95
-
Linux
, -
. ,
.
254 . - , : / \ ? > < | " *
,
. Linux -, file.txt, FILE.TXT File.txt -, . -
Linux . , DOS 8+3: 8 3 . ( Windows) - .
ext2: 4 . 2 . 255 . 1024 . 1 4096 .
4.2. 4.2.1.
,
, -
.
, ,
.
cat. :$ cat f i l e . t x t
, , -
f i le . txt . more less:
$ less f i le . tx t :
$ cat > f i le . tx t /,
. 5. () - f i le . txt. , , f i le . txt. Ctrl+D. , ,
96
-
Linux
. , ,
, .
Linux , :
$ [] :
$ fi le.txt fi le2.txt$ f i le . txt /home/user/text/
f i le . tx t fi le2.txt. . - f i l e . tx t /home/user/text/ .
, ( . ) , ( ~ ) . - ( . ' . ) . - ( / ). . 4.1.
4.1
-
-
-d
-I-1-
-S
-11
-V
-X
.
,
( )
( ) ,
(verbose).
, , ,
mv . :
$ mv file.txt f i le2.txt f i le . tx t f i le2. txt .
:
$ mv ~ / * . t x t /tmp
/tmp. mv: -
-
, .
4 . 851 97
-
Linux
rm. : $ rmffle2.txt. . .
, ( ) .
, rm ,
-f. -f , , -
, .
, .
, .
- -
, .
- , rmdir, - .
-i - .
locate . , , ,
:
$ locate passwd
,
(), which, ().
$ which awk ,
, .
Linux: Tab. .
Tab . , . , -
PageUp PageDown.
4.2.2.
Is. DOS dir, Is . is , , man Is.
98
-
Linux
pwd . .
DOS, mkdir, rmdir. , - .
. /
cd .
Midnight Commander Midnight Commander . , -
. Midnight Commander Norton Commander, (. . 4.2).
. 4.2. Midnight Commander
4.3. , ,
. ,
.
Linux . , . Linux : () .
99
-
Linux
Linux . - .
Is -i. :
. , text. - :
Is -i text25617 text
text In:In text words
, words text , text:
Is -i words25617 words
, .
.
In .
words, text. words, text, , . .
In -1. , , .
: "." - , ".." - .
, ,
. . -
, -
,
. , -
, .
Is -s, :Is -s text words
, Is -i, , text words . ,
Is -I text words:Is -1 text wordsIrwxrwxrwx 1 den group 3 Dec 5 12:11 words -> text-rw-rr 1 den group 12 Dec 5 12:50 words
Irwxrwxrwx 1. ,
text, words->text.
100
-
Linux
-
rwxrwxrwx.
. : -
, ,
,
, . ,
, ,
, .
,
.
$cwd , . :
echo $cwd"
4.4. Linux , Linux .
/dev. .
/dev. +, .
, -
. , N , , ttyN /dev/ttyl .. /dev/ttyN, . ( ) . 4.2.
hdxN sdxN . -, (E)IDE (ATA) IDE-: Primary Master, Primary Slave, Secondary Master, Secondary Slave.
4.2
TtyNmouse
audiomodemttySNIpNcuaNhdxNsdxNfdOstNnrtfNmdNethNnull
. /dev/modem /dev/ttySO . /dev/ttySO COM4 DOS
. , ttySNIDE SCSI , :, : /dev/fd1 SCSI FDC RAID
101
-
Linux
: , , , d. , /dev/hda Primary Master, a /dev/hdd Secondary Slave. N .
DOS : /dev/hdal.
4.5. Linux , .
.
Linux. , , . -
. 4.3.
//bin/home/usr/sbin
/var
/etc/dev/tmp
/mnt
4.3
,
, , ,
,
. , -
, /mnt
4.6. . ,
,
(), . Linux .
Linux extlfs, extSfs - Linux . .
, Linux -, . 4.4.
. 4.4 . Linux , . -
-
. . 18. , .
102
-
Linux
4.4
Minix Filesystem (minix)Xia Filesystem (xia)UMSDOS Filesystem (umsdos)MSDOS Filesystem (msdos)(*) VFAT Filesystem (vfat)NT Filesystem (ntfs)HPFS Filesystem (hpfs)(*) ISO 9660(*) /procExtended Filesystem (ext)(*) Second Extended Filesystem (ext2) Third Extended Filesystem (ext3)Network Filesystem (nfs)
Linux MSDOS msdos Windows Windows NTHigh Performance FS. OS/2 , CDROM
Linux
! msdos. 8+3 ( ). vfat. (), - msdos.
,
, , , -
. 2.4.8 :Ext3, ReiserFS, XFS.
, , -
/proc/f i lesystems. cat /proc/filesystems.
Ext3 (Third Extended Filesystem) ext2, - Ext3, Ext2. - . ext2 ext3, . -
ext2.RaiserFS . -
.
XFS , - Silicon Graphics (SGI) Irix. :
,
-
. ,
32 .JFS IBM AIX OS, -
OS/2, Linux.
703
-
Linux
40% . 32 . - , .
.
-
,
. .
.
JFS , , ,
, . XFS . -
.
,
.
ReiserFS , . -
ext3 ReiserFS.
.
, ,
.
,
.
. , ,
. .
.
. , -
. ,
, .
ext2. A :
mke2fs - - ,
.
. nikelfs . 4.5. , man mkeZfs.
, ,
fdisk. Linux . .
dd. - mount. . , ext2 - ext3. , / -
704
-
Linux
mke2fs 4.5
- _
-f _-1 _-
- _
-
-V
. 1024, 2048 4096 /. , mke2fs (. -)
.
. 5%
ext3 ext2, -. , ext2.
Red Hat 7.2 Mandrake 8.1 , , ,
ext3. ext3, ,
, .
,
. ext3 - ext2. , ext3 , .
, ext3 ext2, . ,
ext3, ext2-. .
:
(metadata) -- , (, ).
. : -
, -. (, ) mount. - , . -
, / - .
. -
. -
. - -
, .
105
-
Linux
. , -
,
, . 18. , ,
. 18, . .
ext3 , , - . -
. /usr/src/l inux make menuconfig. Filesystem ext3. , ext3.
.
ext3 2.4.7 . LinuxRed Hat 7.2 2.4.7.
:
make depmake bzlmagemake modulesmake modules_installmake install
, , ,
, . 18. ,
, .
-
. , ,
. .
. .
-
MBR. , - ( , Microsoft!) , , .
, Linux ( -) .
tune2fs -i 0 - 0 -j /dev/hdal
ext2, /dev/hdal, ' ext3. , , -
. ,
ext3. /etc/fstab, :
/dev/hdal / ext2 defaults,usrquota,grpquota 1 1
106
-
Linux
. ,
(/) /dev/hdal extl. extl ext3 . .
extZ-: tune2fs /etc/fs tab.
4.7. fdisk fdisk Linux
Linux. , . fdisk.
fdisk. fdisk - :
fdisk , -
, 683 . , - -
, .
, fdisk, /dev/hda. , -
DOS.I fdisk /dev/hdaComamnd (m for h e l p ) :
m. -
:
Command actiona toggle a bootable flagd delete a partition1 list known partition typesm print this menun add a new partitionp print the partition tableq quit without saving changest change a partition's system idu change display/entry unitsv verify the partition tablew write table to disk and exitx extra functionality (experts only)
p, n, q w. :
Command (m for help): pDisk /dev/hda: 16 heads, 38 sectors, 683 cylindersUnits = cylinders of 608 * 512 bytes
107
-
Linux
Device Boot Begin Start End Blocks Id System/dev/hdal * 1 1 203 61693 6 DOS 16-bit >=32M
, DOS- 60 (1 = 1024 ). - 203-. 683 , .. Linux 480 . ( ):
Command (m for h e l p ) : nCommand actione extendedp primary partition (1-4)P
( ). :
1. 4 .2. ,
, .
2 - Linux (Linux Native) (Linux Swap):
Partit ion number ( 1 - 4 ) : 2First cylinder ( 2 0 4 - 6 8 3 ) : 204Last cylinder or +size or +sizeM or +sizeK ( 2 0 4 - 6 8 3 ) : +80M
-- 2. 204. .
, .
+, ( + + ). .
Command (m for he lp) : nCommand actione extendedp primary partit ion (1-4)PPartit ion number ( 1 - 4 ) : 3First cylinder ( 4 7 4 - 6 8 3 ) : 474Last cylinder or +size or +sizeM or +sizeK ( 4 7 4 - 6 8 3 ) : +10M
fdisk Linux Native (81). Linux Swap (82). t, 1 .
:
Command (m for h e l p ) : pDisk /dev/hda: 16 heads, 38 sectors, 683 cylindersUnits = cylinders of 608 * 512 bytesDevice Boot Begin Start End Blocks Id System/dev/hdal * 1 1 203 61693 6 DOS 16-bit >=32M/dev/hda2 204 204 473 82080 81 Linux Native/dev/hda3 4 7 4 4 7 4 507 10336 82 Linux Swap
108
-
Linux
508...683 .
w , -
:
Command (m for he lp) : w
, ,
. -
, q., , -
1024. Linux , 1024. 1023. - , 1024, Linux .
4.8. Disk Drake Disk Drake
- X Window. Linux Mandrake, , . -
Partition Magic, -. , -
. Red Hat Linux Disk Druid. Disk Drake, , , .
, -
fdisk. , fdisk , ,
, fdisk. , fdisk , fdisk, Disk Drake, Slackware...
4.9. . /etc/fstab , ,
. -
() (CDROM, Floppy, Zip) ():
1. ( ), . ,
(), .2. , ,
.
109
-
Linux
3. (), . .
4. (), . mount, -
umount. ( ):
mount -t fs_type device mount_point fs_type mount -
,
. 4.6. 4.6
ext2 ext3Vfatjso9660Nlfs
Linux Windows CD-ROM NT Filesystem
(device). - , /dev/hdd. , , - (mountjoint). .
/mnt . , -
: :
mount -t v fat /dev/fdO /mnt/ f lopyy , -
vfat. CD-ROM -
:
mount -t iso9660 /dev/hdd /mnt/cdrom CD-ROM IDE
(Secondary Slave).
umount. , umount /rant/floppy :. , , /etc/mtab. mount , . 4.7.
mount 4.7
-
-
-
-W
-t
, /etc/fstab, , noauto /etc/mtab. , /etc
/ ( )
110
-
Linux
, , mount -a -t vfat VFAT. , - , /etc/fi lesystems /proc/f ilesystems.
,
, /etc/f stab. :
device mount_point f s_type options __ _:
device , ;mount_point ;fs_type ;options (. . 4.8);__ (1), dump -
(). (0), ;
_ , -
.
fsck, . , .
,
, , .
. -
(1), , .
(2), - , -
. (0) , .
( Floppy, CD-ROM, ..).
/etc/fstab 4.8
exec
noauto
auto
rw
user
nouser
defaults
() ,
() mount
-,
.
/. / / .
,
111
-
Linux
-
. -
, .
vfat: , extl - .
.
noauto, - - mount. mount - , ,
. -
, , , -
- ,
.
. user
.
noauto . / e t c / f s t a b 4.1.
4.1. /etc/fstab/dev/hdal / ext2 defaults 1 1/dev/hda2 /den ext2 defaults 0 2/dev/hda3 /home ext2 defaults 0 2/dev/hda4 swap swap defaults /dev/fdO /mt/floppy vfat noauto, /dev/hdd /mt/cdrom iso9660 noauto, none /proc proc defaults
,
/ , /dev/hdal ext2 - defaults, . , , -
,
, .
,
/dev/hda2 /dev/hda3 ext2 /den /home.
,
, .
(swap). , , ,
.
7 7 2
-
Linux
(Floppy) CD-ROM. /etc/ f s tab /, (). / .
, , , -
vfat , . ,,
??? ??????????. ( )
iocharset codepage. vfat :codepage=866, iocharset=koi8-r
4.10. () Linux -
: , ( ) - . 128...256 , , .
. , Linux , : .
fdisk ( 82) - mkswap, . - mkswap :
mkswap - , 32
( - ):mkswap - /dev/hda3 32768
,
, ,
.
/ s w a p / s w - f i l e ( 32 ) dd:dd i f=/dev/zero o f = / s w a p / s w - f i l e bs=lk count=32768
.
/dev/zero /swap/sw-file. , (ANSII- 48), NULL (ANSII- 0). 1 K6(bs=1k), 32768. , 32 , NULL. - , -
fdisk .
:
mkswap /swap/sw-file 32768
113
-
Linux
,
, :
mke2fs -m 0 /swap/sw-f i le:
mount -t ext2 / m n t / d i s k l / s w / s w - f i l e -m ,
( 5%). () , .
swapon - ( /etc/fstab), swapon . swapon - -. /etc/re.d/rc.sysinit , - SysV RedHat, Mandrake, Debian ( RedHat Mandrake ,
) /etc