[Linux programming] teach you how to build a Linux programming environment

There are two schemes for setting up the Linux programming environment.
I will give a detailed explanation of these two programs in order to help you reduce the barriers to learning Linux programming.


Option 1: Cloud Server + Xshell

This solution is to deploy our Linux operating machine on the cloud server, and then operate the Linux machine on your own computer through Xshell.

Advantages: Simple deployment of Linux environment, low maintenance cost in the later period, you can mess around without worrying about the whole collapse (recommended)
Disadvantages: need to spend money to buy, basically 100-120 yuan / year, sometimes it will be cheaper to engage in activities.

小技巧: You can buy a cloud service machine with a few classmates and share the cost evenly. Anyway, it is a multi-user operating system, which can be used by many people at the same time. The performance is absolutely sufficient, and the money is not wasted.

1. The choice of cloud server The
domestic cloud services are better, such as 阿里云, 腾讯云, 华为云etc. In fact, we don't need to worry about which one to buy, anyway 哪个便宜买哪个, the actual use experience is similar.
insert image description here
insert image description here
insert image description here

2. Purchase of cloud servers
I purchased Tencent Cloud myself, and I will take Tencent Cloud as an example.

1) Register / log in to Tencent Cloud first
insert image description here

You may encounter real-name authentication when registering/login, just do the authentication (if I didn't encounter it, I didn't say it)

2) Switch to the cloud campus area module, click "Buy Now" to select
insert image description here
3) Choose to buy (recommended to buy cheap, the performance is completely sufficient!)
insert image description here
4) Linux environment deployment on cloud server
insert image description here
Enter the cloud service instance interface Instance-Cloud Server- Console (tencent.com) , configure the instance, and configure it to the latest version of CentOS.

If you encounter other problems, you can find relevant manuals or online consultation to solve them (I did not encounter other problems when configuring the environment)

insert image description here
5) Log in to the cloud server
After configuring the Linux environment on the cloud server, we need to perform login verification,
insert image description here
insert image description here

I have logged in before and saved the password here, so when you open the page, you can directly click to log
in. If you have not logged in before, you need to enter a password. This password is an initial password. My previous initial password is a mess anyway. char 4^Ng}ex% RmJy7n

insert image description here
The Xshell-related deployment part is placed later. The following describes how to build a Linux environment for the following virtual machines.


Option 2: Virtual Machine + Xshell

This method is to use the virtual machine platform to create a virtual machine equipped with a Linux system. There are many virtual machine platforms. I recommend VM(VMware Workstation)
insert image description here
the installation tutorial of VM here. You can refer to this blog . VM virtual machine download and installation tutorial _ Nuomi - CSDN Blog _vmware virtual machine installation tutorial (install the virtual machine first and then look down~)

So far, I believe that the students have installed the VM. At this point, when you enter the VM interface and create a virtual machine, you
insert image description here
will find that it cannot be created
insert image description here
. Because we still lack the CentOS image file at this time, we need to download the CentOS image file. (These image files are actually the code containing the operating system software)
You can directly go to the official website of the CentOS image file to download Download (centos.org):
insert image description here

insert image description hereAfter the download is complete, enter the
formal installation link:
1) Click to create a virtual machine
insert image description here
2) Select "Typical", click Next
insert image description here
3) Click "Browse", select the path where the CentOS image file is saved
insert image description here
4) Select the CentOS image file, click Open
insert image description here
5) Change the default path, click "Next"
insert image description here6) Click "Next"
insert image description here7) Create and complete the
insert image description here
Linux environment to run
1) Click to start
insert image description here
2) Select "I have completed the installation"
insert image description here
3) Wait for the loading (just watch it quietly, one minute Left and right)
insert image description here
4) Turn around and try the functions of each button
insert image description here
5) Create a new root password, create a new user
insert image description here
insert image description here
Create a new root password, click Done in the upper left corner to complete
insert image description here
insert image description here
the login with the root user, and then you can use root to create other users
insert image description here


Are there any classmates who want to use cloud servers and don't want to spend money? For example, I accidentally discovered a way of prostitution: the free trial of HUAWEI CLOUD may only last for a few months, but I don’t think it can stop the enthusiasm of the students for prostitution, hee hee~

insert image description here


Xshell download and installation

Xshell is a remote terminal software, the download official website is Xshell7_Xftp7, Xmanager7 download - xshellcn (you can also directly search for "Xshell" in Baidu) The
installation tutorial is:
Xshell 7 installation activation and replacement license transfer license tutorial - xshellcn
is actually a simple click Next, change the path when you encounter the default installation path.

How to connect xshell?

1) ifconfig command: view network card information
insert image description here
Copy: the ip address in the red box (copy your own, not mine)
2) Open the xshell software, click New
insert image description here
3) Paste the copied ip address to the host here
insert image description here
4) Click Open the small triangle of the control to expand, select the created host name
insert image description here
5) Change the color scheme
insert image description here


Originality is not easy, 一键三连support me~, if you can still 关注me, it is the greatest encouragement to me!

Guess you like

Origin blog.csdn.net/QIYICat/article/details/123013153