[建议]最近colinux很流行,但是不会用,哪位大哥发个coliunx下安装ubuntu的详细教程?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
letviva
帖子: 10
注册时间: 2006-04-16 8:37

[建议]最近colinux很流行,但是不会用,哪位大哥发个coliunx下安装ubuntu的详细教程?

#1

帖子 letviva » 2006-04-16 16:45

搜索了下论坛,发现帖子很乱,链接给出的都不是很明确。。。希望有高手可以总结一下!!

代表所有的ubuntuer感谢!!!!!!!
letviva
帖子: 10
注册时间: 2006-04-16 8:37

#2

帖子 letviva » 2006-04-16 21:59

抽根烟~坐在这里,等待高手出现。。。
letviva
帖子: 10
注册时间: 2006-04-16 8:37

#3

帖子 letviva » 2006-04-17 12:54

Run Ubuntu inside coLinux

--------------------------------------------------------------------------------

I got the question about how I setup Ubuntu to run inside coLinux in another thread, so here is a brief description. I am running ubuntu in a dualboot configuration with XP and when booting XP it also starts a coLinux instance using the ubuntu partition. Here are the steps I used to set it up.

1. I installed Ubuntu as normal on a separate partition and configured the computer to dualboot between Ubuntu/XP.

2. I installed coLinux with the Debian with backports image that is available on the coLinux website.

3. Configured coLinux so it could mount the the Ubuntu partition, the trick here is to figure out the correct partition number. The partition number in coLinux seems to be lower that the partition number used when booting the computer with Ubuntu. In my case I had to setup:
<block_device index="1" path="\Device\Harddisk0\Partition5" enabled="true" alias="hda7"/>

4. Boot coLinux with the Debian with backports image and after boot mount the ubuntu partition in my case /dev/hda7

5. To make it possible to boot ubuntu inside coLinux you need to turn of some services autostarted at boot, most of them har hardware related in some way and is not supported inside coLinux. You still want to run these services when not running ubuntu inside colinux. I did this by first creating a /etc/inid.d/colinux script according to http://wiki.colinux.org/cgi-bin/DualBootSystem
This script should of course be created in the /etc/init.d directory on the ubuntu partition and not on the "debian with backports" image.
When this script has been created you also need to edit the default.colinux.xml file so it contains a COLINUX=1 boot-parameter, in my case:
<bootparams>root=/dev/hda8 COLINUX=1</bootparams>
This script now makes it possible to turn of some autostarted services when starting inside coLinux but still run these services when dualbooting the computer with ubuntu.
You also has to make sure to run this script at boot time by inserting links in the /etc/rcS.d directory.

6. The next step is to turn of services by inserting if-statements inside the service scripts in /etc/init.d (on the ubuntu partition).
if [ -f /var/local/colinux ] ; then
exit 0
fi

I had to turn off the following services when booting inside coLinux to make it boot, coLinux crashed during boot when any of these services were running:
/etc/init.d/gdm
/etc/init.d/powernowd
/etc/init.d/hotkey-setup
/etc/init.d/pcmcia
/etc/init.d/vbesave

7. Create colinux customized versons of some other files, the colinux script in init.d mentioned above makes it possible to have a colinux-version and a non-colinux version of some different files.
In my case i have special versions of the following files:
/etc/fstab (coLinux mounts the ntfs partitions using smbfs instead of ntfs read-only mounting)
/etc/network/interfaces (I didn't get colinux to work using DHCP so it has hardcoded IP numbers instead)
/etc/gdm/gdm.conf (I am not really sure this is used since gdm can't be started at boot, but I have a special version for coLinux with all [servers] disabled. It may be used when using vnc but I am not sure if it is needed)

It is important to remember to edit correct file when setting up these files this way because the normal files will be overwritten with *-colinux or *-non-colinux versions at each boot. It might be possible to setup symbolic links instead of overwriting the files but I have not tested this.

9. Finally you will have to setup coLinux so it boots using the Ubuntu partition instead of the "debian with backports" image, this is done by setting a boot partition in the default.colinux.xml file, in my case it pointed to /dev/hda8
<bootparams>root=/dev/hda8 COLINUX=1</bootparams>


10. It should now be possible to either start Ubuntu by selecting it in the dualboot(grub) menu when booting the computer or by starting XP and startup coLinux. Observe that when running inside coLinux the ubuntu kernel is actually not used instead the coLinux kernel is used. This is imporant to think about for example if you need to recompiling kernels and kernel modules.

Finally, don't do the same misstake as I did. As described in this thread, I put XP/coLinux into sleep in hibernate mode and then dualbooted into Ubuntu. My ubuntu file system got corrupt at next boot of XP and I decided to do a total reinstallation of Ubuntu.
letviva
帖子: 10
注册时间: 2006-04-16 8:37

#4

帖子 letviva » 2006-04-17 12:55

WOW, great. I also got my Ubuntu native partition working in coLinux! Thanks for the guide.

it seems the following scripts cannot be run in coLinux
/etc/init.d/gdm
/etc/init.d/powernowd
/etc/init.d/pcmcia
/etc/init.d/vbesave

VNC is set up now, so I can view the GNOME desktop. However I was not able to install FreeNX. It complains about libc6 version.

Because coLinux is using its own kernel, some programs stoped working, reporting segmentation error. But most of the programs just work fine.

The speed is pretty good, faster than running in VMWare! I am amazed.
rqzh
帖子: 3
注册时间: 2009-08-31 22:38

Re: [建议]最近colinux很流行,但是不会用,哪位大哥发个coliunx下安装ubuntu的详细教程?

#5

帖子 rqzh » 2009-09-03 13:16

一楼一下 我都看不懂。。 :em06
头像
fishwater_2240
帖子: 27
注册时间: 2005-12-21 17:45

Re: [建议]最近colinux很流行,但是不会用,哪位大哥发个coliunx下安装ubuntu的详细教程?

#6

帖子 fishwater_2240 » 2009-11-05 21:00

CoLinux,安装的话参考下面的链接
http://www.cnblogs.com/bigshow/archive/ ... 94784.html
有个问题要特别注明下,下载的映像一般都会比较小,需要改变映像大小时需要
TopoResize这个工具包,不过貌似网站被屏蔽了,需要用代理,tor或者其它的都可以,
链接是http://csemler.com/toporesize-0.7.1.zip,如果你使用firefox的话可以安装一个
代理插件,gladder。
enjoy!
回复