FreeBSD - beginning

rc.conf

 # -- sysinstall generated deltas -- # Mon Feb  8 14:24:58 2010
 # Created: Mon Feb  8 14:24:58 2010                           
 # Enable network daemons for user convenience.                
 # Please make all changes to this file, not to /etc/defaults/rc.conf.
 # This file now contains just the overrides from /etc/defaults/rc.conf.
 keymap="ru.koi8-r"                                                     
 # -- sysinstall generated deltas -- # Mon Feb  8 20:31:35 2010         
 mousechar_start="3"                                                    
 font8x8="cp866-8x8"                                                    
 font8x14="cp866-8x14"                                                  
 font8x16="cp866b-8x16"                                                 
 scrnmap="koi8-r2cp866"                                                 
 keyrate="fast"                                                         
 keymap="ru.koi8-r"                                                     
 
 # --------- quota ----------------------------------------
 enable_quotas="YES"                                       
 check_quotas="NO"                                         
 # --------------------------------------------------------
 
 gateway_enable="YES"
 firewall_enable="YES"
 firewall_script="/etc/ipfw.sh"
 
 sshd_enable="YES"
 syslogd_flags="-ss"
 
 # ------------ mail --------------------------------------
 sendmail_enable="NO"
 sendmail_submit_enable="NO"
 sendmail_outbound_enable="NO"
 sendmail_msp_queue_enable="NO"
 
 postfix_enable="YES"
 courier_authdaemond_enable="YES"
 courier_imap_pop3d_enable="YES"
 # --------------------------------------------------------
 
 smartd_enable="YES"
 proftpd_enable="YES"
 apache22_enable="YES"
 apache22_http_accept_enable="YES"
 mysql_enable="YES"
 radiusd_enable=YES
 mpd_enable=YES
 
 # -- sysinstall generated deltas -- # Fri Mar  5 19:43:48 2010
 ifconfig_sk0="inet x.x.x.x  netmask x.x.x.x"
 defaultrouter="x.x.x.x"
 # -- sysinstall generated deltas -- # Mon Mar 15 13:06:34 2010
 ifconfig_sk1="inet x.x.x.x  netmask x.x.x.x"
 hostname="xxxxxxx"
 
 # --------------------- fsck ----------------------------------
 fsck_y_enable="YES"
 background_fsck="NO"
 # -------------------------------------------------------------

Установка ssh

Установка postfix

 # cd /usr/ports/mail/postfix
 # make install clean
 # postalias /etc/aliases
 # /usr/local/etc/rc.d/postfix start

Настройка periodic

/etc/periodic.conf

 # 406.status-gmirror
 daily_status_gmirror_enable="YES"                       # Check gmirror(8)
 
 # 400.status-pkg
 weekly_status_pkg_enable="YES"                          # Find out-of-date pkgs
 pkg_version=pkg_version                                 # Use this program
 pkg_version_index=/usr/ports/INDEX-8                    # Use this index file

Ссылки

Комментарии

 
blog/2011/12/06-freebsd_-_beginning.txt · Последние изменения: 2011/12/06 17:57 — Антон Бугреев · []