colinux安装笔记
colinux安装笔记
安装的话都很简单,主要下载colinux的ext文件及所要安装系统的image就行了。
安装好之后,新建一个配置文件ubuntu.conf:
kernel=vmlinux
cobd0=Ubuntu-9.04.ext3.1gb.fs
root=/dev/cobd0
ro
initrd=initrd.gz
mem=256
eth0=tuntap
基本上参考example.conf文件就行了,但是eth0=tuntap一项比较重要,关系到能否连网及ssh。
运行colinux-daemon.ext @ubuntu.conf
-----------------------------------------------
由于9.04版本的ubuntu已停止维护了,此时执行apt-get update得到的都是一堆ign的错误,所以得改一下源/etc/apt/source.list
deb http://old-releases.ubuntu.com/ubuntu/ hoary main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ hoary-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ hoary-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ hoary-proposed main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ hoary-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ hoary main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ hoary-security main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ hoary-updates main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ hoary-proposed main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ hoary-backports main restricted universe multiverse
另一个国内的9.04可用源
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ jaunty main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ jaunty-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ jaunty-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ jaunty-backports main restricted universe multiverse
------------------------------------------------------
扩展colinux的磁盘大小,Ubuntu9.04镜像自带的磁盘文件只有1g,明显不够用。
1.创建一块新磁盘,大小为10G
fsutil file createnew D:\colinux\ubuntu-9.04.ext3.10gb.img 10737418240
2.配置文件中加入以下项目并启动
cobd1=”D:/colinux\ubuntu-9.04.ext3.10gb.img”
3.格式化并挂载新磁盘
mkfs.ext3 /dev/cobd1
mount /dev/cobd1 /mnt
4.复制文件及设备结点
cp -ax / /mnt
if [ -d /dev/.udev ]; then cp -a /dev/* /mnt/dev/; fi
5.修改配置并重启
kernel=vmlinux
#cobd1="Ubuntu-9.04.ext3.1gb.fs"
cobd0="ubuntu-9.04.ext3.10gb.img"
root=/dev/cobd0
ro
initrd=initrd.gz
mem=512
eth0=tuntap
安装vim失败之后,居然连vi都不能用了,解决办法:
apt-get remove vimapt-get install vimdpkg -i --force-all /var/cache/apt/archives/vim-common_1%3a7.1.293-3_i386.debdpkg -i --force-all /var/cache/apt/archives/vim-runtime_1%3a7.1.293-3_all.debdpkg -i --force-all /var/cache/apt/archives/vim_1%3a7.1.293-3_i386.deb
好文要顶 关注我 收藏该文