colinux for ubuntu7.10

来源:互联网 发布:期货交易软件登录时间 编辑:程序博客网 时间:2024/05/16 08:06

colinux boot FS image for ubuntu7.10

 

Colinux (Cooperative Linux) 使得在Windows2000/XP上同时运行Linux成为可能并不借助第三方的虚拟机软件(VMware , VitualPC,virtul box).它不是一种虚拟机,而是Linux内核的移植,使得Linux 可以natively 运行在Windows上,所以运行速度快占用系统资源小。

 

1)ubuntu8colinux.rar 下载地址 http://www.fs2you.com/files/79fe4b00-13 ... 4221f3995/

ubuntu8colinux.rar

2)others documents:
http://groups.google.com/group/iyaf
ubuntu8colinu.cai.rar

3)deb files:
http://www.fs2you.com/files/2c5caae1-db ... 42218fc6e/
deb.rar
copy *.deb file to /var/cache/apt/archives and install with apt-get install xxx.

 


 

Cooperative Linux is the first working free and open source method for optimally running Linux on Microsoft Windows natively.
 More generally, Cooperative Linux (short-named coLinux) is a port of the Linux kernel
that allows it to run cooperatively alongside another operating system on a single machine. For instance,
it allows one to freely run Linux on Windows 2000/XP,
without using a commercial PC virtualization software such as VMware,
in a way which is much more optimal than using any general purpose PC virtualization software.

colinux boot FS image for ubuntu7.10

1. execute stable-coLinux-20080118.exe to install on c:/colinux folder or other folder.

2. extract ubuntu7colinux.rar to D:/

3. run cai.bat on d:/ubuntu7colinux folder.

4. ID/passwd is root/root

5. you can install ubuntu softwares with apt-get install xxx/apt-get update/apt-get upgrade

 

ubuntu7colinux.rar download from: http://www.fs2you.com/zh-cn/files/da11b021-daf1-11dc-a5aa-0014221f4662/

 

other documents: ubuntu7colinux-readme.rar

 

http://groups.google.com/group/iyaf/web/colinux-for-ubuntu7-10

 

相关文档

Colinux安装指南

 

本文档描述如何在windows xp操作系统上安装colinux,搭建一个可用于嵌入式开发的Linux工作平台。内容包括colinux安装,网络配置,开发工具安装等。

 

1.      下载colinux最新稳定版本

Colinux主页:http://www.colinux.org。在上面可以找到最新版本的安装文件及源代码。目前的版本为stable-coLinux-20071117.exe

 

2.      安装colinux

双击stable-coLinux-20071117.exe开始安装,在“Choose Components”步骤中将“Root Filesystem image Download”选项去掉,因为文件系统我们将单独下载。如果选择下载根文件系统,安装将会耗费较长的时间。

安装过程中会弹出一个对话框,提示“TAP-Win32 Adapter”未通过认证,这并不影响系统的正常运行,点击仍然继续,安装虚拟网卡。安装完成之后,网络邻居中的本地连接中会多出一个本地连接2”,这个就是colinux安装的TAP-Win32网卡。为了便于识别和配置,将它重新命名为“colinux”

 

3.      安装Winpcap

这个支持库是colinux的虚拟网卡工作在bridged模式所需要的。

当网络配置为bridged模式时,colinux可以和windows一样,作为一台主机出现在局域网内。它使用与局域网内其它机器相同网段的IP,其它的机器可以直接访问到colinux虚拟机。例如,假设colinuxIP192.168.1.234且利用samba共享了一个目录shared,此时在其它机器上就可以通过//192.168.1.234/shared访问到这个目录。当使用NFS引导开发板时,这种模式就会很有用。

当网络配置为TAP模式时,colinux只能通过本机的windows系统来访问网络,其它的机器无法访问到colinux

双击WinPcap_3_1_beta_3.exe进行安装,一路取默认的选项就行了。

Winpcap的主页为http://www.winpcap.org

 

4.      下载文件系统

http://sourceforge.net上可以下载已经安装好了必要软件的linux根文件系统,我们可以将这些文件系统作为基本的工作环境,当需要其它软件时再在它上面进行安装。

将下载下来的文件系统解压出来,这里包括Debian-4.0r0-etch.ext3.1gb.bz2、交换分区swap_512Mb.bz2和一个用于开发的空分区fs_4095Mb.bz2

 

5.      修改配置文件

将安装目录下的example.conf复制一份,另存为debian.conf。打开debian.conf,修改以下内容:

 

 

# File contains the root file system.

# Download and extract preconfigured file from SF "Images for 2.6".

cobd0="e:/coLinux/Debian-4.0r0-etch.ext3.1gb"

 

# Swap device, should be an empty file with 128..512MB.

cobd1="e:/coLinux/swap_512Mb"

cobd2="e:/coLinux/fs_4095Mb"

 

# Maximal memory for linux guest

mem=256

      

eth0=tuntap,"colinux"

#eth0=pcap-bridge, "local"

 

这里假设所有的文件系统及分区文件解压到e:/coLinux目录下。

 

6.      配置windows网络

TAP模式:

网络邻居中的本地连接上点击右键,在弹击的菜单中点击属性à高级,将“Internet连接共享中第一个选项打勾,允许其它其它用户连接。点击确定之后,colinux虚拟网卡的IP会自动变成192.168.0.1

Bridged模式(可选步骤)

网络邻居中将本地连接“colinux”一起选中,点击右键,在弹出的菜单中选择桥接。如果本地连接已经设为共享,先取消之。注意,在这种模式下,如果本地连接处于断开方式,那么colinux将无法使用网络。

如果本地连接已经处于连接状态,而“colinux”却是断开的,那么在“colinux”上点击右键,选择属性à常规à配置à高级,在页面的属性中选择“Media Status”,在中选择“Always Connected”,点击确定,此时“colinux”将变成连接状态。

 

7.      利用以下参数,colinux可以直接挂载windows下的分区(可选步骤)

cobdX=/Device/HarddiskX/PartitionX

这里的关键之处是找出windows下分区的名字,即上面的HarddiskX/PartitionX。从网上可以下载到一个工具dd,运行dd --list会输出windows下所有分区的列表,其中就有每个分区的名字。以自己的机器为例,当前的分区状况为:

第一个分区和最后一个分区为主分区,中间的三个分区为扩展分区中的逻辑分区。目标是将最后一个分区挂载到colinux中,作为clfs的“创作基地”,当制作好基本的系统后,可以直接从这个分区启动。

在命令窗口中输入dd –list(Windows中似乎还有一个同名的程序,为了确保运行了正确的程序,可以在程序所在目录中输入命令),查看输出,可以找到如下信息:

 

 

//./Volume{5576b422-ad2c-11dc-8af7-005056c00008}/

  link to //?/Device/HarddiskVolume6

  fixed media

  Mounted on //./g:

 

g盘的名字为//?/Device/HarddiskVolume6。在后面的输出信息中,可以找到

Volume6是哪一个分区:

NT Block Device Objects

//?/Device/CdRom0

  size is 2147483647 bytes

//?/Device/Harddisk0/Partition0

  link to //?/Device/Harddisk0/DR0

  Fixed hard disk media. Block size = 512

  size is 120034123776 bytes

//?/Device/Harddisk0/Partition1

  link to //?/Device/HarddiskVolume1

//?/Device/Harddisk0/Partition2

  link to //?/Device/HarddiskVolume6

  Fixed hard disk media. Block size = 512

  size is 34628428800 bytes

//?/Device/Harddisk0/Partition3

  link to //?/Device/HarddiskVolume3

//?/Device/Harddisk0/Partition4

  link to //?/Device/HarddiskVolume4

//?/Device/Harddisk0/Partition5

  link to //?/Device/HarddiskVolume5

/Device/Harddisk0/Partition2就是该分区的名字了。

 

注意:如果windows下的某个程序使用了该分区,那么在colinux中将无法成功挂载它。试着先将这个分区删除,然后重建。

另外,操作磁盘分区是要格外小心,以防因为失误而丢失数据!!!

如果要在windows中隐藏该分区,可以在“磁盘管理”à“更改驱动器名和路径”中将驱动器号删除。

 

8.      启动colinux

编辑一个colinux.bat文件,加入如下一行:

colinux-daemon.exe @debian.conf –d

双击colinux.bat,启动colinux

 

9.      配置colinux

这里假定安装的系统为debian

利用安装目录下的colinux-console-nt.exe登录进系统,用户名和密码均为root,打开/etc/network/interfaces(如果没有vi,可以用nano),修改以下内容:

#Second network(tap-win32)

auto eth0

iface eth0 inet static

  address 192.168.0.40

  netmask 255.255.255.0

  gateway 192.168.0.1

 

如果colinux网络配置为bridged模式,这里请使用与局域网内其它机器一样的配置。

打开/etc/fstab,加入如下内容:

# /etc/fstab: static file system information.

#

# <file system> <mount point>   <type>  <options>   <dump>  <pass>

proc            /proc  proc    defaults        0       0

/dev/cobd0      /      ext3    noatime,errors=remount-ro 0       1

/dev/cobd2      /opt   ext3    noatime,errors=remount-ro 0       1

/dev/cobd1       none  swap    sw              0       0

 

 

打开/etc/apt/source.list,加入如下内容(源的内容请保持更新):

#

# deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main

 

deb http://debian.cn99.com/debian stable main non-free contrib

deb http://debian.cn99.com/debian-non-US stable/non-US main contrib non-free

deb http://debian.cn99.com/debian proposed-updates main contrib non-free

#deb http://debian.cn99.com/debian-non-US proposed-updates/non-US main contrib  non-free

deb http://debian.cn99.com/debian-security woody/updates main contrib non-free

deb http://debian.cn99.com/debian/ testing main non-free contrib

deb-src http://debian.cn99.com/debian/ testing main non-free contrib

deb http://debian.cn99.com/debian-non-US testing/non-US main non-free contrib

deb-src http://debian.cn99.com/debian-non-US testing/non-US main non-free contrib

 

#deb http://debian.ustc.edu.cn/debian testing main non-free contrib

#deb-src http://debian.ustc.edu.cn/debian testing main non-free contrib

 

#deb http://debian.ustc.edu.cn/debian-non-US testing/non-US main non-free contrib

#deb-src http://debian.ustc.edu.cn/debian-non-US testing/non-US main non-free contrib

 

#deb http://debian.ustc.edu.cn/debian-security testing/updates main

 

deb http://ftp.debian.org/debian/ etch main

deb-src http://ftp.debian.org/debian/ etch main

 

deb http://security.debian.org/ etch/updates main contrib

deb-src http://security.debian.org/ etch/updates main contrib.

重新启动colinux,关机命令为:shutdown –h now

 

10.  安装必要的软件

apt-get dist-upgrade

apt-get update

apt-get install ssh

apt-get install samba

11.  安装ssh客户端

如果想使用sshWindows下登录colinux,必需安装ssh客户端。可以选择“SSH Secure Shell”。安装之后新建一个“Profiles”,其中服务器的地址为192.168.0.40,即colinux的地址。

12.  配置samba

l         利用命令apt-get install安装samba时,在弹出的配置提示框中直接输入回车。

l         利用useradd在系统中添加一个用户:useradd user_name

l         将用户添加到samba服务器中:smbpasswd –a user_name

l         编辑/etc/samba/smb.conf,加入如下内容:

[opt]

    comment = Workshop

    browseable = yes

    writable = yes

    create mask = 0775

    path = /opt

其中参数path即是想与windows共享的目录。

l         重启samba服务器:/etc/rc3.d/S20samba restart

l         windows“开始菜单”à“运行”中输入网络路径//192.168.0.40即可以访问colinux中的共享目录。

13.  安装Xming

如果想进行图形界面的开发,例如minigui的开发,则需要安装X服务器。可以使用Windows下的免费X服务器Xming。安装过程很简单,不需要做特殊配置。安装完成之后,在桌面建立Xming的快捷方式,右键点击快捷方式图标,在弹出的“属性”à“快捷方式”à“目标”中添加一个参数-ac,如下所示:

"C:/Program Files/Xming/Xming.exe" :0 -clipboard -multiwindow -ac

colinux中打开主目录下的.profile文件,添加如下环境变量:

export DISPLAY=192.168.0.1:0.0

Windows下双击Xming快捷方式打开X服务器,此时就可以在colinux中运行X client程序了。

 

 

原创粉丝点击