kfsでインストールしなおした、、、
その後したこと。
glendaでログイン。
% plan9:
% ed /n/plan9/plan9.ini # nopromptboot=local!#S/dev/sdC0/fsを追加
% disk/kfscmd allow #すべてのファイルに 書き込みokにする。
/bin/termrcに以下をipconfigの行をstaticに追加。
/lib/ndb/localに以下の記述を追加。
ip=addr_of_plan9
sys=plan9
dns=addr_of_dns
dom=plan9.imaq.net
auth=plan9 authdom=sfc.wide.ad.jp
とりあえずリブート
% disk/kfscmd halt
% reboot
またglendaで入る
% pull # bell-labからupdateを取り寄せる。
-- ダウンロード中にdisk/fdisk, disk/prepで、fossil,insect0,insect1,
-- arenaを作る。
-- % echo 'dma on' > /dev/sdC0/ctl
-- 後にfmtisectとかすると、えらいはやい!!DMAって偉大ね。
-- てか、初めからできてたら良かったのに。。。comp.os.plan9以外情報少ないよなぁ。
-- venti.confは以下のようにした。
--- index main
--- isect /dev/sdC0/isect0
--- isect /dev/sdC0/isect1
--- arenas /dev/sdC0/arena
-- でventi/fmtindex venti.confしてfossil/flfmt /dev/sdC0/fossil
-- とりあえず下ごしらえ完了。
ユーザ作成
% disk/kfscmd 'newuser imaq'
リブートしてimaqでログインして
% disk/kfscmd allow
% /sys/lib/newuser
% mail -c
% auth/cron -c
カーネル再構築
ユーザbootesを作って、ログイン、kfscmd allowをしておく
% mkdir cpu
% cd cpu
% bind -bc . /sys/src/9/pc
% cd /sys/src/9/pc
% cp pcauth pcauth.orig
% ed pcauth # etheret2c devpccard 等を追加。
-- 結局pcfをpcauthにコピーして、authに関連する部分だけ追加。追記を参照せよ。
% mk 'CONF=pcauth'
% cp 9pcauth /386/9pcauth
plan9.iniに、bootfile=sdC0!fs!/386/9pcauth追加
各種ファイルの設定
/lib/ndb/authに以下を追加
hostid=bootes
uid=!sys uid=!adm uid=*
/bin/cpurcを変更
# name translation, cs sets /dev/sysname
+ if(! test -e /net/ipifc/0/ctl)
+ ip/ipconfig -g xx.xx.xx.xx ether /net/ether0 add 192.168.1.10 255.255.255.0 >/dev/null >[2=1]
ndb/cs
...
- aux/timesync plan9.bell-labs.com
+ aux/timesync -r
...
auth/keyfs -wp -m /mnt/keys /adm/keys >/dev/null >[2=1] #コメント解除
auth/cron >>/sys/log/cron >[2=1] & #コメント解除
....
if(! test -e /rc/bin/service.auth/il566){ #こいつらコメント解除
mv /rc/bin/service.auth/authsrv.il566 /rc/bin/service.auth/il566
mv /rc/bin/service.auth/authsrv.tcp567 /rc/bin/service.auth/tcp567
mv /rc/bin/service/il566 /rc/bin/service/_il566
mv /rc/bin/service/tcp567 /rc/bin/service/_tcp567
}
-- 続く。
参考サイト: ADSLでお気軽自宅サーバ
pcfをpcauthにコピーして、追加したエントリ
dev
fs <-- これ追加
port
int cpuserver = 1; <-- 1に変更
boot cpu boot #S/sdC0/ <-- cpu追加
bootdir
bootpcauth.out boot <-- bootpcauth.outに変更
pcfベースだとmain.cのコンパイルにしくるので、逆に変更した。
トラックバック(0)
このブログ記事を参照しているブログ一覧: kfsでインストールしなおした、、、
このブログ記事に対するトラックバックURL: http://www.imaq.net/cgi-bin/mt/mt-tb.cgi/23

コメントする