アットウィキロゴ
「init」の編集履歴(バックアップ)一覧に戻る

init - (2012/05/28 (月) 08:50:21) のソース

&link_edit()&topicpath()
初期設定
# touch /etc/wall_cmos_clock
# ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
# ntpdate jst.mfeed.ad.jp

# cd
# vi .cshrc
set autolist
set nobeep
set history = 10000
set savehist = 10000
プロンプトのhostnameのsオプションを外す
# source .cshrc
# vi /etc/make.conf
&nolink(MASTER_SITE_OVERRIDE?=ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/)
BATCH="yes"
# vi /etc/motd
# vi /etc/syslog.conf
 *.* /dev/console
 *.* /[[var]]/log/all.log
# touch /var/log/all.log
# chmod 600 /var/log/all.log
# vi /etc/newsyslog.conf
all B
message B
wtmp 168 B
# vi /etc/ntp.conf
server [[ntp]].jst.mfeed.ad.jp
# vi /etc/rc.conf
ntpd_enable="YES"
# /etc/rc.d/ntpd start
# ntpq -pで確認
# vi /etc/hosts.allow
all : 192.168.0.0/255.255.255.0 allow
[[sshd]] : 111.111.111.111 : allow
all : all : deny
/[[etc]]/rc.d/sshd restart
# vi /boot/loader.conf
vesa_load="YES"
bitmap_load="YES"
/boot/splash.bmpを用意
# portsnap fetch
# portsnap extract
二回目からは
# portsnap fetch
# portsnap update
# vi /etc/crontab
0 3 * * * root /usr/sbin/portsnap cron
0 5 * * * root /usr/sbin/portsnap update追加
# cd /usr/ports/ports-mgmt/portupgrade
# portupgrade -a BATCH=yes
# portversion -v