In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to get started with coLinux quickly. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Colinux bit is a tool that can help users to create a virtual system. Through this software, you can run Linux system on your computer and support the creation of a shadow system service platform in win, thus aggravating a server that can execute Linux system. It is convenient for you to use other operating systems in Microsoft system to achieve multi-platform operation functions.
Installation and Network configuration of colinux
At present, there are three main methods to simulate linux environment on windows:
1.VMware and other virtual machines, disadvantages: take up a lot of system resources, slow running speed
2.Cygwin and other simulation environment, using the program under windows to simulate the function under linux, the disadvantage: it is different from the actual linux environment, and the function simulation is not complete, so it is prone to conflict.
3.colinux/andlinux and other simulation environment, through the use of a special driver, the simulation environment can run in ring0 privileged mode, alternately use CPU with windows, so that running the simulation environment is like running the local system, the speed is very fast and the stability is good.
1. Installation of colinux
First download the colinux installation file, install it by default, and select C:\ colinux in the directory, so that many configurations do not have to change the path. Choose not to download the file system and then go to the next file system on the website, select the appropriate kernel version, and extract it to the colinux installation directory (you can also put it in another directory to modify the corresponding configuration). Here, you choose Ubuntu6.0 to copy example.conf, rename it to Ubuntu.conf, and modify the file name of the file system after opening it: cobd0= "c:\ coLinux\ Ubuntu-6.06.1.ext3.1gb" if you want to increase the memory of colinux. You can modify the mem option: mem=256, then open the console, enter C:\ colinux, enter the command: colinux-daemon.exe @ Ubuntu.conf, enter the user name root, password root, and you can run colinux. It is best to write a batch file start.bat, write the above line of command to the batch file, so that double-click to start colinux
Second, realize the file sharing with windows
If you want to share a folder under windows, add to example.conf:
Cofs0=C:\ coLinux
Cofs1=D:\ coLinux
Among them, the number after cofs can increase continuously.
Then enter the following command in colinux:
Mount-t cofs 0 / mnt/share
This maps the C:\ coLinux folder to the / mnt/share directory.
III. Colinux network configuration
After the colinux installation is completed, a virtual network card will be installed automatically. Right-click on the network neighbor and you will find that there is an extra "local connection 2".
Here's how to configure colinux so that it can share the Internet with windows.
1. Rename "Local connection 2" to colinux (can also be another name, personal hobby)
two。 Unplug the network cable (it is important, otherwise connection sharing cannot be set)
3. Set up connection sharing: right-click "Local connection", select "Advanced", and check "allow other network users to connect through this computer's Internet connection". At this point, the IP of the colinux connection is set to 192.168.0.1, which conflicts with the gateway IP (if your gateway IP is 192.168.1.1, you do not need this step), so change it to 192.168.1.1, otherwise you will not be able to access the Internet under windows. Disable the local connection and then enable it, so that windows will not be affected to access the Internet.
4. Configure how colinux accesses the Internet: open the conf configuration file of colinux and add the following configuration:
Eth0=tuntap, "colinux"
If eth0 is already configured in the conf file, comment it out with #.
Tuntap means the way to surf the Internet, and "colinux" is the name you give to the network connection in the first step.
Here's a brief introduction to how TUN/TAP accesses the Internet: TUN and TAP are kernel drivers that simulate network devices in user space. When the operating system sends data, it first sends it to the virtual network device, and then forwards it to the physical network device, and receives the data in reverse order. TUN processes IP packets at the network layer, and TAP processes Ethernet frames at the data link layer.
5. Configure the IP address of colinux: open / etc/network/interfaces and modify the following:
# Second network (tap-win32)
Auto eth0
Iface eth0 inet static
Address 192.168.1.40
Netmask 255.255.255.0
Gateway 192.168.1.1
Note that if there is a configuration for eht0, use # to block it.
6. Configure DNS: open / etc/resolv.conf and modify it to:
Nameserver 202.117.80.3 (DNS of Western University of Technology)
7. Restart colinux
8. Test whether colinux can surf the Internet:
Ping 192.168.1.1 see if you can ping the gateway.
If all are successful, you can download and install the development tools:
Apt-get update updates
Apt-get intalll man installation help (optional)
Apt-get install gcc
Apt-get install make
Apt-get install libc6-dev
After installing the above development tools, you can develop C language programs in colinux.
9. Install samba (optional)
Through the samba service, you can access colinux files under windows as if you were accessing a local area network share. The installation process is as follows:
Apt-get install samba installs the samba service
Add a user: useradd user_name.
Add the user to the samba server: smbpasswd-a user_name.
Edit / etc/samba/smb.conf and add the following:
[Linux Share]
Comment = Linux Share Docs
Browseable = yes
Writable = yes
Create mask = 0775
Path = / root
Parameter path is the directory you want to share with windows.
Restart the samba server: / etc/rc3.d/S20samba restart.
10. Install SSH (optional)
SSH is a remote login protocol similar to telnet. After installation, you can log in to colinux remotely through the SSH client under windows. The installation process is simple:
Apt-get install ssh
Then install the SSH client under windows. It is recommended to use SSH Secure Shell or PuTTY. Enter the IP address and username password of colinux and you can log in to colinux remotely.
Thank you for reading! This is the end of the article on "how to get started with coLinux quickly". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.