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

  • 04/19(金) CQ Ham Radio
  • 04/20() 木之本会議
  • 04/25(木) Interface
  • 04/27() 2100 - 2100 ALL JA
  • 04/28() tokuda net 誕生日
  • 04/28() 自動車保険期限 (OS/Browser 制限有)
  • 04/30(火) NTT 東 払込期日
  • 04/30(火) ○ 固定資産税振替・支払
  • 05/01(水) atactl check
  • 05/01(水) 不燃ごみ
  • 05/03(金) 0900-1500 東京コンテスト
  • 05/14(火) All JA ログ締切
  • 05/15(水) 不燃ごみ
  • 05/18() 木之本会議
  • 403 JNUG 総会/BOF 2017/07/08 (土)
  • 402 用途別 Emacs ( C, LaTeX, 日本語 )
  • 380 cvsweb の移行
  • 370 tamago 辞書登録
  • 368 CROSS (cross/i386-mingw32, cross/powerpc-linux ) Framework --- binutils + gcc
  • 363 Wanderlust+HyperEstraier
  • 360 evbppc 用 patch / 玄箱
  • 335 /dev/battery is missing hack | libgcc_s_pic.a is missing | samba の -PIE 問題335 ntpd monitor
  • 325 tcode頁の更新
  • 322 software |hardware
  • 321 emacs-22 | IPv6
  • 320 bulk build (Mac OS X 10.4 and NetBSD/macppc)
  • 310 Wanderlust の Namazu の挙動
  • 290 WordPress 1.2 -> 1.5 migration
  • 220 Wanderlust で日本語題名の wl-summary-print-buffer
  • 215 NetBSD/ofppc
便利なツール
Emacs
らくらく 入門
rakuraku-emacs-cover

先月 2024年04月 来月
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 による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2017年09月02日() 旧暦 [n年日記] [更新:"2017/09/03 13:30:38"]

#1 [Network] IPv6 router on NetBSD

  • Interlink connection
  • PPPoE
  • dhcp6c
  • rtadvd

Interlink:

「固定 IP 一個」 (1,296 円/月) を申込むと IPv6 の /56 も 申込めば、ただで付いて来る (ただし無料体験終了後)

Hardware:

bge0  PPPoE Connection
wm0   local network

dhcp6c.conf:

install from pkg/pkgsrc
wide-dhcpv6-20080615 DHCP6 client, server and relay agent by WIDE project
/usr/pkg/etc/dhcp6c.conf
#  Identity Association for Prefix Delegation 
interface pppoe6 {
        send ia-pd 0;
};
# 
id-assoc pd 0 {
        prefix-interface wm0 {
        sla-len 0;
        };
};
これで 外側 if として pppoe6 を使い、
wm0 に内側の network を接続する構成に出来る
inet6 xxxx:yyyy:zzzz:pp00:(mac address から生成)
が振られる

/etc/rtadvd.conf:

wm0:\
       :addr="xxxx:yyyy:zzzz:pp02::":prefixlen#64:

もう一つ別のルータで:

(用語は man dhcp6c.conf 参照)
interface wm0 {
        information-only;
};
interface pppoe6 {
# IA_PD (Identity Association for Prefix Delegation)
        send ia-pd 0;
# IA_PD (Identity Association for Non-temporary Addresses)
        send ia-na 1;
};
# Identity Association 
id-assoc pd {
        prefix-interface wm0 {
                sla-id 1;  # subnet id
                sla-len 16 ; # subnet length
        };
};
# None-temporary address allocatio
id-assoc na 1 {
};
ネットワーク構成に、どう prefix を振るかを決めてから考える(必要がある)


2008年09月02日(火) 旧暦 [n年日記] [更新:"2008/09/02 16:04:25"]

#1 [NetBSD] 相変らず cygwin-gcc 等を

  • gcc-4.2.1/libstdc++-v3/crossconfig.m4 を変更する必要があるらしい
  • それを変更した場合には aclocal と autoconf を起動する必要がある
  • その結果から差分を作る時に最少限とするには、元の automake と同じ版 を使った方が良い
  • それは automake-1.9.6 なので pkgsrc/devel/automake で cvs log を見て
       198  10:27   cvs update -D 2005-07-16
       199  10:27   sudo make clean && make
    
    として
    sudo pkg_delete -f automake しておいてから
    make package して見る
    
    autoconf も 2.59 にして見る。始末の悪いやつが出て来た。
    ===> Creating toolchain wrappers for autoconf-2.59
    sh: Syntax error: expecting "in"
    
    2.59 の中でも古い方だったので 1.60 まで進めて見る。 結局:
    		cd devel/automake
       263  11:04   cvs update -r 1.60 Makefile
       267  11:05   make clean && make
       268  11:05   cd ../../lang/perl5
       269  11:05   less ../../devel/automake/Makefile
       270  11:05   cvs update -D 2005-07-14 .
       271  11:06   cd ../../devel/autoconf
       276  11:06   make clean && make
       278  11:07   sudo pkg_delete -f autoconf
       279  11:07   sudo make package
    
何か間違っている気がするが: .. だって短かすぎ
ttyr8:makoto@genova 11:12:09/080902(/export/local-src)> ( cd gcc-4.2.1/libstdc++-v3 ; aclocal ; autoconf )
ttyr8:makoto@genova 11:12:43/080902(/export/local-src)> ls -lt gcc-4.2.1/libstdc++-v3/configure*
-rwxr-xr-x  1 makoto  wheel   915000 Sep  2 11:12 gcc-4.2.1/libstdc++-v3/configure*
-rwxr-xr-x  1 makoto  wheel  2996107 Aug 30 11:00 gcc-4.2.1/libstdc++-v3/configure~*
-rwxr-xr-x  1 makoto  wheel  3163982 Aug 30 08:59 gcc-4.2.1/libstdc++-v3/configure.orig*

CVS って time machine だなぁ:

I can't imagine programming without it... that would be like parachuting without a parachute!
--Brian Fitzpatrick on CVS
名言。


2005年09月02日(金) 旧暦 [n年日記] [更新:"2005/09/02 10:42:19"]

#1 [NetBSD][build.sh] 20050829ts

cross を使ってだましだまし完走。
NetBSD ibook.ki.nu 3.99.8 NetBSD 3.99.8 (GENERIC) #1: Fri Sep  2 01:08:46 JST 2005  
root@tc2120:/export/20050829/checkout/src/sys/arch/macppc/compile/obj/GENERIC macppc
self だと、 groff を作るところで問題 がある。では cross では、ということで、試して見た。 実は、macppc を cross で作るのは初めて。 いくつか問題があった。
  1. mkboot を 作るところ。disklabel.h で定義してある(はずの)内容が未定義になる。
  2. mkboot を走らせるところ。これは build machine で動かすので cross してはいけない
    290  8:58    cc -O -I/export/20050829/checkout/src/destdir.macppc/usr/include -o mkboot \
                 /export/20050829/checkout/src/sys/arch/macppc/stand/ustarboot/mkboot.c
    298  9:10    mv sys/arch/macppc/stand/ustarboot/mkboot sys/arch/macppc/stand/ustarboot/obj/
    
  3. kernel を作るのに cc を使っていた
build.sh を実行したのは次のような方法。これは上の 3 番対策
sudo env CC=/export/20050829/checkout/src/obj/tooldir.NetBSD-2.0-i386/bin/powerpc--netbsd-gcc LD=/export/20050829/checkout/src/obj/tooldir.NetBSD-2.0-i386/bin/powerpc--netbsd-ld ./build.sh -m macppc -a powerpc -u release


2004年09月02日(木) 旧暦 [n年日記]

更新: "2004/09/06 23:08:30"

#1 [pkgsrc] mklivecd

             cd /export
121  23:56   cvs -d /HOGE co -r netbsd-2-0 -D 2004-08-21 src/sys
126  0:03    cd /export/livecd/
127  0:03    mklivecd kernel
1593308   38660  172308 1804276  1b87f4 netbsd
cp: /usr/pkg/share/grub/i386-/stage2_eltorito: No such file or directory
cp: /usr/pkg/share/grub/i386-/iso9660_stage1_5: No such file or directory
===> boot/kernel installed..

ttyp4:makoto@celeron  0:11:04/040903(/export/livecd)> 
Making a GRUB bootable CD-ROM
ttyp4:makoto@celeron  0:20:20/040903(/export/livecd)> sudo mklivecd base
Password:
===> Installing base sets
===> Installing configuration files
===> Creating devices

===> Target base successful
ttyp4:makoto@celeron  0:21:36/040903(/export/livecd)> 
ttyp4:makoto@celeron  0:22:27/040903(/export/livecd)> sudo mklivecd chroot
===> Entering into the chroot!
===> pkgsrc directory ready.

# pwd
/
# vipw
vipw: no changes made
vipw: /etc/master.passwd: unchanged
# exit

===> Creating /stand/mfs_root.tbz
===> Creating /stand/mfs_var.tbz
===> Creating /stand/mfs_dev.tbz
===> Creating /stand/mfs_etc.tbz
===> Unmounting pkgsrc.
ttyp4:makoto@celeron  0:23:26/040903(/export/livecd)> 
sudo mklivecd iso
...
Writing:   Initial Padbock                         Start Block 0
Done with: Initial Padbock                         Block(s)    16
Writing:   Primary Volume Descriptor               Start Block 16
Done with: Primary Volume Descriptor               Block(s)    1
Writing:   Eltorito Volume Descriptor              Start Block 17
/usr/pkg/bin/mkisofs: Uh oh, I cant find the boot image 'boot/grub/stage2_eltorito' !
ttyp4:makoto@celeron  0:24:15/040903(/export/livecd)> 
   193  0:41    sudo touch iso/usr/share/info/dir
   194  0:41    sudo touch iso/altroot/y

sudo mklivecd iso
We need /usr/pkgsrc/sysutils/grub
   234  1:00    sudo mklivecd kernel
   235  1:00    sudo mklivecd base
   236  1:01    sudo mklivecd chroot
   237  1:02    sudo mklivecd iso
   238  1:02    ls -lt
   239  1:02    rm NetBSD-LiveCD.iso
   240  1:02    sudo mklivecd iso
-rw-r--r-- 1 root wheel 144048128 Sep 3 01:03 NetBSD-LiveCD.iso


2003年09月02日(火) 旧暦 [n年日記]

#3 [NetBSD][macppc] G3/300/1M

NetBSD 1.6U (INSECURE-ZS-L2PB2-SHM) #8: Tue Aug 5 18:11:05 JST 2003
makoto@ty:/export/20030726ts/src/sys/arch/macppc/compile/INSECURE-ZS-L2PB2-SHM
total memory = 160 MB
avail memory = 140 MB
using 2048 buffers containing 8292 KB of memory
bootpath: /bandit@F2000000/pci-bridge@14/ACARD,6260@7/disk@0
mainbus0 (root)
cpu0 at mainbus0: 750 (Revision 202), ID 0 (primary)
cpu0: HID0 8090c0a4<EMCP,DOZE,DPM,ICE,DCE,SGE,BTIC,BHT>
cpu0: 512KB, (2:1), Pipelined synchronous burst (PB2) SRAM backside L2 cache
以前に起動しないと言っていた kernel の気もする..
root on wd0a dumps on wd0b
WARNING: clock lost 13620 days -- CHECK AND RESET THE DATE!
root file system type: ffs

やはり止ってしまった。:

同じ kernel を netbsd.5 で起動した時には動いたと思ったが。
tty00:root@ty  10:44:32/030902(/)# ls -lagt netbsd*
-rwxr-xr-x  2 root    wheel  4611691 Aug  5 19:05 netbsd-as-is
-rwxr-xr-x  2 root    wheel  4611691 Aug  5 19:05 netbsd.5
-rwxr-xr-x  2 root    wheel  4611691 Aug  5 19:01 netbsd-no-verbose
-rwxr-xr-x  2 root    wheel  4611691 Aug  5 19:01 netbsd.4
-rwxr-xr-x  1 root    wheel  4611675 Aug  5 18:53 netbsd.3
-rwxr-xr-x  3 root    wheel  4611675 Aug  5 18:11 netbsd
-rwxr-xr-x  3 root    wheel  4611675 Aug  5 18:11 netbsd-INSEURE-ZS-L2PB2-SHM-bootverbose
-rwxr-xr-x  3 root    wheel  4611675 Aug  5 18:11 netbsd.2
-rwxr-xr-x  3 makoto  wheel  4611627 Aug  4 15:31 netbsd-1.6T-INSECURE-L2CR-SHM
-rwxr-xr-x  3 makoto  wheel  4611627 Aug  4 15:31 netbsd-INSECURE-ZS-L2PB2-SHM-modem
-rwxr-xr-x  3 makoto  wheel  4611627 Aug  4 15:31 netbsd.1
-rwxr-xr-x  1 root    wheel  4618688 Jul 31 15:41 netbsd-1.6U
-rwxr-xr-x  1 root    wheel  4586289 Jun 22 22:31 netbsd.0
-rwxr-xr-x  1 makoto  wheel  4572157 Jun 20 08:44 netbsd.-
tty00:root@ty  10:44:35/030902(/)# rm netbsd
tty00:root@ty  10:44:50/030902(/)# ln netbsd.5 netbsd
tty00:root@ty  10:44:54/030902(/)# reboot
Sep  2 10:44:57 ty reboot: rebooted by makoto
Sep  2 10:44:57 ty syslogd: Exiting on signal 15
syncing disks... 8 5 done
rebooting


Open Firmware, 2.0.2
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
 ok
0 > boot 
>> NetBSD/macppc OpenFirmware Boot, Revision 1.5
>> (root@serv, Thu Jul 31 15:13:58 JST 2003)
4160052+239408 [210080+175563]=0x490684
 start=0x100000
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.6U (INSECURE-ZS-L2PB2-SHM) #11: Tue Aug  5 19:05:20 JST 2003
        makoto@ty:/export/20030726ts/src/sys/arch/macppc/compile/INSECURE-ZS-L2PB2-SHM
total memory = 160 MB
avail memory = 140 MB
using 2048 buffers containing 8292 KB of memory
bootpath: /bandit@F2000000/pci-bridge@14/ACARD,6260@7/disk@0
mainbus0 (root)
cpu0 at mainbus0: 750 (Revision 202), ID 0 (primary)
cpu0: HID0 8090c0a4<EMCP,DOZE,DPM,ICE,DCE,SGE,BTIC,BHT>
cpu0
netbsd.4:  cpu0: 512KB backside L2 cache
netbsd.5:  cpu0

ACARD,6260:

disk は全然悪くなくてカードの所為で:
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
wd0e: device timeout writing fsbn 16 of 16-19 
   (wd0 bn 2639968; cn 2619 tn 0 sn 16), retrying
Firmware 3.0.1 を 3.2.1 に更新したけれども。同じ。

#2 [Namazu][hns] robot と hns

  1. 馬場さんの修正をして URL を diary/yyyy/mm/dd にする。
  2. robot が入口を見に来た時には diary の下のカレンダリンクだけを返す
といいような気がする (と表面的に毎日の更新が減るから、点数が下るかな)。

#1 [機械] fvwm2 が .fvwm2rc を読んでくれない

朝起動したら、いつもと画面が違う。 良く々々見ると ~/.fvwm が 出来ていて、その下を見に行っている。 ( ~/.xinitrc を消して、手で fvwm2 を起動したら分った)
fvwm2 -f .fvwm2rc-keep [FVWM][Read]: <<ERROR>> file '.fvwm2rc-keep' not found in /home/makoto/.fvwm or /usr/X11R6/share/fvwm2
mv ~.fvwm2rc ~/.fvwm/ したら読んでくれるようになった。
心当りはないのだけれど何故かなぁ。


2002年09月02日(月) 旧暦 [n年日記]

#3 [office] 定款の認証

法務局まで行ったら、実は公証役場はすぐ近くにあった。無駄足。 印紙 40k。費用 50k + 1k。合計 91k。

定款は A4 で作ってホッチキス綴:

だったけれど、本当は B5 の方が良かった見たい。 後に付けた証明書とか、くれた袋とかを見ると。
でも素人だと分っても親切に教えてくれた。 実際に問題になったのは
  • 「目的」の内容
  • 役付の任期
  • 額面・無額面の区別がなくなったので、そういう用語は使わない
くらいかな。
LaTeX の見本は全で作ってどこかに置いておこう。

#2 [MHonArc][Namazu] filter/mhonarc.pl から Date を取出すこと

Earl Hood 自らお答えをいただく。
(今だに CF で作った sendmail.cf を使っている) sendmail.cf の中に次のような部分がある。
HReceived: $?sfrom $s $.$?_($?s$|from $.$_)
        $.by $j ($v/$Z)$?r with $r$. id $i$?u
        for $u; $|;
        $.$b
ところが、これと majordomo の組合せだと、
for <outgoing-mlname@servername>
というような、隠し宛先が入ってしまうので、僕の場合、 手で、三行目を一行削っている。
HReceived: $?sfrom $s $.$?_($?s$|from $.$_)
        $.by $j ($v/$Z)$?r with $r$. id $i$?u
        $.$b
ところが、これでは、三行目の最後に入っていた ; も 一緒に削ってしまっていた。そこで、これを
HReceived: $?sfrom $s $.$?_($?s$|from $.$_)
        $.by $j ($v/$Z)$?r with $r$. id $i$?u;
        $.$b
のように二行目の最後に ; を付けておけば良い ということが分った。多分、一行削る代りに、
for $u; $|; → $|;
とすれば良かったのかも知れない。

#1 [NetBSD] sort: ftmp: mkstemp(".."): Too many open files

sort: ftmp: mkstemp("/tmp/sort.022784gd"): Too many open files
こういう時は descriptor を増やせばいいと気が付くのに 数か月かかった。
ttyra:makoto@u > limit
cputime         unlimited
filesize        unlimited
datasize        1048576 kbytes
stacksize       2048 kbytes
coredumpsize    unlimited
memoryuse       530412 kbytes
descriptors     64 
memorylocked    176804 kbytes
maxproc         160 

ttyra:makoto@u > unlimit descriptors
ttyra:makoto@u > limit |grep desc
descriptors     1772 


2001年09月02日() 旧暦 [n年日記]

#3 [Network] Netatalk が 'no router' と言う時は

etc/atalkd/main.c の次のところ
134 as_timer()
..
240 } else {
241     /*
242      * Configure for no router operation.  Wait for a route
243      * to become available in rtmp_packet().
244      */
245     syslog( LOG_INFO, "config for no router" );

#2 [館山]

房総スカイライン(無料部分) -> R410 -> 房総スカイライン(有料部分)を通らなくて済む脇道 -> 鴨川有料 -> 鴨川 -> 千倉 -> -> 家萬寿水産 -> おどや -> (まぐろの)大将 -> JUSCO -> 三芳村・道の駅

#1 [NetBSD] macppc boot.c

stand/ofwboot/boot.c に netbsd.gz, netbsd.macppc が入ったのは 8/13 日から。
いや、実はどこを直せば入るかなと探していたら、既に入っていたという話。


2000年09月02日() 旧暦 [n年日記]

#1 [NetBSD] macppc/iBook fsck 問題

root@nazuha  1:47:50/000903(...sbin/fsck_ffs)# ls -lagi /bin/stty
ls: /bin/stty: Bad file descriptor
root@nazuha  1:48:07/000903(...sbin/fsck_ffs)# /bin/ls -lagi /bin/stty
ls: /bin/stty: Bad file descriptor
root@nazuha  1:48:23/000903(...sbin/fsck_ffs)# 



最近の日記
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)
以上、8 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)