01,centos download, install, VMware's network configuration, Xshell use

Source: Internet
Author: User






In order to better follow Marco Learning Linux, install and configure a composite learning environment of Linux is essential, Marco with REDHAT6, but I am here to configure the CentOS6, but CentOS equivalent R Edhat of the re-engraved, also not bad where to go ....






Centos:



ChinaNetEase (163 netease)



http://mirrors.163.com/centos/



ChinaSohu Inc., Beijing P.R China (Sohu)



http://mirrors.sohu.com/centos/



ChinaCMCC Taian Branch (Taian Mobile)



http://mirrors.ta139.com/centos/



ChinaStar Studio of UESTC (Electronic technology Big)



http://mirrors.stuhome.net/centos/



ChinaUniversity of the science and the Tech of China (Zhong Ke)



http://centos.ustc.edu.cn/centos/



ChinaNortheastern University, Shenyang Liaoni (Tohoku University)



http://mirror.neu.edu.cn/centos/



Linux Version selection:



Click to enter "6.5/", download CentOS6.5, then click into "isos/", there are two folders, respectively i386 and x86_64.



i386 is used for 32-bit machines, x86_64 is for 64-bit machines, you can use securable to see if the CPU is 64-bit





Let's see what's in "isos/."








where the ". ISO" End is the system image file, ending with ". Torrent" for the BT seed file



Bindvd version: The most complete version, contains a lot of common software, can be used for offline installation



Livedvd Version: CD-ROM installation, contains a small number of common software, a graphical desktop, but some of the content needs to be downloaded to the site again



LiveCD version : This is also a CD-ROM version, but smaller than Livedvd, more streamlined



version minima: mini version, streamlined more, no graphical interface



netinstall version: network installation version, not clear, no use.



Installing CentOS 6.5 under VMware 10:



1. Create an empty virtual machine



Open VMware, file-new virtual machine



This is the default recommendation.





This is the SCSI, this is the server dedicated hard disk.




Choose a file here, and later better move what. And don't click "Allocate all disk space now" so that the amount of space the virtual machine disk will apply to the hard disk, instead of all the space to apply.





OK, the virtual machine is created ...






2. CD mount





Open the CD/DVD (IDE)





Select the ISO image file: , very brain-free, and then open the virtual machine, began to install the system.






3, the installation of CentOS6.5








Say what these options are all about. , select the first one here to install



1: Install or upgrade the system



2: Install the system with audio driver



3: Repair System



4: Boot from local disk



5: Memory Detection





Here is the detection of the integrity of the installation file, skip skip directly ...





Into the graphical installation interface,.. , choose language, keyboard, or prefer to look at Chinese, although he does not support the good ... , but it doesn't affect anything. ~





Here with the basic storage device: , the following is the enterprise equipment, it is not clear what is. ~ Embarrassed





Choose Yes, the disk is no data, casually.






Root is also called Root, this is the password of the system administrator, the proposed long point.





To disk allocation, that's the point.





Click on the "Create" button to start creating a partition, the Novice recommends creating three bar, "/", "/Boot" and "SWAP", where



"/" is the root directory and all files are in the root directory.



"/boot" is a boot boot, it is recommended to make this a separate partition



"Swap" is the swap partition of the system, which is a special partition that will store the data in memory when the system has insufficient memory.





Choose a standard partition here





Add "/" partition, this partition can be larger, I here because the disk is limited, is 20G, and later learn the disk Management time will also use the free space, so left a little more.





"/boot", this file is very small, 200 trillion is sufficient





"SWAP" size is generally 1-1 of the memory, 5 times times, but this is a virtual machine, just give it a little bit better ~ ~





OK, the disk partition is complete, and the installation starts next.





Here's the point, there's nothing on the disk.





Select "Write modifications to disk"





The default next step is OK,





This is the software installation, here I choose the first one, explain the few options, of course, you can also choose to install the software



1: Standard Desktop Edition



2: Mini Desktop edition



3: Mini version, no desktop version



4:basic Server Edition



5:dtatbase Server Edition



6:web Server Edition



7: Virtual Host



8: Software development Platform





OK, it's ready now, after restarting the computer there are some basic settings, and here is not to say,



OS configuration:



1. Desktop Configuration





Open the terminal,





Enter "Vim/etc/inittab" to open inittab this file, modify the following content





Change the Id:5:initdefault in the last line: to Id:3:initdefault:



Here 5 is the boot default start graphical interface environment, 3 is the boot default start text interface ~ ~, because it is learning, do not need the graphics environment, so put him off. , if you want to use the StartX command to start him, Ctrl+alt+f7 is the default GUI environment window, ctrl+alt+f[1-6] is the window of the text interface environment





Save and exit





Sync;sync;reboot #reboot the computer



Configure the network environment:








First open the windows in the "Services" option, a few VMware services set up a start, these services are closed by default, do not start the word is not connected to the network.





These are the few, where DHCP and NAT are bound to start, both of which are used when configuring the network





Enter the Ifconfig command, see the CentOS system IP, you can see, eth0 is no IP, at this time to manually set the next eth0 configuration file, (this eth0 is your network card. )





Use VIM to open this file and configure Vim/etc/sysconfig/network-scripts/ifcfg-eth0





Change Onboot=no to Yes, nm_controlled=yes to No



Onboot is the boot or not to start the network card meaning



Nm_controlled is whether the device eth0 can be hosted by the Network Manager Graphics management tool, which seems to be a bad tool , so it's disabled,



UUID is the unique identifier of the NIC



Bootroto is the start protocol, where DHCP is automatically getting the meaning





Restart the network





Check IP, see, now has IP, IP is 192.168.222.129





Open windows cmd, look at the IP of Windows, IP is 192.168.1.100





Ping windows with a virtual machine to see if it can be ping, which means the local network configuration is successful





Open vim/etc/resolv.conf This configuration file, configure the Gateway





I have automatic configuration here, if not to add



NameServer gateway address, gateway address See,





VMware-----The virtual network adapter, select NAT mode, turn on NAT settings, where the 192.168.222.2 is the gateway address,





Sometimes restart the computer will make the gateway address is lost, here can give the gateway to this file set permissions, set to the system is read-only, this is a smart ~ ~, do not recommend this use, but it does not matter 0.0



Chattr +i/etc/resolv.conf





Here ping Baidu, but because our school server ban ping problem, and no package sent over, in fact, is already networked. , download anything is no problem, try the next wget is useful



Finally, the use of Xshell, the virtual machine to cut back and forth the mouse is a bit troublesome, so with Xshell to telnet to the system in the virtual machine is a good choice. ~





Open Xshell, enter SSH 192.168.222.129, this IP address is the IP address of the virtual machine, just checked, here does not repeat.





User name, because it is learning, so direct root login,





Password





OK, it's done, so you can use the virtual machine again in Xshell.






This article is from the "Serenity Indifferent" blog, please make sure to keep this source http://vrgfff.blog.51cto.com/6682480/1566098



01,centos download, install, VMware's network configuration, Xshell use


Related Article

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.