hns - 日記自動生成システム - Version 2.19.9

先月 2000年06月 来月
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2000年06月12日(月) 旧暦 [n年日記]

#1 [NetBSD] boot-device: と聞かれてしまう場合の逃げ道の一つ

次のように hard-code してしまうこと。
From: "R. C. Dowdeswell" <elric@mabelode.imrryr.org>
Cc: port-macppc@netbsd.org
Date: Thu, 08 Jun 2000 16:29:30 -0700

#config		netbsd	root on ? type ?
config		netbsd	root on sd0 type ffs
#config		netbsd	root on ? type nfs

#2 [hns] Namazu for hns の方も更新していなかった。

まずは検索して見て:

でも一応動いていたので、(自分の窓に) namazu and hns と入力したら 2000/03/07 #0 と出たので、それを見て、 (と思ったけれど、正しくは
2000/03/07 #1
のような気がする。新しいものでは直っているか調べなくては。

索引を更新して見て:

makoto@harry ■21:55:42/000612(~)> diary/bin/hns-index2 
Reading .mknmzrc
/amd/milano/export/home/makoto/diary/todo was deleted!
290 files are found to be indexed.
1/290 - /amd/ki.nu/export/home/makoto/diary/.AppleDouble/todo [text/hnf]
2/290 - /amd/ki.nu/export/home/makoto/diary/2000/.AppleDouble/d20000101.hnf [text/hnf]
3/290 - /amd/ki.nu/export/home/makoto/diary/2000/.AppleDouble/d20000122.hnf [text/hnf]
....
....
272/272 - /amd/ki.nu/export/home/makoto/diary/todo [text/hnf]
Writing index files...
[Append]
Date:                Mon Jun 12 22:04:01 2000
Added Documents:     272
Deleted Documents:   96
Size (bytes):        1,206,593
Total Documents:     272
Added Keywords:      5,688
Total Keywords:      9,674
Wakati:              module_kakasi -ieuc -oeuc -w
Time (sec):          203
File/Sec:            1.34
System:              netbsd
Perl:                5.00503
Namazu:              2.0.5
のように始まって、終った。うーん .AppleDouble は避けなくては。
namazu for hns は確か Kenji さんのところかな。
次のように変更したら
--- .mknmzrc~   Fri Apr  7 23:18:50 2000
+++ .mknmzrc    Mon Jun 12 22:04:27 2000
@@ -13,6 +13,7 @@
 $EXCLUDE_PATH  .= '|20\.3\-etc\-NEWS';
 $EXCLUDE_PATH  .= '|\/old';
 $EXCLUDE_PATH  .= '|^\.';
+$EXCLUDE_PATH  .= '|\.Apple.*';
 
 $ALLOW_FILE = '.*\.html?|.*\.txt|.*_default|.*\.pdf|.*\.doc';
 $ALLOW_FILE .= '|.*\.shtml';
19 files are found to be indexed.
と激減してしまった。(と思ったのは勘違いで、更新モードなので、 これでいいのかも知れない)
Writing index files...
[Append]
Date:                Mon Jun 12 22:12:27 2000
Deleted Documents:   90
Updated Documents:   1
Size (bytes):        2,098
Total Documents:     182
Added Keywords:      44
Total Keywords:      9,718
Wakati:              module_kakasi -ieuc -oeuc -w
Time (sec):          30
File/Sec:            0.03
System:              netbsd
Perl:                5.00503
Namazu:              2.0.5

#3 [hns] namazu_for_hns-2.0-pl

前のやり方を見て、同じことをして見る。:

makoto@harry ■22:30:49/000612(...src/namazu_for_hns-2.0-pl2)> ./setup-u.sh $HOME/diary/namazu2
cp -p hns-index2 /home/makoto/diary/bin/
cp: /home/makoto/diary/namazu2/libexec/namazu.cgi: No such file or directory
cp -p /home/makoto/diary/namazu2/libexec/namazu.cgi /home/makoto/public_html/diary/namazu2.cgi
cp mknmzrc /home/makoto/diary/namazu2/etc/
cp namazurc /home/makoto/diary/namazu2/etc/namazu/
cp: /home/makoto/diary/namazu2/share/namazu/template/NMZ.*: No such file or directory
cp -p template/NMZ.* /home/makoto/diary/namazu2/template/
makoto@harry ■22:31:11/000612(...src/namazu_for_hns-2.0-pl2)> 

何か間違っている。INSTALL.ja を読んで見る:

■ Namazu をサイト・インストールして共有する場合
....
3. 起動スクリプト, 設定ファイルをインストール
  % ./setup.sh /usr/local

もう一度やり直し:

makoto@harry ■22:33:54/000612(...src/namazu_for_hns-2.0-pl2)> ./setup-u.sh /usr/local
cp -p hns-index2 /home/makoto/diary/bin/
cp -p /usr/local/libexec/namazu.cgi /home/makoto/public_html/diary/namazu2.cgi
cp mknmzrc /home/makoto/diary/namazu2/etc/
cp: /usr/local/etc/namazu/namazurc: Permission denied
cp namazurc /usr/local/etc/namazu/
cp -p template/NMZ.* /home/makoto/diary/namazu2/template/

root になって見るが、(完全間違い):

root@harry  22:34:42/000612(...src/namazu_for_hns-2.0-pl2)#  ./setup-u.sh /usr/local
mkdir -p /root/diary/namazu2
mkdir -p /root/diary/namazu2/etc
mkdir -p /root/diary/namazu2/index
mkdir -p /root/diary/namazu2/template
cp -p hns-index2 /root/diary/bin/
chmod: /root/diary/bin/hns-index2: Not a directory
cp: /root/public_html/namazu2.cgi: No such file or directory
cp -p /usr/local/libexec/namazu.cgi /root/public_html/namazu2.cgi
cp mknmzrc /root/diary/namazu2/etc/
cp namazurc /usr/local/etc/namazu/
cp -p template/NMZ.* /root/diary/namazu2/template/
root@harry  22:34:50/000612(...src/namazu_for_hns-2.0-pl2)# 

/root というのは困った。消しておく
root@harry  22:37:53/000612(~)# rm -rf /root/diary

--- ○.3 もう一度やり直し の中で、:

cp: /usr/local/etc/namazu/namazurc: Permission denied
cp namazurc /usr/local/etc/namazu/
とある部分がまずいだけ。後で次のものをどこかに写せばいいと思う。
Index         /home/makoto/diary/namazu2/index
#Replace       /home/foo/public_html/  http://www.foo.bar.jp/~foo/
Logging       on
Lang          ja

実行して見る:

makoto@harry ■22:41:07/000612(~)> diary/bin/hns-index2 
Unquoted string "html" may clash with future reserved word at /home/makoto/.mknmzrc line 18.
Unquoted string "txt" may clash with future reserved word at /home/makoto/.mknmzrc line 18.
Unquoted string "pdf" may clash with future reserved word at /home/makoto/.mknmzrc line 18.
/amd/ki.nu/export/home/makoto/diary/2000/d20000612.hnf ファイルは更新されています
4個のファイルがインデックス作成の対象として見つかりました
1/4 - /amd/ki.nu/export/home/makoto/diary/2000/d20000322.hnf はサイズが 0 なので無視します
1/3 - /amd/ki.nu/export/home/makoto/diary/2000/d20000404.hnf はサイズが 0 なので無視します
1/2 - /amd/ki.nu/export/home/makoto/diary/2000/d20000509.hnf はサイズが 0 なので無視します
1/1 - /amd/ki.nu/export/home/makoto/diary/2000/d20000612.hnf [text/hnf]
(gettext って素晴しい)
さて、どれが動いているか分らなくなってしまった。 (namazurc は適切なものが使われているかということ)
makoto@harry ■22:48:14/000612(~)> cp  /usr/local/src/namazu_for_hns-2.0-pl2/namazurc public_html/diary



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)