Команды и конфиги для удобства настройки системы после установки ОС FreeBSD:
cat /dev/null > /etc/motd /usr/libexec/locate.updatedb portsnap fetch extract cd /usr/ports/security/sudo && make install clean ee /usr/local/etc/sudoers cd /usr/ports/misc/mc && make install clean cd /usr/ports/sysutils/screen && make install clean screen cd /usr/ports/net/cvsup-without-gui && make install clean cp /usr/share/examples/cvsup/stable-supfile /etc/ mcedit /etc/stable-supfile
В файл пишем:
*default host=cvsup4.ru.FreeBSD.org *default base=/var/db *default prefix=/usr *default release=cvs tag=RELENG_8_0 *default delete use-rel-suffix *default compress src-all
cvsup -g -L2 /etc/stable-supfile cd /usr/src/ rm -rf /usr/obj make -j4 buildworld mcedit /etc/make.conf
В файл?
KERNCONF=BILLING
mcedit /boot/loader.conf
Записываем:
autoboot_delay="1" beastie_disable="YES" kern.maxusers="512" kern.ipc.nmbclusters="65535" verbose_loading="YES" accf_data_load="YES" accf_http_load="YES" net.inet.tcp.syncache.hashsize=1024 net.inet.tcp.syncache.bucketlimit=100 net.inet.tcp.tcbhashsize=4096 kern.ipc.nsfbufs=10240
mcedit /etc/sysctl.conf
В него:
net.inet.tcp.blackhole=1 net.inet.udp.blackhole=1 kern.ipc.nmbclusters=0 # Отсутствие ограничений на размер зоны kern.ipc.nmbclusters=262144 kern.ipc.somaxconn=4096 kern.ipc.maxsockets=204800 kern.maxfiles=204800 kern.maxfilesperproc=200000 net.inet.ip.portrange.first=1024 net.inet.ip.portrange.last=65535 net.inet.ip.portrange.randomized=0 net.inet.tcp.maxtcptw=40960 net.inet.tcp.msl=30000 net.inet.tcp.syncookies=1 net.inet.tcp.nolocaltimewait=1 net.inet.tcp.fast_finwait2_recycle=1
cp -r /boot/kernel /boot/kernel.wrk make -j4 buildkernel make installkernel mv /boot/kernel /boot/kernel.new mv /boot/kernel.wrk /boot/kernel nextboot -k kernel.new reboot mv /boot/kernel.new /boot/kernel mergemaster -p cd /usr/src make installworld make delete-old mergemaster cd /usr/ports/ports-mgmt/portupgrade && make install clean pkgdb -F portupgrade bash reboot cd /usr/src/ make delete-old-libs