After 2020Ubuntu server1804 latest installation configuration

A, Putty for ssh connection.

After completing the basic configuration, remote connection to the server. In the windows, I used putty

To find a putty in my previous old computer which is version 0.6, even on Ip, or the original recipe, or the original taste.

View some about, is the 2007 version, too old, so I quickly went to putty the official website to check some of the latest stable version is 0.73

Should be used are similar, late again.

Second, set the root password

When the system is installed, only allow the user to enter another password. Although you can enter sudo su to the root user. But in the end is a need to modify the settings

Enter the command: sudo passwd

Enter the current user's password, and then enter twice the new Unix password, to set up a root account password

exit Exit the current account, root password, su, enter just set, you can enter the root account

Ordinary users, before the command line prompt is $ super administrator is #.

Third, modify the ordinary user's password

sudo passwd user name, enter the current password, then enter the new password, the user can modify the user's password.

Add the user's command is sudo adduser test, the system will automatically add the user directory and configuration files, prompted for a password, and finally information

Delete the user's command is sudo userdel test then need to manually delete the user's home directory directory.

Fourth, time synchronization server.

Enter the command: sudo tzselect

Follow the prompts to select the region, Asia, China, Beijing

 

1 final confirmation.

Enter the command:

$sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/loacltime

$: date 
# You can watch the right time.

 Fifth, install the software jokes.

1, for too long is not installed mysql. Direct sudo apt install mysql always prompt can not find the installation source. The right to install mysqlserver

2, pip3 installation Python3 I always enter sudo apt install pip3, but also can not find the installation source. I always suspected that the installed system problems.

Correct: sudo apt install python3-pip. Enter pip3 -v message prompts, the installation was successful.

Pip3 install upgrade command pip3

Command to uninstall Pip3 of: sudo apt remove python3-pip

3, installation ipython3 

Enter commands directly: sudo apt install ipython3
because ubuntu1804 no longer comes with python2.7, but the default installation of version 3.6.9 is pyhton3

Sixth, close the command

sudo su to switch to the Super Admin

shutdown -h now shutdown immediately

shutdown -r now immediately restart

shutdown -h +3-third after shutdown

shutdown -r +3-third restart

shutdown -r 20:23 will reboot in 20:23 minutes

In the waiting time inside, you can shutdown or restart before the shutdown -c cancel command

Guess you like

Origin www.cnblogs.com/qumogu/p/12384917.html