当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 7 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [建议]最近colinux很流行,但是不会用,哪位大哥发个coliunx下安装ubuntu的详细教程?
帖子发表于 : 2006-04-16 16:45 

注册: 2006-04-16 8:37
帖子: 10
送出感谢: 0 次
接收感谢: 0 次
搜索了下论坛,发现帖子很乱,链接给出的都不是很明确。。。希望有高手可以总结一下!!

代表所有的ubuntuer感谢!!!!!!!


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2006-04-16 21:59 

注册: 2006-04-16 8:37
帖子: 10
送出感谢: 0 次
接收感谢: 0 次
抽根烟~坐在这里,等待高手出现。。。


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2006-04-17 12:54 

注册: 2006-04-16 8:37
帖子: 10
送出感谢: 0 次
接收感谢: 0 次
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.


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2006-04-17 12:55 

注册: 2006-04-16 8:37
帖子: 10
送出感谢: 0 次
接收感谢: 0 次
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.


页首
 用户资料  
 
5 楼 
 文章标题 : Re: [建议]最近colinux很流行,但是不会用,哪位大哥发个coliunx下安装ubuntu的详细教程?
帖子发表于 : 2009-09-03 13:16 

注册: 2009-08-31 22:38
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
一楼一下 我都看不懂。。 :em06


页首
 用户资料  
 
6 楼 
 文章标题 : Re: [建议]最近colinux很流行,但是不会用,哪位大哥发个coliunx下安装ubuntu的详细教程?
帖子发表于 : 2009-11-05 21:00 
头像

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


页首
 用户资料  
 
7 楼 
 文章标题 : Re: [建议]最近colinux很流行,但是不会用,哪位大哥发个coliunx下安装ubuntu的详细教程?
帖子发表于 : 2009-11-05 21:42 
头像

注册: 2008-04-26 12:41
帖子: 10971
送出感谢: 11
接收感谢: 38
:em09


_________________
[新手必读]wubi安装常见问题(FAQ)
[分享]装双系统的同学必看——Windows与Linux系统共享交换分区的方法
kde下唯美的暗黑内透主题(无需编译)
无穷老机上的Trinity Desktop Environment


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 7 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 5 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译