| ������� ��������� | ||
|---|---|---|
| ������� 1.0 | ���� ���������� | ��� ���������: rhw |
| �������� ������ | ||
This document is covered by the terms of the GNU General Public Licence (GPL), and all terms and limitations therein apply.
��������� ����� �� ������� ������� ����� ������ ����������� © 2000 SWSoft Pte Ltd. ��� ����� ���������������.
���� �������� �������� ������ ������� Linux HOWTO.
��������� ����� �� ��������� Linux HOWTO ����������� �� �������, ���� ���� �� ������� ����. ��������� Linux HOWTO, � ����� �� ��������, ����� ���� �������������� � �������������� ��������� ��� �������� �� ����� �������� ���������� ��� �����������, ��� ������� ���������� ���� ������� �� ��������� ������ �� ���� ������. ������������ ��������������� ����������� � ����������; �� ��� ��� ����� ����� ������ � ����� �������� ������ �� ����� � ����� �������������.
��� �������� � ����������� ������, ����������� �� ���������� Linux HOWTO ������ �������������� ���� �������� �� ��������� ������. ��� �������� � ����� �������������� ������� ��������� �������������� ����������� �� ��������������� ���������� HOWTO. ���������� ����� ��������� ������ ��������� ������������ ���������� � ������������ Linux HOWTO � ������� ����� ��������� �� ������ ������������ ����.
�� �� ������ �������������� ��� ���������� �� ���� ��������� �������. �� ��� ���� ��������� ��������� ����� � ���� ������������� � ���� ������ ��������������� HOWTO. ���� � ��� �������� �������, ����������, ���������� � ������������ ������� Linux HOWTO �� ����������� �����: <linux-howto@metalab.unc.edu>, ��� � ������������ �������� �������� Linux HOWTO �������� SWSoft Pte Ltd. �� ������ <linux-howto@asplinux.ru>
� �������� ���� ������ � Linux � �������� ����, � ���������� � ���, ��� �� � ����� ��������� ��� ������������������� �������� ����, ��� ��������� � ������������ ������ ���� Linux. ������, ����������� � ���� ���������, ����������� � �������������� �� ���� ��� ��� �� ���� ������, ��� � �� ������ ������ �������, ������������ �� Internet. ����� � �����, ��� ������������ ��� ��� ���� �����������, ������� �������� ����� ���� ������ ������ � ���� ������.
�� ���� ������ ���������� RedHat Linux 4.1, � � ����������� ������ ���� ����������� ��� �������� �������, ����������� � ���� ���������. � �������� ��� ������ � �� ��������� ������� ������������ Slackware, � ����� �� Debian. ��� ����������� ����������, ��������� � ��������� �������������, ����� ��������� � ���� ���������.
![]() | ������ ������� � �������� ��� ������ � RedHat 4.2, �� ������� ������ ���������� �� ����������� ���������� ��������. � ���� ��� �� ���������, � ��� �������� ��������, ������� �� ������ ������ � �� ���� ���� ������� �������� ����������������� ���� ������� �� ����� �������. |
��� ����, ����� ������������ ������, ����������� � ���� ���������, � ��� ������ ���� ���������� Linux-�������, � ������� �� ������ ����� ��� root, ��� ��� ����������� �����, ��������� �����, ������� ���� ������ ����� ������������.
������������ ���� ����� ���� ������� ��� � ���������� ����������� �������, ��� � ��� ���, ���� ���� ��� �������� ������� �������� ��������� �� �������, ����������� ��-�� ���������� ����������� �������. �������, ����� ����������� ������������� �������.
� �����������, ��� � ����� ������� �������� ������ ���� ��������� � �������� /usr/src/linux. ����� � �����������, ��� ��� ���������� ����� ������, ����������� � ��� ������, �� ���������� ������ � ���� ��������.
���� �� ����� ������ 16 ��� ������ �������� ���, �� �� ������ ������������ �������� ����, ������� �������� ��� ������������� ��������� ������� ���� ������������. ��� �������� ������� �������� ���������� ��� ����������, �� �������� �������� ����� ������ �������.
����� ���, ��� ������������ ��� ���������, ��� ���� ��������� ����� ����������� ������ ������ ����������, ������ ���, ���� �� ���������� ������� ������� �������� ���������, ���������� ����� ������ �����������. ���� �������, ��� ����������� �������� ������� �� ������ ��� ���������� �� ��������� ������� (�� ������� ����, ��� ����������� � ��� �� 32 ��. �� ���������� � ������� ������� ������ ��� ����� ������� ����������):
N = [����� ��� � ����������] / 8 + 1
���� �� �� ������ ������� �� ��������, �� �� ������ ����� �������� �� ��������� �������:
������� 1. ������� �������������
| ����� ��� | �������� ������������ |
|---|---|
| 16 �� | 3 |
| 24 �� | 4 |
| 32 �� | 5 |
| 40 �� | 6 |
| 48 �� | 7 |
| 56 �� | 8 |
| 64 �� | 9 |
| 80 �� | 11 |
| 96 �� | 13 |
| 112 �� | 15 |
| 128 �� | 17 |
����� ����, ��� �� �������� ��� ���� �������� ������������, �������� ���� /usr/src/linux/Makefile � ������� ������, � ������� �������� ���������:
MAKE=make
� �������� �� ��:
MAKE=make -j N
��� N - ��� �������� ������������ ���������.
����� ��� ������� ���� ����� ���� ������� � ���� �������. ����������� �������� ������� �������� �������, �� ������� ��������� �������� ������ (������ ��� �������� ������� ext2)
������, ��������� ���� ����� ������ ���������, ���� �� ��������� ������� � ���� ������, � � �� ������������ �������� � ����:
�������� ������� ���� Ethernet.
�������� SCSI CD-ROM.
� ������ �������, ���������� ����� ���������� ���������, ������� �������� ������ ���� ��� ������� � ���� �������, �������� ���� �� ���������:
������� �������� �� ������������ �����,
������� �������� ���������, ������������� � ������������� ����� (����� ��� IOMEGA ZipDrive ��� JazzDrive, ��� BackPack CD-ROM), �
����� PLIP
��� ���� ����� ������, ��� �� �������� � ����, � ��� �������� � ���� �������. �� �������� ��� ��, ��� � ��� ������� ����. �������� �� ������ � �������� ���������� ������ �� ��������� ���� ������:
cd /usr/src/linux
make menuconfig
make dep clean modules modules_install zImage
����� ����� ���� �������� ����������� �������. ��� �������� ��������� ��������:
depmod -a
������ ����� ���� ���� �������� � ��������� �������� �������. � �����������, ��� �� ��� ����� ����������� LILO, ������ ��� ��� ������������ ���������, � ������� � ���� ����.
� ������������ ���������� ��� �� ������������ �������������� ��������� ��������� ������ ���� � ��������� ��������, ������ ���, ���� ��� ���� �� ����������, ��� ����� ����� ������ ������������ ������� ��� ������ �������������, ��� �� ����� �������. �� ���� ������� � ���� � ����� /etc/lilo.conf ���� ��������� ������:
image=/usr/src/linux/arch/i386/boot/zImage
label=new
alias=n
read-only
vga=ask
optional
����� �������, ��� ���������� ��� ���� ������� �������� ������� (������� �� ����� ��������, ���� ����� ����� ���� �� ����������), ��� ������� ���� ����������� �� ����� /boot/newlinux. ��� ��� ������� ������� ��������� ��� ������� ����������, � ������� ����� ����������� ����.
� �����������, ��� � ��� ���� �������� ������ � ����� /etc/lilo.conf, � ��� �� ��������� � ������������� ����� ��������� ��������� ����. ������ ��� ����� ���������� � ��������� �������� ��������:
lilo
����� ����� ��� ���� ������� � ������ �� ��������� �������� (��� ������� �� ����, ����� ����������� � ��� ����������):
����� ���, ��� ���������� � ���������� �������, ����������� � ���� �����, ��������� � ���, ��� �� ��������� ���, ��� ������� � ������� "������������ ���� ��� ��������� ��������� �������".
��������� �������� ������� ������������� Debian � RedHat ���������, ������� � ��� ��������� � ��������� ��������� �������.
������� � ������� � �������� root-�, �, ��� ������ ������ �������� ���������� ���������, �������� ���� /etc/rc.d/init.d/modules.init, ������� � ��� ���������:
# Modules initialisation.
# ������������� �������.
#
# Start up the module auto-loading daemon.
# ������ ������ ������������ �������
/sbin/kerneld
# Mount all currently unmounted auto-mounted partitions.
# ���������� ��� �������������� �������.
/sbin/mount -a
����� �������� ����� ����� � �������� root-� �������� ���������:
cd /etc/rc.d
chmod 755 init.d/*
cd rc3.d
ln -s ../init.d/modules.init 05modules.init
������ ������� ����� �������������, �, ���� ��� ������ ������, �� ������ ����� ��������� ��������.
����� ���, ��� ���������� � ���������� �������, ����������� � ���� �����, ��������� � ���, ��� �� ��������� ���, ��� ������� � ������� "������������ ���� ��� ��������� ��������� �������".
������ ��� ���� ��������������� ���� /etc/rc.d/rc.M �������� ��������� �������:
� ������ ������ 18 ���� ������, ���������� ���������:
# ����� ����������� ����� 15 ����� �������
# Screen blanks after 15 minutes idle time.
/bin/setterm -blank 15
����� ����� ����� ������� �������� ���������:
# Load the kernel module auto-loader.
# ��������� ����� ������������ �������.
/sbin/kerneld
�������� ����� 12 ����� �� ������� ���������:
# if there is no /etc/HOSTNAME, fall back on this default:
# ���� ���� /etc/HOSTNAME �� ����������, �� ���������� �������� �� ���������:
��������������� ����� ����� �������� �������� ��������� (�� ��������� ��� ������ ������):
# Mount remaining unmounted auto-mount drives.
# ���������� ���������� �������������� �������.
/sbin/mount -a
����� �������� ���� ��������� �������� ����.
����� ������� ��������� � Slackware �� ���������.
����� ���, ��� ���������� � ���������� �������, ����������� � ���� �����, ��������� � ���, ��� �� ��������� ���, ��� ������� � ������� "������������ ���� ��� ��������� ��������� �������".
������ ������������������ �������� � ������ �������������, ������� ��, �� ����� ���� ����������, ��, ������ �����, ��� ����� ��������� � ����� �� �������������. ��� ����, ����� ����������, ������� �� ��� ��� ��������, �� ������ ����������� ���������� �������� /etc/rc.d, ��������� �������:
cd /etc/rc.d
ls -l *.d rc.*
� ����������� �� ����, ��� �� ������� �� ������, � ��� ���� ��� �������� ��������:
���� � ���� ������ ���� ������� init.d � ��������� ��������� � ������ ���� rc?.d, ��� ������ ����� ������� ����� ��������� �����, � � ���� ������ ��� ����� � ������ rc.M, �� ���� ����������� ����� ��������� ���, ��� ������� � ����� "��������� ��������� ������� � ������������� Debian � RedHat".
���� � ���� ������ ��� �������� init.d, �� ���� ���� rc.M, �� ���� ����������� ����� ��������� ���, ��� ������� � ����� "��������� ��������� ������� � ������������ Slackware".
���� ��� ������ �� ������������ ���������� ���� ���������, �� ��������� �������� ����� ������� �� ������� � ���� HowTo. � ���� ������ �� ������ ��������� � ������� ����� ���������, � �� ��� ������� ���������, ��������� ��� ��������.