1. Linux background
On October 5, 1991, Linus Benedict Torvalds, a graduate student at the University of Helsinki, told a Usenet news group
(comp.os.minix) announced that he had compiled a small UNIX-like operating system called Linux. The new operating system is influenced by
Inspired by another small UNIX operating system, Minix, which was developed by a teacher named Andrew S Tanenbaum
Sent. Readers may guess that the system released should be version 0.01 of Linux, but this is not actually the case. Real Linux
Version 0.01 has not been released because version 0.01 is not practical. Linus was just the first Linux FTP site
The source code for this version is available at (ftp://nic.funet.fi).
2. Set up a Linux environment
Install it directly on the physical machine . However, since the Linux desktop is very unfriendly to use , it is not recommended . Use virtual machine software to build Linux on a virtual machine. However, because there are some bugs in the current virtual machine software (such as VMWare), it will cause various inexplicable problems in the environment, which is quite troublesome. To use a cloud server , you can directly purchase a cloud server from a server manufacturer such as Tencent Cloud , Alibaba Cloud or Huawei Cloud .
Why use cloud server:
3. Purchase a cloud server
We take Tencent Cloud as an example , and other server manufacturers are similar .
1. Enter the official website Student Cloud Server_Student Cloud Host_Student Cloud Database_Cloud + Campus Special Package-Tencent Cloud ( directly search for " Tencent Cloud Campus Plan " on Baidu )
2. Log in to the website ( you can use qq or WeChat to log in )
3. For the operating system on the right, select CentOS 7.6 64- bit . Select the purchase period as needed ( 1 year is recommended ), and click Buy Now .
This step requires real-name authentication (and students under 25 years old do not need student authentication)
4. After the purchase is completed , you can find the server you purchased in the console . Click in to see the IP address of the server.
The blue box is the public IP address . We will use this IP to log in to the server later .
5. Set the root password : Check the server and click Reset Password ( this step may require SMS verification ). It is recommended to set the root password to be slightly more complex , otherwise it will be easily hacked.
So the steps we need to complete in this process are summarized as follows:
Server ’s external IP
Administrator account of the server ( fixed to root )
Administrator account password ( set on Tencent Cloud website )
4. Use xshell to log in to linux
Install xshell at the following URL: xhell URL https://www.xshell.com/zh/free-for-home-school/
Open xshell:
Then log in as the root user: fixed statement ssh @root+ip address
Enter the password you set
This will complete the login
5. Multiple people use cloud servers
Command: adduser name and can set password
What needs to be noted here is that we cannot see the password input, but the password will be entered. At this point, the user has been created successfully. Once here, we can log in using the user we created:
Enter the password for the user you created:
If you can create a user, you can delete the user:
Instructions to delete users (we still log in to the root user to delete the created users):
userdel -r + username:
The user created at this time was successfully deleted by us.