ポラ

ポラロイド、フィルム生産終了だそうです。
昔はプロの写真機材のひとつに、普通のカメラに取り付けて使うポラバックというのがあって、それで撮影直前にチェックとかしてたわけですが。
あーあ。
俺はといえば、まだカメラのオーバーホールの見積もりがきません。
ま、気長に待ちます。

portinstall

portinstall って、ps でみると、いくつインストールするものがあっていまいくつ目か、というのがわかるんだな。知らなかった。

applepie# ps ax | grep port
2488  p1  S+     0:02.21 ruby18: portinstall: [13/48] multimedia/libdvdread (ruby18)
65766  p1  S+     0:00.01 /usr/bin/script -qa /tmp/portinstall.2488.12 env make

NFS mounted /usr/local

Another quick hack for FreeBSD.

I have NFS mounted /usr/local on my lab’s FreeBSD boxes, built by FreeBSD ports. It has its own local startup directory, /usr/local/etc/rc.d . However, they aren’t launched at startup because /usr/local isn’t mounted when /etc/rc determines the order to kick (rc.subr based) scripts in /etc/rc.d and /usr/local/etc/rc.d.

Fortunately, we have an exception in this case. Legacy *.sh scripts are kicked by /etc/rc.d/locakpkg, as the final process of startup. So, I wrote /usr/local/etc/rc.d/local_startup.sh to kick rc.subr based scripts. It works pretty good!

#!/bin/sh
. /etc/rc.subr
load_rc_config 'XXX'
case ${local_startup} in
[Nn][Oo] | '') ;;
*)      find_local_scripts_new ;;
esac
files=`rcorder ${skip} ${local_rc} 2>/dev/null`
_boot="start"
for _rc_elem in ${files}; do
run_rc_script ${_rc_elem} ${_boot}
done
echo ''

Hmm, I think this script must support “stop”, not only “start”…

LDAP compatibility of Linux ABI on FreeBSD

研究室のFreeBSD環境では、ユーザ認証にLDAPを使っていることが災いして、Linux ABIで acroread とかを使えなかったんだけど、今日はそれを解決した。わーい。
ちょっと役に立つ話なので英語で書いておきます。
I have a LDAP server, but no NIS server in my lab for passwd database. LDAP is quite convenient way to manage passwd database since it’s compatible with both of recent Unix-based systems and samba. However, it requires nss_ldap or similar mechanisms, usually not included in base system.
My problem was Linux ABI on FreeBSD boxes in my lab. Linux ABI has built-in NIS compatibility, but no LDAP compatibility. It’s really problematic when Linux binaries call getpwent() or something to lookup the passwd database (to make “dot-files” in home dirs), because Linux ABI know nothing about LDAP users. Flash plugin is almost OK without getpwent(), but Acrobat and Skype aren’t.
But finally I found an workaround today!
The workaround is:
– Just make /compat/linux/etc/passwd, without encrypted passwords,
– and it’s instantly available by “getent passwd | awk -F: “{ if($4==OUR_GID) print $1}” ” !!

りんご

みかんの入ってた網をぐるぐる。なつかしい。
20080216052.jpg
網の底を溶かして留めてあるわけだが、そこに材質表示の「プラ」マークが入っていたのに驚いた。すごいね。