Дарова земляк!RusBiT писал(а):Хостинг в krs-ix? Могу помощь в настройке.Sun писал(а):+ нашел версию посвежее попробую еще ее воткнуть,мож там че нить из проблем до ума доведено
P.S. Земляк


Модератор: f0s
Дарова земляк!RusBiT писал(а):Хостинг в krs-ix? Могу помощь в настройке.Sun писал(а):+ нашел версию посвежее попробую еще ее воткнуть,мож там че нить из проблем до ума доведено
P.S. Земляк
Код: Выделить всё
fsck_y_enable="YES"
hostname="hosting.lan"
ifconfig_le0="DHCP"
sshd_enable="YES"
font8x14="cp866-8x14"
font8x16="cp866b-8x16"
font8x8="cp866-8x8"
keymap="ru.koi8-r"
mousechar_start="3"
scrnmap="koi8-r2cp866"
Код: Выделить всё
# /usr/ports/lang/php5 && make config
Код: Выделить всё
[X] APACHE Build Apache module
Код: Выделить всё
# mkdir /home/admin/vhcs && cd /home/admin/vhcs
# fetch http://vhcsonfreebsd.prima.com.ar/vhcs2-prealpha-port-2.4.7.1-20060502.tar.gz
# tar xzvf vhcs2-prealpha-port-2.4.7.1-20060502.tar.gz && ll
total 78
-rw-r--r-- 1 www www 674 19 сен 2005 VHCS2-INSTALL-HOW-TO.txt
-rw-r--r-- 1 www www 525 2 май 2006 courier-imap-vhcs2.tar.gz
-rw-r--r-- 1 www www 793 2 май 2006 p5-Term-ReadPassword.tar.gz
-rw-r--r-- 1 www www 672 2 май 2006 postfix-vhcs2.tar.gz
-rw-r--r-- 1 www www 472 2 май 2006 proftpd-vhcs2.tar.gz
-rw-r--r-- 1 www www 32554 2 май 2006 vhcs.tar.gz
-rw-r--r-- 1 root ad 35810 6 июл 2007 vhcs2-prealpha-port-2.4.7.1-20060502.tar.gz
#
Код: Выделить всё
total 88
-rw-r--r-- 1 www www 674 19 сен 2005 VHCS2-INSTALL-HOW-TO.txt
drwxr-xr-x 2 www wheel 512 7 апр 2006 courier-imap-vhcs2
-rw-r--r-- 1 www www 525 2 май 2006 courier-imap-vhcs2.tar.gz
drwxr-xr-x 2 www wheel 512 2 сен 2005 p5-Term-ReadPassword
-rw-r--r-- 1 www www 793 2 май 2006 p5-Term-ReadPassword.tar.gz
drwxr-xr-x 2 www wheel 512 7 апр 2006 postfix-vhcs2
-rw-r--r-- 1 www www 672 2 май 2006 postfix-vhcs2.tar.gz
drwxr-xr-x 2 www wheel 512 7 апр 2006 proftpd-vhcs2
-rw-r--r-- 1 www www 472 2 май 2006 proftpd-vhcs2.tar.gz
drwxr-xr-x 3 www wheel 512 2 май 2006 vhcs
-rw-r--r-- 1 www www 32554 2 май 2006 vhcs.tar.gz
-rw-r--r-- 1 root ad 35810 6 июл 2007 vhcs2-prealpha-port-2.4.7.1-20060502.tar.gz
Код: Выделить всё
$Id: VHCS2-INSTALL-HOW-TO.txt,v 1.6 2005/09/19 21:54:00 pcarboni Exp $
Checklist after normal freebsd install:
0) Date and time should be the current time. If not, please issue:
ntpdate -b <your ntp favourite server>
1) pkg_add -r cvsup-without-gui
2) cvsup ports tree with the latest tree.
3) Install perl 5.6 or later. Skip this step if you have freebsd 5.3 or newer.
4) cd /usr/ports/ftp ; tar xvfz <src path>/proftpd-vhcs2.tar.gz
5) cd /usr/ports/mail; tar xvfz <src path>/courier-imap-vhcs2.tar.gz
6) cd /usr/ports/mail; tar xvfz <src path>/postfix-vhcs2.tar.gz
7) cd /usr/ports/www; tar xvfz <src path>/vhcs.tar.gz
8) cd vhcs
9) make && make install
Good luck!
Код: Выделить всё
# cd /usr/ports/net/cvsup-without-gui
# make install clean && rehash
# ee /usr/local/etc/supfile
*default host=cvsup7.ru.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=RELENG_7_0
*default delete use-rel-suffix
*default compress
ports-all tag=.
Код: Выделить всё
# cvsup -g -L 2 /usr/local/etc/supfile
Код: Выделить всё
# cd /usr/ports/net/ntp
# make install clean
# rehash
Код: Выделить всё
drift - файл в котором храниться информация о смещении времени
#touch /etc/ntp/drift
Код: Выделить всё
# ee /etc/ntp.conf
#добавляем сервера, с которыми будет проводиться синхронизация
server 0.ua.pool.ntp.org iburst burst prefer
server 1.ua.pool.ntp.org iburst burst
server 2.ua.pool.ntp.org iburst burst
server 3.ua.pool.ntp.org iburst burst
#путь к дрифт файлу
driftfile /etc/ntp/drift
#лог
logfile /var/log/ntp.log
#разрешаем обновляться только локальной сети и локалхосту
restrict default ignore
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
restrict localhost
#разрешаем синхронизироваться с удаленными серверами
restrict 0.ua.pool.ntp.org
restrict 1.ua.pool.ntp.org
restrict 2.ua.pool.ntp.org
restrict 3.ua.pool.ntp.org
Код: Выделить всё
fsck_y_enable="YES"
hostname="hosting.lan"
ifconfig_le0="DHCP"
sshd_enable="YES"
ntpd_enable="YES"
ntpd_program="/usr/local/bin/ntpd"
font8x14="cp866-8x14"
font8x16="cp866b-8x16"
font8x8="cp866-8x8"
keymap="ru.koi8-r"
mousechar_start="3"
scrnmap="koi8-r2cp866"
Код: Выделить всё
vhcs --> /usr/ports/www
proftpd-vhcs2 --> /usr/ports/ftp
courier-imap-vhcs2 --> /usr/ports/mail
postfix-vhcs2 --> /usr/ports/mail
p5-Term-ReadPassword --> /usr/ports/devel
Код: Выделить всё
# cd /usr/ports/www/vhcs
# make install clean
Код: Выделить всё
===> !!! IMPORTANT - IMPORTANT - IMPORTANT !!! :
===> Do not forget to do the following before running
===> setup:
===> First, add the following to rc.conf:
apache2_enable="YES"
courier_authdaemond_enable="YES"
courier_imap_imapd_enable="YES"
courier_imap_pop3d_enable="YES"
mysql_enable="YES"
proftpd_enable="YES"
sendmail_enable="NONE"
vhcsd_enable="YES"
named_enable="YES"
===> Make sure you have the following lines in your PAM
===> configuration file so that ProFTPd's PAM module
===> can authenticate users correctly.
ftpd auth required pam_unix.so try_first_pass
ftpd account required pam_unix.so try_first_pass
ftpd session required pam_permit.so
===> Make sure you have the following lines in your PAM
===> configuration file so that Courier-Imap's PAM module
===> can authenticate users correctly.
imap auth required pam_unix.so try_first_pass
imap account required pam_unix.so try_first_pass
imap session required pam_permit.so
===> Next, postfix must be running with:
cd /usr/local/etc/rc.d
ln -s /usr/local/sbin/postfix postfix.sh
===> Finally, for postfix purposes, add to
===> /etc/periodic.conf:
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"
===> Add to apache config (/usr/local/etc/apache2/httpd.conf):
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
===> Please, fire up your mysql server before doing
===> vhcs setup task, with something like this:
/usr/local/etc/rc.d/mysql-server.sh start
===> VHCS v2.4.6.2 installed successfully!.
===> You need to setup vhcs software with:
make setup
===> Registering installation for vhcs-2.4.6.2
===> SECURITY REPORT:
This port has installed the following files which may act as network
servers and may therefore pose a remote security risk to the system.
/usr/local/sbin/vhcs2_daemon
This port has installed the following startup scripts which may cause
these network services to be started at boot time.
/usr/local/etc/rc.d/vhcs2_daemon.sh
If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.
For more information, and contact details about the security
status of this software, see the following webpage:
http://www.vhcs.net
Код: Выделить всё
fsck_y_enable="YES"
hostname="hosting.lan"
ifconfig_le0="DHCP"
sshd_enable="YES"
ntpd_enable="YES"
ntpd_program="/usr/local/bin/ntpd"
apache2_enable="YES"
courier_authdaemond_enable="YES"
courier_imap_imapd_enable="YES"
courier_imap_pop3d_enable="YES"
mysql_enable="YES"
proftpd_enable="YES"
sendmail_enable="NONE"
vhcsd_enable="YES"
named_enable="YES"
font8x14="cp866-8x14"
font8x16="cp866b-8x16"
font8x8="cp866-8x8"
keymap="ru.koi8-r"
mousechar_start="3"
scrnmap="koi8-r2cp866"
Код: Выделить всё
#
# $FreeBSD: src/etc/pam.d/ftpd,v 1.19 2007/06/10 18:57:20 yar Exp $
#
# PAM configuration for the "ftpd" service
#
# auth
auth sufficient pam_opie.so no_warn no_fake_prompts
auth requisite pam_opieaccess.so no_warn allow_local
#auth sufficient pam_krb5.so no_warn
#auth sufficient pam_ssh.so no_warn try_first_pass
#auth required pam_unix.so no_warn try_first_pass
auth required pam_unix.so try_first_pass
# account
account required pam_nologin.so
#account required pam_krb5.so
#account required pam_unix.so
account required pam_unix.so try_first_pass
# session
session required pam_permit.so
Код: Выделить всё
#
# $FreeBSD: src/etc/pam.d/imap,v 1.7 2007/06/15 11:33:13 yar Exp $
#
# PAM configuration for the "imap" service
#
# auth
#auth sufficient pam_krb5.so no_warn try_first_pass
#auth sufficient pam_ssh.so no_warn try_first_pass
#auth required pam_unix.so no_warn try_first_pass
auth required pam_unix.so try_first_pass
# account
#account required pam_nologin.so
#account required pam_unix.so
account required pam_unix.so try_first_pass
# session
session required pam_permit.so
Код: Выделить всё
# cd /usr/local/etc/rc.d
# ln -s /usr/local/sbin/postfix postfix.sh
Код: Выделить всё
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"
Код: Выделить всё
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Код: Выделить всё
my $cipher = Crypt::CBC -> new(
{
'key' => $main::db_pass_key,
'keysize' => 32,
'cipher' => 'Blowfish',
'iv' => $main::db_pass_iv,
'regenerate_key' => 0,
'padding' => 'space',
'prepend_iv' => 0
}
);
Код: Выделить всё
# /usr/local/etc/rc.d/mysql-server start
не получится отойти погулять - в процессе инсталяций программ будут вылазить окошки с опциями - надо make.conf ковырять чтоб ставилось как надо без вопросов.* - теперь можно на ближайшие минут 30-40 пойти погулять, ставит он много, по трафику получается около 100-110 метров.
Код: Выделить всё
setenv BATCH yes
Лучшеlissyara писал(а):Код: Выделить всё
setenv BATCH yes
Код: Выделить всё
make config-recursive
Код: Выделить всё
# cd /usr/local/etc
# cp php.ini-dist php.ini
Просто поражаюсь инертности общества, появилась вроде с 6.2serge писал(а):2. В 7 ветке и кажется начиная с 6.3 в утилитах ОС идет csup. Смысла использовтаь сторонее ПО типа cvsup-without-gui имхо нет.
А русская версия хандбука как раз с тех пор и не переписывалась, так что замечание а возможности юзания csup вместо cvsup там нет, кстати надо изучить вопрос различий, которые там вроде имеются и накатать статью в местную вики.man csup писал(а):FreeBSD February 1, 2006
Недавно кстати в рассылке freebsd-security как раз обсуждалась тема доступа из jail в материнскую систему, почему и как происходит.serge писал(а):Как с защитой дело обстоит?
Ну память уже не такая как раньшеf_andrey писал(а):Просто поражаюсь инертности общества, появилась вроде с 6.2serge писал(а):2. В 7 ветке и кажется начиная с 6.3 в утилитах ОС идет csup. Смысла использовтаь сторонее ПО типа cvsup-without-gui имхо нет.А русская версия хандбука как раз с тех пор и не переписывалась, так что замечание а возможности юзания csup вместо cvsup там нет, кстати надо изучить вопрос различий, которые там вроде имеются и накатать статью в местную вики.man csup писал(а):FreeBSD February 1, 2006