The installation tutorial for VMware virtual machine is as follows. If it is not installed, you can refer to this blog to install it (resources provided)
1. Resource download
CentOS 7 image
shell remote connection tool
xftp file upload tool
The network disk address for downloading resources is as follows:
2. CentOS installation
This demonstration uses Windows as an example
Note: If you have an Apple Mac M1 pro chip computer, follow this article to install the centos7 virtual machine:
However, I have prepared these images. You can download them from the network disk and use them.
Next start the installation
1. First create a folder specifically for the virtual machine.
I created an all_system folder on drive E to store the installed virtual machine.
2. Open the VM and create a new virtual machine
3. Select typical and next step
4. Install the operating system later and then next step
5. Select Linux, then select CentOS 7 64-bit, next step
6. Give the virtual machine a name and select the folder you just created.
7. The disk size is determined by you based on the remaining capacity of your computer (it can be increased later)
8. Click Finish
9. Open 'Edit virtual machine settings'
10. Select the downloaded or CentOS-7.8-x86_64-DVD-2003.iso file I provided and click OK
11. Click to start the virtual machine
12. When the font changes to white, it means it is selected. Select the first one (the up and down keys can be used to select up and down) and press Enter.
13, then wait, and finally as follows, select Chinese
16. As follows, we set the partition. Like Windows, Linux also has partitions.
18, as follows
19. Unlike Windows, Linux has drive letters such as C drive, D drive, etc. It only has one root drive letter, which is /, and the remaining directories are subdirectories under it. First give all space to /
20, then click Finish
21. The following warning may be given, saying that our division is unreasonable. It’s okay. Ignore it for now and click Finish directly.
22. There will be a prompt like this, just click to accept.
23, as follows, turn off the Kdump function, because it is of no use for our current study and will instead occupy memory.
24. Uncheck and click Finish
25. Next set the network and host name
26. After opening, click Finish
27. Next, click to start the installation:
28. As follows, during installation, set a password during the installation process. Linux has a root user by default, which is similar to our administrator user in Windows. It is a super administrator user. We only have such a root user when we come up. Set a password for it. Otherwise, you will still be asked to set a password when you enter the system later.
29. After the setting is completed, press the completion button twice ( weak passwords require two clicks on the completion button )
30. Click Finish again.
31. The password setting is completed, just wait for the installation of the system to be completed.
32. The system is finally installed, click Restart.
33. After the restart is complete, enter the account root
34. Enter the password you set
35. System installation is completed
36. It is best to take a snapshot after the installation is completed, so that it can be restored to the current post-installation appearance in case of damage. If you take a snapshot ,
You can shut down using the command
shutdown -h now
37. Take snapshots
38, then click to take a snapshot
39. This is done. If the system is damaged in the future, or if you want to go back to the way it was just installed, you can do it by restoring the snapshot.
40. After selecting the snapshot you want to restore, click 'Go' below
41. Just select 'Yes' and you will be back to the system state when we took the snapshot.
We found that the Linux system fonts are very small, and it is very inconvenient to operate like this all the time. Next, install the remote connection tool xshell
3. Installation of xshell tool
3-1 Tool download and installation
You can download it from the official website, address:
XSHELL - NetSarang Websitehttps://www.xshell.com/zh/xshell/
As follows, please enter your email address. You will need to enter this email address later during the installation of xshell:
The tools have also been provided and are included in the resources. You can download them from the network disk.
1. Double-click to install
2. Next step
3. Next step after accepting the agreement
4. Change the path and then proceed to the next step (try not to install on the C drive by default)
5. The default is enough, click to install.
6. Click Finish
7. Click OK
8. Click OK to update, otherwise use
9. Just go to the next step
10. Next step
11. Completed
12. There is a shortcut on the desktop, double-click to open it.
13. If you have an email address, enter your account number and log in. If you don’t have an email address, register.
14. Confirm
15. Installation successful
3-2 Connection
Let’s take a look at the IP address of the linux system just now
ip addr command to view IP address
The IP address is 192.168.220.137
3-2-1 Window connection
Fill in this information first, name it whatever you want
Then select User Authentication on the left, fill in the username and password and click Connect.
Accept and save
Already connected
ready to use
3-2-2 Command line connection
Format
ssh username@IP address
Enter the ssh remote connection command and press Enter
Fill in the password and confirm
Already connected, you can execute commands
What if you want to transfer data between the physical machine and the Linux system? Then you need to install an FTP resource transfer tool, which can easily transfer resources.
4. Install Xftp to upload files
2. Next step
3. I accept the agreement, next step
4. Modify the default installation address and then proceed to the next step.
5. Click Install
6. Click Finish
7. OK, update
8. OK
9. Next step
10. Next step
11. Completed
12. The installation is now complete. Just click here. xshell will automatically call the xftp tool we installed:
13. If you have already registered your email address, log in directly. If not, register and click Submit.
14. Click OK and then go to your email for verification.
15. The installation is complete. Now you can transfer files by dragging.