Ubuntu is an open source operating system based on desktop applications, and its interface is very beautiful
Download link: http://cn.ubuntu.com/download
Slightly, simpler than centos
Installed by default
There is only English language in ubuntu, so Chinese characters cannot be displayed. To display Chinese characters correctly, you need to install the Chinese language pack.
1. Click the icon bar on the left to open the System Settings menu, and click to open the Language Support tab.
2. Click Install/Remove Languages, drop down to find Chinese in the pop-up tab(Simplified), Which is simplified Chinese, tick the option box at the back. Then click Apply Changes to submit, the system will automatically download the Chinese language pack online. (Guarantee
ubuntu is networked).
3. At this time, "Chinese (China)" is in the last place because the current first place is "English", so the default display is English. If we want to display Chinese by default, we should set "Chinese (China)" as the first. The setting method is drag and click
"Chinese (China)", when the background color changes (indicating that it is selected), hold down the left mouse button without letting go, and drag it upwards to place it to the first position.
4. The setting will not take effect immediately, and will take effect when you log in next time.
After ubuntu is installed, it is a normal user by default. At this time, you must obtain permissions:
sudo
su root
1. sudo passwd
After ubuntu is successfully installed, python2 and python3 will be brought by default, no additional installation is required
You can install various python ide environments under ubuntu, including pycharm
https://baijiahao.baidu.com/s?id=1622347860160507809&wfr=spider&for=pc
apt is the abbreviation of Advanced Packaging Tool, an installation package management tool. Under Ubuntu, we can use apt
Commands can be used to install, delete, and clean up software packages,
sudo apt-get update update source
sudo apt-get install package install package
sudo apt-get remove package delete package
sudo apt-cache show package to obtain package information, such as description, size, version, etc.[apt-cache show vim]
sudo apt-get source package download the source code of the package
- - - - - - - - - - - - - - - - - - - - - - The above commands are most commonly used---------------------------
sudo apt-cache search package
sudo apt-get install package--reinstall reinstall the package
sudo apt-get-f install repair installation
sudo apt-get remove package--purge delete packages, including configuration files, etc.
sudo apt-get build-dep package installation related compilation environment
sudo apt-get upgrade update installed packages
sudo apt-get dist-upgrade Upgrade system
sudo apt-cache depends package Understand which packages the package depends on sudo apt-cache rdepends package View which packages the package depends on
Tsinghua Open Source Software Mirror Station: https://mirrors.tuna.tsinghua.edu.cn/
The software source configuration file of ubuntu is /ect/apt/source.list
mv /ect/apt/source.list /ect/apt/source.list.backup
If the permissions are not enough, switch to the root user, or use sudo
1. vim /ect/apt/source.list
2. Write the contents of the Tsinghua mirror image source file
sudo apt-get update
1. apt-get remove vim
2. apt-get install vim
3. apt-cache show vim
Unlike CentOS, Ubuntu is not installed by default
SSHD service, so it needs to be installed
apt-get install openssh-server
service sshd start
View monitoring status:
netstat -nap | more
At this point xshell can be connected
openssh-sever will install the client and server,
So ubuntu can also connect to other machines with sshd service at this time
Basic syntax:
ssh username@IP
For example: ssh [email protected]
Use ssh to access, such as access errors. Can check if there is the file~/.ssh/known_ssh tried to delete the file to solve.
Logout command: exit or logout
Recommended Posts