Главная страница

Кто ты, сказочник?

Благодарности

Устанавливаем FreeBSD

Первоначальная конфигурация FreeBSD

Последующая настройка FreeBSD

Что необходимо для полного счастья

MySQL

Почтовый сервер на базе Exim + Dovecot + clamav + spamassassin

FTP-сервер

PHP+Apache

Squid + SquidGuard

Гостевая книга

Первоначальное конфигурирование с помощью FreeBSD Configuration Menu

Итак. Мы решили провести первоначальное конфигурирование нашей системы с помощью FreeBSD Configuration Menu

Тогда выберем [ Yes ] и нажмем ENTER.


┌────────────── User Confirmation Request ───────────────┐
│Visit the general configuration menu for a chance to set│
│any last options?                                       │
├────────────────────────────────────────────────────────┤
│                  [ Yes ]         No                    │
└────────────────────────────────────────────────────────┘

Нашему взору открывается FreeBSD Configuration Menu


┌────────────────────── FreeBSD Configuration Menu ───────────────────────┐
│ If you've already installed FreeBSD, you may use this menu to customize │
│ it somewhat to suit your particular configuration.  Most importantly,   │
│ you can use the Packages utility to load extra "3rd party"              │
│ software not provided in the base distributions.                        │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ X Exit            Exit this menu (returning to previous)            │ │
│ │  Distributions    Install additional distribution sets              │ │
│ │  Packages         Install pre-packaged software for FreeBSD         │ │
│ │  Root Password    Set the system manager's password                 │ │
│ │  Fdisk            The disk Slice (PC-style partition) Editor        │ │
│ │  Label            The disk Label editor                             │ │
│ │  User Management  Add user and group information                    │ │
│ │  Console          Customize system console behavior                 │ │
│ │  Time Zone        Set which time zone you're in                     │ │
│ │  Media            Change the installation media type                │ │
│ │  Mouse            Configure your mouse                              │ │
│ │  Networking       Configure additional network services             │ │
│ │  Security         Configure system security options                 │ │
│ │  Startup          Configure system startup options                  │ │
│ │  TTYs             Configure system ttys.                            │ │
│ │  Options          View/Set various installation options             │ │
│ │  HTML Docs        Go to the HTML documentation menu (post-install)  │ │
│ │  Load KLD         Load a KLD from a floppy                          │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────────────────┤
│                         [  OK  ]       Cancel                           │
└───────────[ Press F1 for more information on these options ]────────────┘

Первое, что мы сделаем, - это зададим пароль нашему суперпользователю. Для этого выбираем строку

   Root Password    Set the system manager's password

При вводе пароля на экране ничего отображаться не будет. Никаких звездочек или черточек. Это тебе не винда. Поэтому внимательней. Лишний раз напомню, что эта машина будет иметь непосредственный контакт с внешним миром, поэтому твой пароль для root, и не только для него, должен быть сложным, т.е. как минимум состоять из 8 символов и содержать цифры и буквы в строчном и прописном написании. Ну, в общем, не мне тебе рассказывать о паролях.

Итак. Вводим пароль. ENTER. Нас просят ввести пароль еще раз. Естественно, вводим. ENTER. Если все нормально, то мы опять в FreeBSD Configuration Menu.

Теперь мы настроим нашу консоль, чтобы она нам правильно отображала русские буковки. Выбираем

   Console          Customize system console behavior

Попадаем в меню конфигурации консоли


┌───────────────── System Console Configuration ──────────────────┐
│ The default system console driver for FreeBSD (syscons) has a   │
│ number of configuration options which may be set according to   │
│ your preference.                                                │
│                                                                 │
│ When you are done setting configuration options, select Cancel. │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │     X Exit       Exit this menu (returning to previous)     │ │
│ │     2 Font       Choose an alternate screen font            │ │
│ │     3 Keymap     Choose an alternate keyboard map           │ │
│ │     4 Repeat     Set the rate at which keys repeat          │ │
│ │     5 Saver      Configure the screen saver                 │ │
│ │     6 Screenmap  Choose an alternate screenmap              │ │
│ │     7 Ttys       Choose console terminal type               │ │
│ └─────────────────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────────┤
│                     [  OK  ]       Cancel                       │
└───────────[ Configure your system console settings ]────────────┘

Выбираем

   2 Font       Choose an alternate screen font

┌───────────────────────── System Console Font ──────────────────────────┐
│ Most PC hardware defaults to displaying characters in the              │
│ IBM 437 character set.  However, in the Unix world, this               │
│ character set is very rarely used.  Most Western European              │
│ countries, for example, prefer ISO 8859-1.                             │
│ American users won't notice the difference since the bottom half       │
│ of all these charactersets is ANSI anyway.  However, they might        │
│ want to load a font anyway to use the 30- or 50-line displays.         │
│ If your hardware is capable of downloading a new display font,         │
│ you can select the appropriate font below.                             │
│ ┌────────────────────────────────────────────────────────────────────┐ │
│ │ 1 None         Use hardware default font                           │ │
│ │ 2 IBM 437      English and others, VGA default                     │ │
│ │ 3 IBM 850      Western Europe, IBM encoding                        │ │
│ │ 4 IBM 865      Norwegian, IBM encoding                             │ │
│ │ 5 IBM 866      Russian, IBM encoding (use with KOI8-R screenmap)   │ │
│ │ 6 IBM 866u     Ukrainian, IBM encoding (use with KOI8-U screenmap) │ │
│ │ 7 IBM 1251     Cyrillic, MS Windows encoding                       │ │
│ └────────────────────────────────────────────────────────────────────┘ │
├────────────────────────────────────────────────────────────────────────┤
│                         [  OK  ]       Cancel                          │
└───────────────────────────[ Choose a font ]────────────────────────────┘

С помощью клавиш со стрелками выберем строку

   5 IBM 866      Russian, IBM encoding (use with KOI8-R screenmap)

и нажмем ENTER. Снова попали в меню System Console Configuration.

Теперь выберем

   3 Keymap     Choose an alternate keyboard map

В открывшемся меню


┌───────────────────────── System Console Keymap ─────────────────────────┐
│ The default system console driver for FreeBSD (syscons) defaults        │
│ to a standard "American" keyboard map.  Users in other countries        │
│ (or with different keyboard preferences) may wish to choose one of      │
│ the other keymaps below.                                                │
│ Note that sysinstall itself only uses the part of the keyboard map      │
│ which is required to generate the ANSI character subset, but your       │
│ choice of keymap will also be saved for later (fuller) use.             │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ Norway ISO                  Norwegian ISO keymap                    │ │
│ │ Polish ISO                  Polish ISO keymap                       │ │
│ │  Portuguese (accent)        Portuguese ISO keymap (accent keys)     │ │
│ │  Portuguese                 Portuguese ISO keymap                   │ │
│ │ Russia KOI8-R               Russian KOI8-R keymap                   │ │
│ │ Slovenian                   Slovenian ISO keymap                    │ │
│ │  Spanish (accent)           Spanish ISO keymap (accent keys)        │ │
│ │  Spanish                    Spanish ISO keymap                      │ │
│ │  Swedish CP850              Swedish Code Page 850 keymap            │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────────────────┤
│                         [  OK  ]       Cancel                           │
└────────────────────────[ Choose a keyboard map ]────────────────────────┘

клавишами со стрелками находим параметр

   Russia KOI8-R               Russian KOI8-R keymap

и нажимаем ENTER.

Мы снова вернулись в меню System Console Configuration. Выбираем

   6 Screenmap  Choose an alternate screenmap

В следующем окне


┌────────────────────── System Console Screenmap ──────────────────────┐
│ Unless you load a specific font, most PC hardware defaults to        │
│ displaying characters in the IBM 437 character set.  However,        │
│ in the Unix world, this character set is very rarely used.  Most     │
│ Western European countries, for example, prefer ISO 8859-1.          │
│ American users won't notice the difference since the bottom half     │
│ of all these character sets is ANSI anyway.                          │
│ If your hardware is capable of downloading a new display font,       │
│ you should probably choose that option.  However, for hardware       │
│ where this is not possible (e.g. monochrome adapters), a screen      │
│ map will give you the best approximation that your hardware can      │
│ display at all.                                                      │
│ ┌──────────────────────────────────────────────────────────────────┐ │
│ │ 1 None                  No screenmap, don't touch font           │ │
│ │ 2 ISO 8859-1 to IBM437  W-Europe ISO 8859-1 to IBM 437 screenmap │ │
│ │ 3 ISO 8859-7 to IBM437  Greek ISO 8859-7 to IBM 437 screenmap    │ │
│ │ 4 US-ASCII to IBM437    US-ASCII to IBM 437 screenmap            │ │
│ │ 5 KOI8-R to IBM866      Russian KOI8-R to IBM 866 screenmap      │ │
│ └──────────────────────────────────────────────────────────────────┘ │
├──────────────────────────────────────────────────────────────────────┤
│                        [  OK  ]       Cancel                         │
└───────────────────────[ Choose a screen map ]────────────────────────┘

выбираем параметр

   5 KOI8-R to IBM866      Russian KOI8-R to IBM 866 screenmap

И теперь в меню System Console Configuration выбираем последний параметр

   7 Ttys       Choose console terminal type

В открывшемся меню


┌──────────────── System Console Terminal Type ──────────────────┐
│ For various console encodings, a corresponding terminal type   │
│ must be chosen in /etc/ttys.                                   │
│                                                                │
│ WARNING: For compatibility reasons, only entries starting with │
│ ttyv and terminal types starting with cons[0-9] can be changed │
│ via this menu.                                                 │
│                                                                │
│ ┌────────────────────────────────────────────────────────────┐ │
│ │        1 None                  Don't touch anything        │ │
│ │        2 IBM437 (VGA default)  cons25                      │ │
│ │        3 ISO 8859-1            cons25l1                    │ │
│ │        4 ISO 8859-2            cons25l2                    │ │
│ │        5 ISO 8859-7            cons25l7                    │ │
│ │        6 KOI8-R                cons25r                     │ │
│ │        7 KOI8-U                cons25u                     │ │
│ │        8 US-ASCII              cons25w                     │ │
│ └────────────────────────────────────────────────────────────┘ │
├────────────────────────────────────────────────────────────────┤
│                     [  OK  ]       Cancel                      │
└───────────────────[ Choose a terminal type ]───────────────────┘

выбираем

   6 KOI8-R                cons25r

Теперь в меню System Console Configuration выбираем

   X Exit       Exit this menu (returning to previous)

чтобы вернуться в FreeBSD Configuration Menu. Теперь мы выберем временную зону, в которой мы работаем. В моем случае часовой пояс соответствует московскому времени. Для настройки выбираем

   Time Zone        Set which time zone you're in

Попадаем в окно


┌────────── Select local or UTC (Greenwich Mean Time) clock ───────────┐
│ Is this machine's CMOS clock set to UTC?  If it is set to local time,│
│ or you don't know, please choose NO here!                            │
│                                                                      │
├──────────────────────────────────────────────────────────────────────┤
│                           Yes        [  No  ]                        │
└──────────────────────────────────────────────────────────────────────┘

Ну, конечно же, наши системные часы не установлены по Гринвичу. Параметр [ No ] уже выделен по умолчанию, поэтому просто нажмем ENTER.

В следующем окне


┌─────── Time Zone Selector ────────┐
│         Select a region           │
│ ┌───────────────────────────────┐ │
│ │ 1  Africa                     │ │
│ │ 2  America -- North and South │ │
│ │ 3  Antarctica                 │ │
│ │ 4  Arctic Ocean               │ │
│ │ 5  Asia                       │ │
│ │ 6  Atlantic Ocean             │ │
│ │ 7  Australia                  │ │
│ │ 8  Europe                     │ │
│ │ 9  Indian Ocean               │ │
│ │ 0  Pacific Ocean              │ │
│ └───────────────────────────────┘ │
├───────────────────────────────────┤
│      [  OK  ]       Cancel        │
└───────────────────────────────────┘

выберем регион, в котором мы живем и работаем.

В моем случае выбор

   8  Europe

ENTER.

В следующем меню


┌──────────────── Countries in Europe ────────────────┐
│            Select a country or region               │
│ ┌─────────────────────────────────────────────────┐ │
│ │ 30  Norway                                      │ │
│ │ 31  Poland                                      │ │
│ │ 32  Portugal                                    │ │
│ │ 33  Romania                                     │ │
│ │ 34  Russian Federation                          │ │
│ │ 35  San Marino                                  │ │
│ │ 36  Serbia and Montenegro                       │ │
│ │ 37  Slovakia                                    │ │
│ │ 38  Slovenia                                    │ │
│ │ 39  Spain                                       │ │
│ │ 40  Sweden                                      │ │
│ │ 41  Switzerland                                 │ │
│ │ 42  Turkey                                      │ │
│ │ 43  Ukraine                                     │ │
│ │ 44  United Kingdom                              │ │
│ │ 45  Vatican City State                          │ │
│ └─────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────┤
│               [  OK  ]       Cancel                 │
└─────────────────────────────────────────────────────┘

стрелками выбираем страну. В моем случае это

   34  Russian Federation

ENTER.

Теперь уже выберем конкретную временную зону


┌─────────────── Russian Federation Time Zones ────────────────┐
│ Select a zone which observes the same time as your locality. │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │             1   Moscow-01 - Kaliningrad                  │ │
│ │             2   Moscow+00 - west Russia                  │ │
│ │             3   Moscow+01 - Caspian Sea                  │ │
│ │             4   Moscow+02 - Urals                        │ │
│ │             5   Moscow+03 - west Siberia                 │ │
│ │             6   Moscow+03 - Novosibirsk                  │ │
│ │             7   Moscow+04 - Yenisei River                │ │
│ │             8   Moscow+05 - Lake Baikal                  │ │
│ │             9   Moscow+06 - Lena River                   │ │
│ │             10  Moscow+07 - Amur River                   │ │
│ │             11  Moscow+07 - Sakhalin Island              │ │
│ │             12  Moscow+08 - Magadan                      │ │
│ │             13  Moscow+09 - Kamchatka                    │ │
│ │             14  Moscow+10 - Bering Sea                   │ │
│ └──────────────────────────────────────────────────────────┘ │
├──────────────────────────────────────────────────────────────┤
│                    [  OK  ]       Cancel                     │
└──────────────────────────────────────────────────────────────┘

Опять же, в моем случае это

   2   Moscow+00 - west Russia

ENTER.

Подтвердим аббревиатуру 'MSD' (до сих пор понять не могу, почему не MSK)


┌──────────────────────────── Confirmation ────────────────────────────┐
│            Does the abbreviation `MSD' look reasonable?              │
├──────────────────────────────────────────────────────────────────────┤
│                         [ Yes ]         No                           │
└──────────────────────────────────────────────────────────────────────┘

и тем самым закончим настройку временной зоны и вернемся в FreeBSD Configuration Menu.

Теперь займемся настройками сетевых сервисов. Выберем

   Networking       Configure additional network services

и перед нашим взором открывается


┌─────────────────────────── Network Services Menu ───────────────────────────┐
│ You may have already configured one network device (and the other           │
│ various hostname/gateway/name server parameters) in the process             │
│ of installing FreeBSD.  This menu allows you to configure other             │
│ aspects of your system's network configuration.                             │
│ ┌─────────────────────────────────────────────────────────────────────────┐ │
│ │ <<< X Exit           Exit this menu (returning to previous)             │ │
│ │ [ ]  Interfaces      Configure additional network interfaces            │ │
│ │ [ ]  AMD             This machine wants to run the auto-mounter service │ │
│ │ [X]  AMD Flags       Set flags to AMD service (if enabled)              │ │
│ │ [ ]  Anon FTP        This machine wishes to allow anonymous FTP.        │ │
│ │ [ ]  Gateway         This machine will route packets between interfaces │ │
│ │ [ ]  inetd           This machine wants to run the inet daemon          │ │
│ │ [ ]  Mail            This machine wants to run a Mail Transfer Agent    │ │
│ │ [ ]  NFS client      This machine will be an NFS client                 │ │
│ │ [ ]  NFS server      This machine will be an NFS server                 │ │
│ │ [ ]  Ntpdate         Select a clock-synchronization server              │ │
│ │ [ ]  PCNFSD          Run authentication server for clients with PC-NFS. │ │
│ │ [ ]  rpcbind         RPC port mapping daemon (formerly portmapper)      │ │
│ │ [ ]  rpc.statd       NFS status monitoring daemon                       │ │
│ │ [ ]  rpc.lockd       NFS file locking daemon                            │ │
│ │ [ ]  Routed          Select routing daemon (default: routed)            │ │
│ │ [ ]  Rwhod           This machine wants to run the rwho daemon          │ │
│ │ [ ]  sshd            This machine wants to run the SSH daemon           │ │
│ │ [X]  TCP Extensions  Allow RFC1323 and RFC1644 TCP extensions?          │ │
│ └─────────────────────────────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────────────────────┤
│                           [  OK  ]       Cancel                             │
└─────────────────────────────────────────────────────────────────────────────┘

Настроим наши сетевые интерфейсы. Для этого выбираем

   [ ]  Interfaces      Configure additional network interfaces

Нам открывается окно с информацией о доступных сетевых интерфейсах. Нас интересуют сетевые карты rl0 и rl1. Определимся для себя, что rl0 у нас будет смотреть во внешний мир, а rl1 - во внутреннюю сеть. Исходя из этого определения, произведем настройки интерфейсов.


┌────────────── Network interface information required ───────────────┐
│ If you are using PPP over a serial device, as opposed to a direct   │
│ ethernet connection, then you may first need to dial your Internet  │
│ Service Provider using the ppp utility we provide for that purpose. │
│ If you're using SLIP over a serial device then the expectation is   │
│ that you have a HARDWIRED connection.                               │
│                                                                     │
│ You can also install over a parallel port using a special "laplink" │
│ cable to another machine running FreeBSD.                           │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │        rl0   RealTek 8129/8139 PCI ethernet card                │ │
│ │        rl1   RealTek 8129/8139 PCI ethernet card                │ │
│ │        sl0   SLIP interface on device /dev/cuaa0 (COM1)         │ │
│ │        ppp0  PPP interface on device /dev/cuaa0 (COM1)          │ │
│ └─────────────────────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────────────┤
│                       [  OK  ]       Cancel                         │
└──────────[ Press F1 to read network configuration manual ]──────────┘

Начнем с rl1. Стрелками выберем строку

   rl1   RealTek 8129/8139 PCI ethernet card

и нажмем ENTER. На запрос, будем ли мы конфигурировать интерфейс для использования IPv6, ответим [ No ]. На следующий запрос о том, что интерфейс будет конфигурироваться сервером DHCP, тоже ответим [ No ]. И попадаем в окно конфигурации интерфейса


┌─────────────────────────── Network Configuration ────────────┐
│  Host:                            Domain:                    │
│ ┌───────────────────────┐        ┌──────────────────┐        │
│ │                       │        │                  │        │
│ └───────────────────────┘        └──────────────────┘        │
│  IPv4 Gateway:                    Name server:               │
│ ┌────────────────┐               ┌────────────────┐          │
│ │                │               │                │          │
│ └────────────────┘               └────────────────┘          │
│       ┌───── Configuration for Interface rl1 ───────┐        │
│       │  IPv4 Address:            Netmask:          │        │
│       │ ┌────────────────┐       ┌────────────────┐ │        │
│       │ │                │       │                │ │        │
│       │ └────────────────┘       └────────────────┘ │        │
│       │  Extra options to ifconfig:                 │        │
│       │ ┌───────────────────────────────────┐       │        │
│       │ │                                   │       │        │
│       │ └───────────────────────────────────┘       │        │
│       └─────────────────────────────────────────────┘        │
│              ┌──────┐            ┌──────────┐                │
│              │  OK  │            │  CANCEL  │                │
│              └──────┘            └──────────┘                │
└──────────────────────────────────────────────────────────────┘

Для внутренней и для внешней сети я использую одно и то же доменное имя mydomain.ru. Заполняем строки в Network Configuration данными для внутреннего интерфейса. При заполнении полей пользуйся клавишей Tab для перехода по полям.


┌─────────────────────────── Network Configuration ────────────┐
│  Host:                            Domain:                    │
│ ┌───────────────────────┐        ┌──────────────────┐        │
│ │mydomain               │        │ru                │        │
│ └───────────────────────┘        └──────────────────┘        │
│  IPv4 Gateway:                    Name server:               │
│ ┌────────────────┐               ┌────────────────┐          │
│ │                │               │                │          │
│ └────────────────┘               └────────────────┘          │
│       ┌───── Configuration for Interface rl1 ───────┐        │
│       │  IPv4 Address:            Netmask:          │        │
│       │ ┌────────────────┐       ┌────────────────┐ │        │
│       │ │192.168.10.1    │       │255.255.255.0   │ │        │
│       │ └────────────────┘       └────────────────┘ │        │
│       │  Extra options to ifconfig:                 │        │
│       │ ┌───────────────────────────────────┐       │        │
│       │ │                                   │       │        │
│       │ └───────────────────────────────────┘       │        │
│       └─────────────────────────────────────────────┘        │
│              ┌──────┐            ┌──────────┐                │
│              │  OK  │            │  CANCEL  │                │
│              └──────┘            └──────────┘                │
└──────────────────────────────────────────────────────────────┘

Заполнил? [ Ок ] На появившийся запрос о поднятии интерфейса скажем [ Yes ].

Мы опять в Network Services Menu. Но у нас два интерфейса, поэтому опять выбираем

   [ ]  Interfaces      Configure additional network interfaces

В следующем меню выбираем теперь

   rl0   RealTek 8129/8139 PCI ethernet card

И заполняем в соответствии с данными для внешнего интерфейса


┌─────────────────────────── Network Configuration ────────────┐
│  Host:                            Domain:                    │
│ ┌───────────────────────┐        ┌──────────────────┐        │
│ │mydomain               │        │ru                │        │
│ └───────────────────────┘        └──────────────────┘        │
│  IPv4 Gateway:                    Name server:               │
│ ┌────────────────┐               ┌────────────────┐          │
│ │212.96.124.237  │               │212.96.124.238  │          │
│ └────────────────┘               └────────────────┘          │
│       ┌───── Configuration for Interface rl0 ───────┐        │
│       │  IPv4 Address:            Netmask:          │        │
│       │ ┌────────────────┐       ┌────────────────┐ │        │
│       │ │212.96.124.238  │       │255.255.255.252 │ │        │
│       │ └────────────────┘       └────────────────┘ │        │
│       │  Extra options to ifconfig:                 │        │
│       │ ┌───────────────────────────────────┐       │        │
│       │ │                                   │       │        │
│       │ └───────────────────────────────────┘       │        │
│       └─────────────────────────────────────────────┘        │
│              ┌──────┐            ┌──────────┐                │
│              │  OK  │            │  CANCEL  │                │
│              └──────┘            └──────────┘                │
└──────────────────────────────────────────────────────────────┘

Снова [ Ok ]. И снова [ Yes ] на запрос о поднятии интерфейса.

Все остальные параметры в Network Services Menu сделайте в соответствии с нижеприведенным рисунком


┌─────────────────────────── Network Services Menu ───────────────────────────┐
│ You may have already configured one network device (and the other           │
│ various hostname/gateway/name server parameters) in the process             │
│ of installing FreeBSD.  This menu allows you to configure other             │
│ aspects of your system's network configuration.                             │
│ ┌─────────────────────────────────────────────────────────────────────────┐ │
│ │ <<< X Exit           Exit this menu (returning to previous)             │ │
│ │ [ ]  Interfaces      Configure additional network interfaces            │ │
│ │ [ ]  AMD             This machine wants to run the auto-mounter service │ │
│ │ [X]  AMD Flags       Set flags to AMD service (if enabled)              │ │
│ │ [ ]  Anon FTP        This machine wishes to allow anonymous FTP.        │ │
│ │ [X]  Gateway         This machine will route packets between interfaces │ │
│ │ [ ]  inetd           This machine wants to run the inet daemon          │ │
│ │ [ ]  Mail            This machine wants to run a Mail Transfer Agent    │ │
│ │ [ ]  NFS client      This machine will be an NFS client                 │ │
│ │ [ ]  NFS server      This machine will be an NFS server                 │ │
│ │ [ ]  Ntpdate         Select a clock-synchronization server              │ │
│ │ [ ]  PCNFSD          Run authentication server for clients with PC-NFS. │ │
│ │ [ ]  rpcbind         RPC port mapping daemon (formerly portmapper)      │ │
│ │ [ ]  rpc.statd       NFS status monitoring daemon                       │ │
│ │ [ ]  rpc.lockd       NFS file locking daemon                            │ │
│ │ [ ]  Routed          Select routing daemon (default: routed)            │ │
│ │ [ ]  Rwhod           This machine wants to run the rwho daemon          │ │
│ │ [X]  sshd            This machine wants to run the SSH daemon           │ │
│ │ [X]  TCP Extensions  Allow RFC1323 and RFC1644 TCP extensions?          │ │
│ └─────────────────────────────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────────────────────┤
│                           [  OK  ]       Cancel                             │
└─────────────────────────────────────────────────────────────────────────────┘

Небольшие пояснения. Мы выберем параметр Gateway, т.к. будем гонять пакеты от одного интерфейса к другому. Мы запустим демон sshd, иначе как нам потом рулить нашим сервером. А вот по поводу последнего выбора TCP Extensions - сколько людей, столько и мнений. Я оставляю. Все остальное мы отключаем за ненадобностью.

Ну теперь [ OK ]. И вновь FreeBSD Configuration Menu. Теперь осталось задать опции загрузки в разделе

   Startup          Configure system startup options

Пред нами предстанет Startup Services Menu.


┌─────────────────────────── Startup Services Menu ───────────────────────────┐
│ This menu allows you to configure various aspects of your system's          │
│ startup configuration.  Use [SPACE] or [ENTER] to select items, and         │
│ [TAB] to move to the buttons.  Select Exit to leave this menu.              │
│ ┌─────────────────────────────────────────────────────────────────────────┐ │
│ │ <<< X Exit           Exit this menu (returning to previous)             │ │
│ │ [ ]  APM             Auto-power management services (typically laptops) │ │
│ │ [X]  usbd            Enable USB daemon (detect USB attach / detach)     │ │
│ │ [ ]  usbd flags      Set default flags to usbd (if enabled)             │ │
│ │                       --                                                │ │
│ │ [X]  Startup dirs    Set the list of dirs to look for startup scripts   │ │
│ │ [X]  named           Run a local name server on this host               │ │
│ │ [X]  named flags     Set default flags to named (if enabled)            │ │
│ │ [ ]  NIS client      This host wishes to be an NIS client.              │ │
│ │ [X]  NIS domainname  Set NIS domainname (if enabled)                    │ │
│ │ [ ]  NIS server      This host wishes to be an NIS server.              │ │
│ │                       --                                                │ │
│ │ [ ]  Accounting      This host wishes to run process accounting.        │ │
│ │ [ ]  lpd             This host has a printer and wants to run lpd.      │ │
│ │ [ ]  Linux           This host wants to be able to run Linux binaries.  │ │
│ │ [ ]  SCO             This host wants to be able to run IBCS2 binaries.  │ │
│ │ [ ]  SVR4            This host wants to be able to run SVR4 binaries.   │ │
│ │ [ ]  quotas          This host wishes to check quotas on startup.       │ │
│ └─────────────────────────────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────────────────────┤
│                           [  OK  ]       Cancel                             │
└─────────────────────────────────────────────────────────────────────────────┘

Сделайте выбор в соответствии с рисунком. Ну и подтвердим наш выбор [ OK ].

Все. Мы закончили инсталляцию и первоначальную конфигурацию FreeBSD. Для окончания выберем в FreeBSD Configuration Menu параметр

   X Exit            Exit this menu (returning to previous)

ENTER.

Мы вернулись в sysinstall Main Menu. При помощи клавиши TAB выберем [X Exit Install] и нажмем ENTER.

Наш милый чертенок вежливо напомнит нам, что сейчас система будет перезагружена и не забудьте удалить установочный диск.


┌─────────────── User Confirmation Request ────────────────┐
│Are you sure you wish to exit?  The system will reboot    │
│(be sure to remove any floppies/CDs/DVDs from the drives).│
├──────────────────────────────────────────────────────────┤
│                   [ Yes ]         No                     │
└──────────────────────────────────────────────────────────┘

Жмем ENTER и наслаждаемся перезагрузкой.

Не забудь посетить BIOS и изменить очередность устройств для загрузки. Теперь мы будем грузиться с HDD, а не с CD-ROM.

Вверх Далее