https://debian-handbook.info/browse/ru-RU/stable/
linuxdebian.txt
Инсталляция: ssh
apt-get install aptitude
aptitude install sudo sysstat locate ntp bind9utils dnsutils finger
aptitude install gcc make bison yacc snmpd
aptitude install apache2 git postgresql php5 php5-pgsql
aptitude install libqt4-xml libqt4-dev libqt4-network libqt4-gui libqt4-core
aptitude install qt4-qmake qt4-dev-tools
aptitude install postfix mailutils screen
/etc/init.d/postfix reload
sudo a2enmod rewrite
sudo a2enmod headers
# /etc/ssh/sshd_config
PermitRootLogin no
# переименование enp4s0f0 и enp4s0f1 в eth0 и eth1 соответственно
/etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \
ATTR{address}=="c0:c4:7a:68:6f:78", ATTR{dev_id}=="0x0", \
ATTR{type}=="1", KERNEL=="enp*", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \
ATTR{address}=="c0:c4:7a:68:6f:79", ATTR{dev_id}=="0x0", \
ATTR{type}=="1", KERNEL=="enp*", NAME="eth1"
/etc/init.d/postfix reload
/etc/postfix/main.cf
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, permit
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unknown_sender_domain, permit
smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unlisted_recipient, reject_unauth_destination, permit
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_client_hostname, reject_rbl_client bl.spamcop.net, reject_rbl_client zen.spamhaus.org, reject_rbl_client relays.ordb.org, reject_rbl_client relays.ordb.org, permit
Включение питания с помощью BMC на платформе SuperMicro
Вход по ssh или броузером, дефолтный пользователь ADMIN:ADMIN
ssh ADMIN@server.BMC.IP
cd system1/pwrmgtsvc1
start
ssh ADMIN@server.BMC.IP start system1/pwrmgtsvc1
Дополнительный софт для Captive
aptitude update
aptitude install carton gearman libgearman-dev starman
cpan install Plack
cpan install Module::Install
cpan install Gearman::XS
Стандартный системный конфиг:
/usr/lib/firewalld/services/*.xml
Пользовательский конфиг:
/etc/firewalld/zones/public.xml
/etc/firewalld/services/*.xml
firewall-cmd --list-all
firewall-cmd --reload
Популярность: 93, Last-modified: Wed, 20 Apr 2016 20:17:33 GmT