�������: ������ (���� | �����������) ��RU opennet.me  
The OpenNET Project / Index page

[ ������� /+++ | ����� | ���� | ]

�����:  ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ ������������

����-HOWTO: ������ ���� Linux

           rhw@bigfoot.com
         

�������: ��������� �����, SWSoft Pte Ltd.

������� ���������
������� 1.0���� ������������� ���������: rhw
�������� ������

� ���� ��������� ����������� ��������� � ������������� ������� ���� Linux.


����������
1. License
2. ��������� �����
3. ��� ���� ������ ���� ��������
4. ������������ �������
5. ��������� ������ �����������
6. ������������ ���� ��� ��������� ��������� �������
6.1. ��������� ��������� ������� � ������������� Debian � RedHat
6.2. ��������� ��������� ������� � ������������ Slackware
6.3. ��������� ��������� ������� � ������ �������������

1. License

This document is covered by the terms of the GNU General Public Licence (GPL), and all terms and limitations therein apply.


2. ��������� �����

��������� ����� �� ������� ������� ����� ������ ����������� © 2000 SWSoft Pte Ltd. ��� ����� ���������������.

���� �������� �������� ������ ������� Linux HOWTO.

��������� ����� �� ��������� Linux HOWTO ����������� �� �������, ���� ���� �� ������� ����. ��������� Linux HOWTO, � ����� �� ��������, ����� ���� �������������� � �������������� ��������� ��� �������� �� ����� �������� ���������� ��� �����������, ��� ������� ���������� ���� ������� �� ��������� ������ �� ���� ������. ������������ ��������������� ����������� � ����������; �� ��� ��� ����� ����� ������ � ����� �������� ������ �� ����� � ����� �������������.

��� �������� � ����������� ������, ����������� �� ���������� Linux HOWTO ������ �������������� ���� �������� �� ��������� ������. ��� �������� � ����� �������������� ������� ��������� �������������� ����������� �� ��������������� ���������� HOWTO. ���������� ����� ��������� ������ ��������� ������������ ���������� � ������������ Linux HOWTO � ������� ����� ��������� �� ������ ������������ ����.

�� �� ������ �������������� ��� ���������� �� ���� ��������� �������. �� ��� ���� ��������� ��������� ����� � ���� ������������� � ���� ������ ��������������� HOWTO. ���� � ��� �������� �������, ����������, ���������� � ������������ ������� Linux HOWTO �� ����������� �����: , ��� � ������������ �������� �������� Linux HOWTO �������� SWSoft Pte Ltd. �� ������


3. ��� ���� ������ ���� ��������

� �������� ���� ������ � Linux � �������� ����, � ���������� � ���, ��� �� � ����� ��������� ��� ������������������� �������� ����, ��� ��������� � ������������ ������ ���� Linux. ������, ����������� � ���� ���������, ����������� � �������������� �� ���� ��� ��� �� ���� ������, ��� � �� ������ ������ �������, ������������ �� Internet. ����� � �����, ��� ������������ ��� ��� ���� �����������, ������� �������� ����� ���� ������ ������ � ���� ������.

�� ���� ������ ���������� RedHat Linux 4.1, � � ����������� ������ ���� ����������� ��� �������� �������, ����������� � ���� ���������. � �������� ��� ������ � �� ��������� ������� ������������ Slackware, � ����� �� Debian. ��� ����������� ����������, ��������� � ��������� �������������, ����� ��������� � ���� ���������.

��������

������ ������� � �������� ��� ������ � RedHat 4.2, �� ������� ������ ���������� �� ����������� ���������� ��������. � ���� ��� �� ���������, � ��� �������� ��������, ������� �� ������ ������ � �� ���� ���� ������� �������� ����������������� ���� ������� �� ����� �������.


4. ������������ �������


5. ��������� ������ �����������

���� �� ����� ������ 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 - ��� �������� ������������ ���������.


6. ������������ ���� ��� ��������� ��������� �������

����� ��� ������� ���� ����� ���� ������� � ���� �������. ����������� �������� ������� �������� �������, �� ������� ��������� �������� ������ (������ ��� �������� ������� ext2)

������, ��������� ���� ����� ������ ���������, ���� �� ��������� ������� � ���� ������, � � �� ������������ �������� � ����:

� ������ �������, ���������� ����� ���������� ���������, ������� �������� ������ ���� ��� ������� � ���� �������, �������� ���� �� ���������:

��� ���� ����� ������, ��� �� �������� � ����, � ��� �������� � ���� �������. �� �������� ��� ��, ��� � ��� ������� ����. �������� �� ������ � �������� ���������� ������ �� ��������� ���� ������:

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
    

����� ����� ��� ���� ������� � ������ �� ��������� �������� (��� ������� �� ����, ����� ����������� � ��� ����������):


6.1. ��������� ��������� ������� � ������������� Debian � RedHat

����� ���, ��� ���������� � ���������� �������, ����������� � ���� �����, ��������� � ���, ��� �� ��������� ���, ��� ������� � ������� "������������ ���� ��� ��������� ��������� �������".

��������� �������� ������� ������������� Debian � RedHat ���������, ������� � ��� ��������� � ��������� ��������� �������.

  1. ������� � ������� � �������� 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
              
  2. ����� �������� ����� ����� � �������� root-� �������� ���������:

    cd /etc/rc.d
    chmod 755 init.d/*
    cd rc3.d
    ln -s ../init.d/modules.init 05modules.init
              

������ ������� ����� �������������, �, ���� ��� ������ ������, �� ������ ����� ��������� ��������.


6.2. ��������� ��������� ������� � ������������ Slackware

����� ���, ��� ���������� � ���������� �������, ����������� � ���� �����, ��������� � ���, ��� �� ��������� ���, ��� ������� � ������� "������������ ���� ��� ��������� ��������� �������".

������ ��� ���� ��������������� ���� /etc/rc.d/rc.M �������� ��������� �������:

  1. � ������ ������ 18 ���� ������, ���������� ���������:

    # ����� ����������� ����� 15 ����� �������
    # Screen blanks after 15 minutes idle time.
    /bin/setterm -blank 15
              

    ����� ����� ����� ������� �������� ���������:

    # Load the kernel module auto-loader.
    # ��������� ����� ������������ �������.
    /sbin/kerneld
              
  2. �������� ����� 12 ����� �� ������� ���������:

    # if there is no /etc/HOSTNAME, fall back on this default:
    # ���� ���� /etc/HOSTNAME �� ����������, �� ���������� �������� �� ���������:
              

    ��������������� ����� ����� �������� �������� ��������� (�� ��������� ��� ������ ������):

    # Mount remaining unmounted auto-mount drives.
    # ���������� ���������� �������������� �������.
    /sbin/mount -a
              

����� �������� ���� ��������� �������� ����.

����� ������� ��������� � Slackware �� ���������.


6.3. ��������� ��������� ������� � ������ �������������

����� ���, ��� ���������� � ���������� �������, ����������� � ���� �����, ��������� � ���, ��� �� ��������� ���, ��� ������� � ������� "������������ ���� ��� ��������� ��������� �������".

������ ������������������ �������� � ������ �������������, ������� ��, �� ����� ���� ����������, ��, ������ �����, ��� ����� ��������� � ����� �� �������������. ��� ����, ����� ����������, ������� �� ��� ��� ��������, �� ������ ����������� ���������� �������� /etc/rc.d, ��������� �������:

cd /etc/rc.d
ls -l *.d rc.*
      

� ����������� �� ����, ��� �� ������� �� ������, � ��� ���� ��� �������� ��������:

  1. ���� � ���� ������ ���� ������� init.d � ��������� ��������� � ������ ���� rc?.d, ��� ������ ����� ������� ����� ��������� �����, � � ���� ������ ��� ����� � ������ rc.M, �� ���� ����������� ����� ��������� ���, ��� ������� � ����� "��������� ��������� ������� � ������������� Debian � RedHat".

  2. ���� � ���� ������ ��� �������� init.d, �� ���� ���� rc.M, �� ���� ����������� ����� ��������� ���, ��� ������� � ����� "��������� ��������� ������� � ������������ Slackware".

  3. ���� ��� ������ �� ������������ ���������� ���� ���������, �� ��������� �������� ����� ������� �� ������� � ���� HowTo. � ���� ������ �� ������ ��������� � ������� ����� ���������, � �� ��� ������� ���������, ��������� ��� ��������.




������:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
�������:

�������� �� �����
���������� �� ���������
Created 1996-2026 by Maxim Chirkov
��������, ����������, ����������