coLinux + Debian セットアップメモ

  • coLinuxインストール時にTAPもいれておくこと。
  • TAPのネットワークの名前をTAPに変更
  • TAPのネットワークはIPアドレスを適当に他と被らない番号へ。サブネットはデフォルト。他は空欄にする。
  • Ethernet Bridgeをつかって、ローカルエリア接続とTAPをブリッジしておく。

ここ(http://ethernet-bridge.jp.brothersoft.com/)のものか
ここ(http://www.ntkernel.com/)ので設定。←今回はこっちを採用。

  • xmlファイルを以下のように




root=/dev/cobd0



  • coLinux起動
  • editor /etc/fstabで最終行に "/dev/cobd1 none swap swap 0 0" を追加。
  • mkswap /dev/cobd1
  • swapon -a
  • /etc/hostsに自分のIPアドレス、母艦PCのアドレス、gatewayを設定
  • /etc/resolv.confの最下行に「nameserver 192.168.100.10」とDNSを追加
  • /etc/network/interfacesを以下のようにする

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.100.222
netmask 255.255.255.0
gateway 192.168.100.10

  • /etc/apt/apt.confに「APT::Cache-Limit "100000000";」を追加
  • /etc/apt/sources.listに以下を追加

deb http://cdn.debian.or.jp/debian/ stable main contrib non-free
deb-src ftp://ftp.dti.ad.jp/pub/Linux/debian/ stable main
deb-src http://ring.ocn.ad.jp/pub/linux/debian/debian sarge main contrib non-free
deb http://ring.sakura.ad.jp/pub/linux/debian/debian stable main contrib non-free
deb http://ring.sakura.ad.jp/pub/linux/debian/debian stable-proposed-updates main contrib non-free
deb http://security.debian.org/ stable/updates main contrib non-free
deb-src http://ring.sakura.ad.jp/pub/linux/debian/debian stable main contrib non-free
deb-src http://ring.sakura.ad.jp/pub/linux/debian/debian stable-proposed-updates main contrib non-free
deb-src http://security.debian.org/ stable/updates main contrib non-free

  • apt-get update

エラーが出るようなら上の/etc/apt/sources.listの中身を適当に書き換える

  • apt-get upgrade


一応これで準備ができたはず
参考:(http://p0t.jp/mt/archives/2005/07/dpkg.html

apt-get install vim
とかするとe2fsprogsが邪魔でだめだよ的なことを言われて失敗する。

  • apt-get install --reinstall e2fsprogs -o APT::Force-LoopBreak=true

色々聞かれるけどYesでOK(色々ここで消えちゃうっぽい。何度かここであきらめてインストールし直しとかズッポリはまったところ)

  • /usr/sbin/update-rc.dを作成

apt-get install -f
apt-get install --reinstall sysv-rc
apt-get install --reinstall sysvinit
apt-get update
apt-get upgrade

をやってみて再起動とかすると
apt-get install vim
も通るようになる。
(APT::Force-LoopBreak=trueとかやってるせいでshutdownコマンドが無いんで強制終了とかしながら頑張る。超頑張る)
参考:(http://debian.fam.cx/index.php?AptGet#content_1_0
http://72.14.235.104/search?q=cache:56BI9DXg-7sJ:oshiete1.goo.ne.jp/qa1752420.html+e2fsprogs+apt+%E3%82%A8%E3%83%A9%E3%83%BC&hl=ja&ct=clnk&cd=1&gl=jp


あとは好きなパッケージを入れていくだけ。


dpkg-reconfigure console-dataとかするとキーマップが変更できるらしいけど、うまくいかん。

あと下手にロケールの設定とかすると日本語が表示できないのに日本語になっちゃって化け化けになるんで、
.bashrcとかに「export LC_ALL=en_EN.eucJP」とか入れて回避。←正しいかわかんないけど。
参考:(http://www.jp.netbsd.org/ja/JP/ml/port-mac68k-ja/200201/msg00011.html