colinux,在Windows上使用linux

colinux相对于vmware和virtural pc之类,最大的优势,也是我选择的原因,就是运行快速,占用资源小

我的配置好了的,开启了4个进程,总共的内存占用,不到10M,看图说话:

image

下面记录一下过程:

  1. 安装与配置

从colinux的sf上下载当前最新版0.7.1的可执行安装文件。安装到d:colinux安装后,将会产生一个新的网络连接,后面网络配置要用的。

个人使用的映像文件是sf上down的debian-4.0r1,解压到d:colinux,修改名字为rootfs_debian.从
http://gniarf.nerim.net/colinux/swap/ 下载swap文件,我下载的是512m的,解压到D:colinux,生成swap_512Mb的文件。

拷贝D:colinux下的example.conf 为debian.conf,修改其中cobd0和cobd1的值:

# File contains the root file system.
# Download and extract preconfigured file from SF “Images for 2.6”.
cobd0=”d:coLinuxrootfs_debian

# Swap device, should be an empty file with 128..512MB.
cobd1=”d:coLinuxswap_512Mb

新建一个debian.bat文件,内容为:

colinux-daemon.exe @debian.conf -t nt

即使用debian.conf配置文件,使用nt为终端,默认是fltk的终端,不过个人倾向于nt的,看得爽一点点。

把debian.bat 放到D:Colinux下,运行debian.bat

恭喜你,已经可以在Windows上运行debian了。

2.网络配置

参考:colinux wiki

很容易就可以配置完成的。

如果不需要同本机Windows交互的,使用slirp就可以了

根据我的经验,下载的debian映像里面,就已经根据文章中的说明配置好了的。

可以连接网络,但是ping不通的。这时候应该是可以apt-get update的。

顺便贴一下debian的apt源,cn99的,对我来说,速度不慢:

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

deb http://mirrors.geekbone.org/debian/ etch main
#deb-src http://mirrors.geekbone.org/debian/ etch main

如果要使用ssh,或者是其他的服务,就要使用tap了。

首先,修改配置文件debian.conf ,注释掉eth1前面的#号

即启用eth1

# Slirp for internet connection (outgoing)
# Inside running coLinux configure eth0 with this static settings:
# ipaddress 10.0.2.15 broadcast 10.0.2.255 netmask 255.255.255.0
# gateway 10.0.2.2 nameserver 10.0.2.3
eth0=slirp

# Tuntap as private network between guest and host on second linux device
eth1=tuntap

然后,设置安装colinux时产生的连接,修改为ip为

ip:192.168.0.1

掩码:255.255.255.0

即如文章中的配置,重新启动colinux中的debian,

最后,进入debian,修改/etc/network/interfaces

去掉eth1前面的#,即:

auto lo eth1

iface eth1 inet static
        address 192.168.0.40
        gateway 192.168.0.1
        netmask 255.255.255.0

iface lo inet loopback

执行ifup eth1,就OK了。

这样,debian通过slirp访问外网,通过tap访问Windows。

即Windows通过192.168.0.40可以访问debian,debian通过192.168.0.1可以访问Windows,不需要启用Windows连接共享(ICS)。

3.配置xwindows

参考上面的wiki

推荐个人解决方案:

debian上安装ssh和xwindows

Windows上安装xmanager

通过xshell连接debian,可以启动x程序,xmanager会自动启动,连接x程序并显示。

Del.icio.us : , ,
Flickr : , ,
Technorati : , ,

colinux,在Windows上使用linux》有一个想法

  1. [b][url=http://drestosoft.com/]All Popular Softwares For PC and MAC[/url]
    English, Deutsch, French, Italy, Spanish Version

    [u]The financial crisis? SAVE YOUR MONEY!
    Discount Code – D33W-3333 – and you will get a DISCOUNT of up to 30% for our all software !
    Discount Code – ADBE-3333 – and you will get a DISCOUNT of up to 50% for our Adobe software ![/u]
    [url=http://geromysoft.com/]adobe educational software
    [/url]
    ————————————————————————————-
    [url=http://drestosoft.com/item/?id=1535]Windows XP Professional With SP2 Full Version[/url] $59.95
    [url=http://drestosoft.com/item/?id=1840]Adobe Creative Suite 4 Master Collection[/url] $329.95
    [url=http://drestosoft.com/item/?id=1792]Office Enterprise 2007[/url] $79.95
    [url=http://drestosoft.com/item/?id=1798]Windows Vista Ultimate 32-bit[/url] $79.95
    [url=http://drestosoft.com/item/?id=1834]Adobe Photoshop CS4 Extended[/url] $119.95
    [url=http://drestosoft.com/item/?id=1854]Adobe Creative Suite 4 Master Collection for MAC[/url] $329.95
    [url=http://drestosoft.com/item/?id=1842]Adobe Acrobat 9 Pro Extended[/url] $99.95
    [url=http://geromysoft.com/item/?id=1554]Office 2003 Professional (including Publisher 2003)[/url] $59.95
    [url=http://drestosoft.com/item/?id=1808]AutoCAD 2009 32 and 64 bit[/url] $169.95
    [url=http://geromysoft.com/item/?id=1832]Microsoft Office 2008 Standart Edition for Mac[/url] $99.95
    [url=http://drestosoft.com/item/?id=1839]Adobe Creative Suite 4 Design Premium[/url] $259.95
    [url=http://geromysoft.com/item/?id=1849]Adobe Photoshop CS4 Extended for MAC[/url] $119.95
    ————————————————————————————-

    [u]The financial crisis? SAVE YOUR MONEY!
    Discount Code – D33W-3333 – and you will get a DISCOUNT of up to 30% for our all software !
    Discount Code – ADBE-3333 – and you will get a DISCOUNT of up to 50% for our Adobe software ![/u]
    [url=http://geromysoft.com/]i want to buy software
    [/url]

    No torrents – no claim. Read our [url=http://drestosoft.com/testimonials]Testimonials[/url].[/b]

回复 AstoxishBot 取消回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据