2005年12月 1日

玄箱HGのDebian化

手持ちの玄箱HGもDebian化しました。ファイル置き場としてなら無理にDebian化やVine化は必要ないかなぁ?と思っていたのですが、いかんせん時間がずれすぎる!!日差数分手どういうことよ?ということで、ほぼNTPを使うためだけにDebian化を決意。デフォのままでもNTPは使えるらしいのですが、どうせ手間をかけるならDeibian化した方がWebmin、SWATを使っての設定が楽だし、他にも色々遊べそうって理由です。素の玄箱である程度経験積みましたしね!!

まずは付属CDで普通にセットアップ。

まず、玄箱うぉううぉう♪より最新版のDebianイメージ(2005/12/01現在では、debian_2005_08_21_dist.tgzのようです)(2006/09/07現在では、debian_2006_06_10_dist.tgzのようです)をDLしてくる。んで、コレを /mnt/share に置いてください。こう書くと微妙に難しそうですが、単にエクスプローラに\\kuro-box\shareに置けば良いだけです(玄箱の名前変更を行っていない場合に限る。名前を変えている場合は適宜読み替えてください。)。

さて、ここからが本番。Telnet接続する必要がありますので、適当なTelnetクライアントの用意。個人的にはTeraTermProがお気に入り。最悪コマンド・プロンプトでも出来ますが。

KURO-BOX ligin: root
Password: kuroadmin
と入力すればログインできます。


# echo -n 'NGNG' > /dev/fl3  ←EMモードに落とす
# reboot  ←再起動

この後、再度Telnetで接続して、
# /bin/mount -t ext3 /dev/hda1 /mnt  ←HDDの第1パーティションをmntにマウント
# /bin/mount -t ext3 /dev/hda3 /mnt2  ←HDDの第3パーティションをmnt2にマウント

# cd /mnt
# rm -r *  ←第1パーティションを全消去
# tar zxvf /mnt2/share/debian_2006_06_10_dist.tgz  ←Debian 化イメージを展開
# vi /mnt/etc/network/interfaces

# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
iface eth0 inet static
address 192.168.0.200
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1

iface lo inet loopback

auto eth0 lo

# vi /etc/hosts

127.0.0.1 localhost
192.168.0.200 KURO-BOX_HG


# vi /mnt/etc/hosts.allow

# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5), hosts_options(5)
# and /usr/doc/netbase/portmapper.txt.gz
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper. See portmap(8)
# and /usr/doc/portmap/portmapper.txt.gz for further information.
#
ALL : 192.168.0.
ALL : 192.168.0.0/255.255.255.0
ALL : 127.0.0.1

# vi /mnt/etc/resolv.conf

search
nameserver 192.168.0.1

# vi /etc/hostname

KURO-BOX_HG

# echo -n 'OKOK' > /dev/fl3
# reboot

これでOKなはず。各自設定したIPにTelnetで再接続してみてください。ID/Passはtmp-kun/tmp-kunになっています。ここから先の作業は、Makologg???: 玄箱 Debian化完了を参照のこと。

トラックバックURL

このエントリーのトラックバックURL:

コメントする