1 頁 (共 1 頁)

CoLinux

發表於 : 2004-08-22 10:52:37
yehlu
http://free.tnc.edu.tw/modules/news/art ... ootid=1570

首先需要下載
coLinux-0.6.1.exe
Debian-3.0r0.ext3.1gb.bz2
swap_XXXMb.bz2

<軟體安裝>
1.執行coLinux-0.6.1.exe, install 在c:\colinux
2.將 Debian-3.0r0.ext3.1gb.bz2 (18Mb變1Gb)
swap_XXXMb.bz2 (根據你電腦的RAM大小)
解壓縮在c:\colinux

<修改設定>
1.用wordpad修改 default.colinux.xml如下
(紅色部分和你放的路徑及檔案有關)
<?xml version="1.0" encoding="UTF-8"?>
<colinux>
<block_device index="0" path="\DosDevices\C:\coLinux\Debian-3.0r0.ext3.1gb" enabled="true"/>
<block_device index="1" path="\DosDevices\c:\coLinux\swap_512Mb.out" enabled="true"/>
<bootparams>root=/dev/cobd0</bootparams>
<image path="vmlinux"/>
<memory size="128"/>
<network index="0" type="tap" name="TAP"/>
</colinux>

2.建立一個批次檔 ==> colinux.bat內容如下
colinux-daemon.exe -t nt -c default.colinux.xml

<裝設虛擬網卡及設定>
控制台 ->新增硬體 ->自行選擇 ->網路配接卡 ->由磁碟安裝
選擇c:\colinux\netdriver\OemWin2k.inf

開始 ->設定 ->網路和連線撥號 ->區域連線2(TAP-Win32 Adapter) ->內容
把internet共用連線功能打開
此時會把TAP-Win32 的IP設為192.168.0.1
請按確定
<驗收成果>
到目前為止所有設定都已經完成
接下來就要驗收成果了 !!

執行剛才的colinux.bat
你會看到原本的打叉的區域連線2變成連線
接著你會看到
Debian GNU/Linux 3.0 colinux tty1 colinux login:
恭喜你, 你已經成功了 !! >o<
請用root 登錄(不用密碼)

XP下編輯colinux.bat:
colinux-daemon.exe -t nt -c default.colinux.xml

XP下編輯default.colinux.xml:
<?xml version="1.0" encoding="UTF-8"?>
<colinux>
<block_device index="0" path="\DosDevices\c:\coLinux\Debian-3.0r0.ext3.1gb" enabled="true"/>
<block_device index="1" path="\DosDevices\c:\coLinux\swap_512Mb" enabled="true"/>
<bootparams>root=/dev/cobd0</bootparams>
<image path="vmlinux"/>
<memory size="128"/>
<network index="0" type="tap" name="TAP"/>
</colinux>

XP下設定網路:
1.TAP-Win32 Adapter更名為TAP
2.區域網路開放internet共用給TAP
TAP IP: 192.168.0.1
colinux IP:192.168.0.40

coLinux下設定IP,nano /etc/network/interfaces:
auto lo eth0
iface eth0 inet static
address 192.168.0.40
gateway 192.168.0.1
netmask 255.255.255.0
iface lo inet loopback

coLinux下設定DNS:
nano /etc/resolv.conf
nameserver 168.95.1.1
nameserver 10.1.1.5

coLinux下設定hosts
nano /etc/hosts :
127.0.0.1 colinux.colinuxdomain colinux
127.0.0.1 localhost.localdomain localhost

coLinux下安裝vncserver:
apt-get update
apt-get install xserver-xfree86
出現問答回應y [Enter]
出現精靈視窗的問答皆回應<No>.
apt-get install xfonts-base xfonts-75dpi
出現問答回應y [Enter]
apt-get install kdebase
出現問答回應y [Enter]
apt-get install konsole
出現問答回應y [Enter]
apt-get install vncserver
出現問答回應y [Enter]

coLinux下執行vncserver:
vncserver -geometry 800x600 -depth 16
輸入密碼兩次

XP下執行vnsview
vncviewer 192.168.0.40:1
輸入密碼,即可看到彩色畫面了,若只出現灰色底圖,重新進入coLinux後再執行vncserver -geometry 800x600 -depth 16試看看.