4 Устанавим Сервер SSH
Debian Lenny не устанавливает OPENSSH по умолчанию, поэтому мы делаем это сейчас.
Впредь вы можете использовать клиента SSH как например PUTTY и c вашем серверjv Debian Lenny и выполнять оставшиеся шаги из этой консультации.
apt-get install ssh openssh-server
5 Устанавим vim-nox (Необязательно)
Я буду использовать vi в качестве моего текстового редактора
apt-get install vim-nox
6 Настроим Сеть
vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
Перезапустим сеть
:
/etc/init.d/networking restart
Отредактируем /etc/hosts.
vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.100 server1.example.com server1
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
затем выполним -
echo server1.example.com > /etc/hostname
/etc/init.d/hostname.sh start
и
hostname
hostname -f
7 Обновите Вашу Систему
apt-get update
apt-get upgrade
9 Установим Postfix, Courier, Saslauthd, MySQL, phpMyAdmin, rkhunter, binutils
apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl courier-maildrop getmail4 rkhunter binutils
New password for the MySQL "root" user: <-- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword
Create directories for web-based administration? <-- No
General type of mail configuration: <-- Internet Site
System mail name: <-- server1.example.com
SSL certificate required <-- Ok
Настроим MYSQL
vi /etc/mysql/my.cnf
[...]
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address = 127.0.0.1
[...]