In this blog, I will lead you to install Centos 7 in the virtual environment of VM 14 (7 is the latest Centos system) and can realize remote connection through Xshell 6 (a remote control software).
Directory:
1. Complete the basic Centos creation in the VM14 virtual environment
2. Complete the installation of Centos 7 and connect to the Internet.
3. Use Xshell 6 to achieve Remote control
What is Centos?
CentOS (Community Enterprise Operating System, meaning community enterprise operating system in Chinese) is one of the Linux distributions, based on the enterprise-level Linux distributions provided by Red Hat Linux that can freely use the source code. It is a completely free open source software.
Download address: https://www.centos.org/download/
There is so much nonsense, let’s start:
First, complete the basics in the VM14 virtual environment Centos creation
First, open our VM14 and select “Create a new virtual machine” on the home page (students who have not created an icon on the desktop can also click on the file in the upper left corner-create a virtual machine to achieve)
Then, select “Custom” in the wizard, and select the default VM14 for compatibility, and select “Install Later” in the next installation source (because we have to choose which Linux Kind of version)
Next, the following steps:
1. Name the virtual machine and set the installation path (under the path Don’t have Chinese)
2. Set the number of processor cores (the host is a single core with 4 cores and 4 threads and below, and the host is a choice with 6 cores and 12 threads and above. Use 2 cores or even 4 cores)
3. Set the memory (1G for host memory below 8G is enough, 2G for 8G~16G, 4G for 16G or more)
4. Select network Type (be sure to select the NAT mode, many of the Centos software installations need to be connected to the Internet to install)
Settings after this Just choose the default. The only thing to note is that there can be no Chinese in the installation path of the disk file.
Finally, after completing the virtual Don’t forget to put the ios image of Centos 7 in the CD drive before setting up the computer, and you can easily delete some unused devices.
Next let us enter The second part of this experiment operation: install Centos 7 and enable it to connect to the Internet (not the network card is in NAT mode~~)
Second, complete the installation of Centos 7 and connect to the Internet
2-1 Centos 7 installation
First open the set Centos7-2, press enter in the following interface to start the installation
wait patiently for 30s~one Minutes (the time varies depending on the configuration you set for the virtual machine) to enter the installation interface, first set the entire installation process to Chinese (if English is good, you can set it to English XD), click Next, first pay attention to whether the time zone and language are correct< br>
Follow the above picture, Click on the software selection and modify the minimum installation to GNOME desktop (the minimum installation is not complete)
Complete and wait for its dependency relationship After completion, click on the installation location to perform manual partitioning (automatic partitioning has many disadvantages, and it is very likely that you will not be able to install too many software)
Next steps: (The order is in the order of the pictures)
1. First change the automatic configuration partition to “I want to configure the partition”
2. Select the standard partition in the drop-down menu as shown in the figure, and then click the “+” sign to start adding Load point (equivalent to adding a partition in Windows)
3. Follow by “/” root (similar to the C drive in Windows), “swap” virtual swap partition (similar to the virtual memory in Windows, the capacity is the actual memory 1.5~2 times), “/boot” boot partition, “/home” home directory mounting, where “/” and “swap” must be mounted. If the settings are wrong, you can click the lower right corner to perform “Reset all” Set”
4. Click Finish to start the installation
Finally before the installation starts Root password settings are required (which will be used for Centos networking later). Please quietly wait for the installation to be completed. ~~eh~~~ can’t access the Internet (we said before that many Centos software needs to be connected to the Internet to install, what should I do?)
You need to do it after installation is complete Restart. After the restart is complete, complete the basic settings according to the picture.
After completing the initial configuration, The subsequent configuration is basically the default, not to mention it. Just pay attention to the time zone and personal login account password settings.
After all settings are completed, Open the Firefox browser through the application in the upper left corner of the desktop and find that
Don’t hurry, not before There is a problem with the settings, but some settings are not turned on.
2-2 Modify the network card settings so that it can connect to the Internet
Return to the desktop, click the upper right corner to log out the personal account, Enter the highest authority account by entering the root account password set before. The operation sequence is as shown in the figure:
1, log out the personal account;
2, click not listed;
3&4, enter the account “ROOT” password
After re-entering the desktop, Right-click on the desktop and select “Open Terminal”
Type in the terminal< strong>“vim /etc/sysconfig/network-scripts/ifcfg-ens33” Note that there is a space after vim, so don’t forget it; and ens33 here is the default network card name, enter ens33 after pressing Enter Settings, found that “onboot” is no, this setting is to control whether the network card is activated when the system starts.
Use the arrow keys to move the light spot Move to this setting. At this time, you cannot modify it directly. You need to press “I” (capital i) to enter the insert mode, and then you can modify it.
After the modification is completed,< br>1. First press “ESC” to exit, then enter “:” to return to the bottom, then enter “wq” to save and exit
2, the setting is not effective at this time, you need to enter “service network restart” to set the network service Restart
Exit the terminal at this time, Reopen the Firefox browser and enter “www.baidu.com” to successfully connect to the Internet.
三, Use Xshell 6 to realize remote control
What is Xshell?
Xshell?? is a powerful secure terminal emulation software, which supports SSH1, SSH2, and the TELNET protocol of the Microsoft Windows platform .Xshell helps users enjoy their work in a complex network environment through the secure connection of the Internet to the remote host.
The Xshell used this time is the latest version of Xshell 6, download link:
https://pan.baidu .com/s/1FyJTpnq_7BVbsgpGDfRPgg Extraction code: atvs
3-1 Complete the settings of Xshell for later use
First complete the installation of Xshell (nothing to say, basically the default Option, the next step will be completed), and then double-click to open Xshell
Select “through the menu bar” Default session settings” start setting steps:
1, select the terminal-keyboard, start preliminary settings
2, set the DELETE key sequence and BACKSPACE key sequence as shown in the figure to ASCII 127 (this option can recognize Chinese and English Symbol difference)
3. Choose the appearance
4. Change the color scheme and font according to the picture, the font can recognize Chinese
Then let us return to the menu Select New in the column
In the name and host Enter the user-defined name and the ip of the connected host respectively (you will know it immediately). Others remain unchanged.
I don’t know if you need to connect to the host What should I do with the IP? No hurry. Return to the Centos virtual machine, right-click to open the terminal, enter “ifconfig” to view the network card information, and get the host ip
After the creation is complete, double-click The icon on the left, start remote login
1, enter the highest authority account, remember to remember the account (otherwise you will have to re-enter it every time you enter)
2, enter the corresponding password, and also remember the password
The next step is the verification time , Is there any success? Enter “ifconfig” in the Xshell corresponding host (guarantee that the corresponding Centos is open) Dangdang!!! The corresponding host network card information is displayed successfully, the experiment is successful!!