> d: > cd d:\coLinux > del etch.img swap.img etch.conf > "d:\bin\qemu-0.9.1-windows\qemu-img.exe" create -f raw etch.img 1G > "d:\bin\qemu-0.9.1-windows\qemu-img.exe" create -f raw swap.img 128M > echo kernel="c:\Program Files\coLinux\vmlinux"> etch.conf > echo cobd0="d:\coLinux\Debian-4.0r0-etch.ext3.1gb\Debian-4.0r0-etch.ext3.1gb">> etch.conf > echo cobd1="d:\coLinux\swap.img">> etch.conf > echo cobd2="d:\coLinux\etch.img">> etch.conf > echo cofs0="d:\coLinux\">> etch.conf > echo root=/dev/cobd0>> etch.conf > echo vga=nomal>> etch.conf > echo ramdisk_size=1024>> etch.conf > echo rw>> etch.conf > echo -->> etch.conf > echo initrd="c:\Program Files\coLinux\initrd.gz">> etch.conf > echo mem=64>> etch.conf > echo eth0=tuntap,"TAP">> etch.conf > "c:\Program Files\coLinux\colinux-daemon.exe" @etch.conf
で、Cooporative Linux Consoleが立ち上がる。username:root、passwd:rootでログインする。セットアップ用のシェルスクリプトを走らせる。やっていることは大まかに言って、ネットワーク構成、現在のシステムのアップデート、スワップ領域の確保、セットアップ用のファイルシステムの作成とフォーマットとマウント、クロスインストール、シャットダウン。
debian~# mkdir -p /mnt/modules debian~# mount -t cofs cofs0 /mnt/modules/ debian~# cat /mnt/modules/setup.sh #!/bin/sh cd / ifconfig eth0 inet 192.168.0.2 netmask 255.255.255.0 up ifconfig lo up ifconfig route add -net 192.168.0.2 netmask 255.255.255.255 eth0 route add -net 127.0.0.0 netmask 255.0.0.0 lo route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.0.1 eth0 route echo nameserver 192.168.0.1> /etc/resolv.conf apt-get update apt-get upgrade apt-get dist-upgrade apt-get install debootstrap mkswap /dev/cobd1 sync;sync;sync swapon /dev/cobd1 mke2fs -j /dev/cobd2 mkdir /target mount /dev/cobd2 /target debootstrap --arch i386 etch /target shutdown -h now debian~# sh /mnt/modules/setup.sh
coLinuxが終了してプロンプトに戻ってくるので、今作ったシステムで起動する。
> echo kernel="c:\Program Files\coLinux\vmlinux"> etch.conf > echo cobd0="d:\coLinux\etch.img">> etch.conf > echo cobd1="d:\coLinux\swap.img">> etch.conf > echo cofs0="d:\coLinux\">> etch.conf > echo root=/dev/cobd0>> etch.conf > echo vga=nomal>> etch.conf > echo ramdisk_size=1024>> etch.conf > echo rw>> etch.conf > echo -->> etch.conf > echo initrd="c:\Program Files\coLinux\initrd.gz">> etch.conf > echo mem=64>> etch.conf > echo eth0=tuntap,"TAP">> etch.conf > "c:\Program Files\coLinux\colinux-daemon.exe" @etch.conf