Colinux installation guide

  
 1.
colinux installation

First download the colinux installation file, go to http://www.colinux.org/to download the default installation, select G:\\colinux directory (according to your own needs, It is recommended to be placed in the root of the partition). Choose not to download the file system.
2.
Download System Disk Image

coLinux provides several major distributions of disk images (update frequency is not high, basically only large version), already installed Basic system, just download and unzip.

http://sourceforge.net/projects/colinux/files/

Download Ubuntu 12.04:

http://sourceforge.net/projects/speedlinux/files/Base-200-10-11-11.7z/download

The first time this image file runs, you must execute the following statement
rm /etc/udev/rules.d/70-persistent-net.rulesrm - Rf /lib/modules/*-co-*3.
The basic configuration of colinux

Picture example.conf, copy a ubuntu.conf (other names are also available), mainly Modify the following configurations:
#The disk image location extracted in the previous step cobd0="G:\\coLinux\\ubuntu\\base.vdi"# will Windows
disk as cofs file system type Provide cofs0="C:\\"cofs1="D:\\"#Set up the slirp network service, this way will make the colinux virtual machine access the external network eth0=slirp like a normal application, tcp: 5901:5901/tcp:22:22/tcp:8080:80

Start colinux
$ colinux-daemon @ubuntu.conf

It will automatically open nt console or fltk console, which is very much true with the real console For example, you can even switch multiple ttys with Alt-F1..Alt-F6. This console window can be closed and reopened, as long as the colinux-daemon process is not closed. (If you don't like the window that displays the Linux kernel information, you can hide it with tools. Or register colinux as a service: colinux-daemon – install-service ubuntu @ubuntu.conf, then start with sc start ubuntu) Enter the username root, With the password root, you can run colinux.
4.
Implementing file sharing with windows

Enter the following command in guest os:
mount -t cofs cofs0 /mnt/cmount -t cofs cofs1 /mnt/d

Before running the above command, please confirm the existence of /mnt/c. If it does not exist, first create it with the following command:
mkdir /mnt/cmkdir /mnt/d

If you need permanent mapping, Then edit /etc/fstab, add the following content (invalid?):
cofs0 /mnt/c cofs defaults 0 0cofs1 /mnt/d cofs defaults 0 05.
colinux network configuration-slirp

With slirp, colinux will start the automatic colinux-slirp-net-daemon.exe process, which provides a dhcp server for guest os. The guest os can be connected to the dhcp server with the following command:
$ dhclient eth0

Note that in the slirp mode, the network service started inside Linux cannot be directly accessed, but the port can be implemented by slirp-net-daemon. Forward, modify the configuration file ubuntu.conf, add some content after eth0=slirp (requires restarting guest os to take effect):
#forwarding port 5901 (vncserver) & 22 (ssh server)eth0=slirp,, Tcp:5901:5901/tcp:22:22/tcp:8080:806.
colinux network configuration-tuntap

colinux will automatically install a virtual network card after installation, right click online Neighbors will find one more "local connection 2”. Here's how to configure colinux to share Internet access with Windows. 1. Change "local connection 2" to colinux (also for other names, personal hobbies) 2. Set up connection sharing: right click on "local connection", select “senior>, check “ Allow other network users to connect via this computer's Internet connection. 3. The IP address of the colinux connection is set to 192.168.11.1, and the subnet mask is 255.255.255.0. 4. Configure the colinux Internet access mode: Open the colinux conf configuration file and add the following configuration:
eth1=tuntap," Colinux"

where tuntap means the way to access the Internet, "colinux” is the first step you give to the network connection. 5. Configure the IP address of colinux: Open /etc/network/interfaces and modify the following:
#Second network(tap-win32)auto eth0 eth1iface eth0 inet dhcpiface eth1 inet staticaddress 192.168.11.150netmask 255.255.255.0gateway 192.168. 11.17.
Install SSH

Enter the following command in guest os:
apt-get install ssh

Then install SSH client under windows, it is recommended to use Xshell4 or PuTTY Enter the colinux IP address and username and password to log in to colinux remotely.
8.
Chinese garbled

console terminal garbled execution command
export LANG=zh_CN.GB18030

or add the following in the last line of the /etc/profile file:
export LC_ALL="zh_CN.GB18030"

Copyright © Windows knowledge All Rights Reserved