FreeBSD Tips
出典: 雑多なメモ Wiki版
- たんなるメモ24
perl5.10 に上げたときいろいろ発見した件
libchk
とか
portsclean -L
/usr/local/libdata/ldconfig/
で
# /etc/rc.d/ldconfig start
あーやっぱり FreeBSD が大好きです。
- たんなるメモ23
- tzsetup(8)
- /etc/mergemaster.rc
- うれしす
- Firefox35
- 要注意
Firefox 3.5 and HTML5 Certain functions used to display HTML5 elements need the sem module. If your Firefox crashes with the following message while viewing a HTML5 page: "Bad system call (core dumped)" you need to load the sem module (kldload sem). To load sem on every boot put the following into your /boot/loader.conf: sem_load="YES"
- たんなるメモ23
portsnap fetch portsnap extract portsnap update
portsnap fetch portsnap update ezjail-admin update -P
- ついでに freebsd-update 系メモ
- projects: freebsd-update-server
- Linux にあるお便利ツール @FreeBSD
watch @Linux ===> sysutils/topless @FreeBSD ps auxf @Linux ===> sysutils/pstree @FreeBSD
- *BSD 系の login name 問題
- CGI 等で sendmail を起動する際 -f を指定しなかった場合の sender の挙動とかとか
id -p
- で確認してみそ
- apache を起動する時に id -p して、login という項目が表示されていればビンゴ!
- (see man 2 setlogin, getlogin)
- (そーいやぁ 昔は exec login しろっていってたよなぁ...)
- (*BSD のシステム運用の際は今も昔も要注意)
- たんなるメモ22
- FreeBSD の devfs 系
/sbin/devfs rule -s 1 delset /sbin/devfs rule -s 1 add hide /sbin/devfs rule -s 2 delset /sbin/devfs rule -s 2 add path null unhide /sbin/devfs rule -s 2 add path zero unhide /sbin/devfs rule -s 2 add path crypto unhide /sbin/devfs rule -s 2 add path random unhide /sbin/devfs rule -s 2 add path urandom unhide /sbin/devfs -m /foo_chrootdir/dev ruleset 1 /sbin/devfs -m /foo_chrootdir/dev rule applyset /sbin/devfs -m /foo_chrootdir/dev rule -s 2 applyset
/sbin/devfs rule showsets /sbin/devfs rule -s 1 show /sbin/devfs rule -s 2 show
- extended rc 系では
umount /foo_chrootdir/dev 2>/dev/null devfs_domount /foo_chrootdir/dev devfsrules_hide_all devfs -m /foo_chrootdir/dev rule -s 2 applyset
- rulesetは rcvar の 'devfs_rulesets' で定義
- (増加する ttyp*, ptyp* も hide (謎))
- FreeBSD ports でスマートなカスタマイズ方法
- /usr/ports/hoge/fugaで
Makefile.local scripts/ほげら
- を駆使してなんとかする
- (ほげら: 最後に独自パッチをあてたければ、post-patch とか)
- (Makefile.local も scripts/以下 も make update では消えないので安心)
過去ログ
昔のものは、雑多なメモ

