Configure Ubuntu8.04 for coLinux Installation

Source: Internet
Author: User
Install the basic coLinux system: first download coLinux from here and install: uninstall (the following installation is not available). The other methods are default. Since coLinux uses the modified kernel, Ubunt

Install the basic coLinux system:
First download coLinux from here and install: http://www.henrynestler.com/colinux/testing/devel-0.8.0/20080420-Snapshot/devel-coLinux-20080420.exe
The installation process is very simple. You only need to remove the check box before downloading the hard disk image (the installation below is not available.
Because coLinux uses the modified kernel, and Ubuntu kernel does not have the required modules for coLinux startup, it cannot be directly installed on the Ubuntu CD. During the last installation of Ubuntu 7.04, I used the method of directly copying an existing system. I have not installed the new version 8.04, so I thought of another method. The Ubuntu 8.04 CD comes with wubi. This tool can install Ubuntu on a windows system, just like a common application. I used wubi to prepare the required files for coLinux.
Copy the vmlinux-modules.tar.gz file in the colinuxinstallation directory to another fat32 partition that is different from the wubi installation partition to avoid unnecessary troubles. the USB flash drive is a good choice.
Run wubi to properly install Ubuntu 8.04. After the installation is complete and starts, decompress vmlinux-modules.tar.gz and copy lib/modules/2.6.22.18-co-0.8.0 to/lib/modules under the root directory. Delete/etc/rc2.d/s30tpd. Modify/etc/fstab and change/and swap to/dev/cobd0 and/dev/cobd1. Restart the system to go to windows, and the rest of the work can be done by listening to music under windows.
Create a new directory (Ubuntu8.04) and move the root. disk and swap. disk Under the disks directory of wubi to this directory. Now the mission of wubi has been completed and can be uninstalled. Copy vmlinux、、initrd.gz under the colinuxinstallation directory to the new directory.
Create a configuration file (Ubuntu8.04.conf) for coLinux in Ubuntu8.04 ):
Kernel = vmlinux
Initrdw.initrd.gz
Mem = 256
Cobd0 = root. disk
Cobd1 = swap. disk
Eth0 = tuntap, 02: 00: 00: 00: 02
Eth1 = pcap-bridge, "Local Connection", 02: 00: 00: 00: 03
Root =/dev/cobd0
Ro
My lan has a dhcp server. After you configure eth1 to "pcap-bridge", you can directly connect to the internet. If your network is of another type, you may need to change it as needed.
Create a new start. bat in Ubuntu8.04 to start coLinux (the path should be changed to your own coLinux installation directory ):
@ Set path = E: \ Program Files \ coLinux; % path %
@ CoLinux-daemon.exe-t nt @ Ubuntu8.04.conf
Run start. bat to start the system. Now there is Ubuntu 8.04, which can be started on the Character interface in coLinux.

Step 1: configure the network:
Configure the network in windows: Change the nic ip address corresponding to "TAP-Win32 Adapter V8 (coLinux)" to fixed, such as 192.168.108.1
Modify/etc/network/interfaces in Ubuntu and add
Auto eth0
Iface eth0 inet static
Address 192.168.108.2
Netmask 255.255.255.0
Modify/etc/host and add
192.168.108.1 host
Currently, Ubuntu 8.04 and windows hosts in coLinux can use 192.168.108.1 and 192.168.108.2 to access each other. We recommend that you first install ssh and then use putty to connect to it in windows. Installing a vsftpd file is more convenient.

Step 2: configure the graphic interface:
Install an X server in windows, such as Xming or XWin in cygwin.
Modify ~ In Ubuntu ~ /. Bashrc, add
Export DISPLAY = host: 0.0
Run
.~ /. Bashrc
Start an xterm. Its window should be displayed in windows. If you do not have high requirements on the graphic interface, you can use the command line to start the program. If you want to get a complete graph session, you need to modify the configuration,
Sudo vi/etc/TPD. conf
Find "RemoteGreeter" under [daemon] and remove "#" from it. Find [xdmcp] and change "Enable = false" to "Enable = true ".
Then start the running of the target machine:
Sudo/etc/init. d/gestation start
Create a startx. bat (for Xming) in the Ubuntu8.04 directory in windows to start the graphic interface:
@ Echo off
Set display = 127.0.0.1: 0.0
SET REMOTE_HOST = 192.168.108.2
SET LOCAL_HOST = 192.168.108.1
Start d: \ Progra ~ 1 \ Xming \ Xming.exe-query % REMOTE_HOST %-nodecoration-lesspointer-from % LOCAL_HOST %-clipboard
If XWin in cygwin is used, you need to modify startxwin. bat and change the line that starts XWin:
% RUN % XWin-query 192.168.108.2-from 192.168.108.1-clipboard-silent-dup-error
Run startx. bat or startxwin. bat to log on to Ubuntu in windows.
If you want to enable the system automatically at every startup, You need to restore the services of the system that have been deleted during installation:
Sudo cp-a/etc/rc3.d/s30tpd/etc/rc2.d/
In this way, you can log on directly after the restart. You can also use vnc to implement a graphical interface. If you like it, study it yourself.

The network is connected, and the graphic interface is available. The rest is the same as that of Ubuntu, which is installed normally.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.