Ubuntu introduction and installation

1 Introduction to Ubuntu##

  1. Ubuntu is an open source operating system based on desktop applications, and its interface is very beautiful

  2. Download link: http://cn.ubuntu.com/download

2 installation##

Slightly, simpler than centos

3 Set Ubuntu to support Chinese##

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.

Step:

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.

4 root user##

After ubuntu is installed, it is a normal user by default. At this time, you must obtain permissions:

  1. sudo

  2. su root

Set the password of the root user and enable

1. sudo passwd

5 Ubuntu uses python

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

6 apt software management tool##

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,

apt software related commands###

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

Change the mirror source###

Tsinghua Open Source Software Mirror Station: https://mirrors.tuna.tsinghua.edu.cn/

The software source configuration file of ubuntu is /ect/apt/source.list

1. Backup /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

2. Replace /ect/apt/source.list content####

1. vim /ect/apt/source.list
2. Write the contents of the Tsinghua mirror image source file

3. Update mirror source####

sudo apt-get update

Small case

1. apt-get remove vim
2. apt-get install vim
3. apt-cache show vim

7 ssh remote login##

Unlike CentOS, Ubuntu is not installed by default
SSHD service, so it needs to be installed

7.1 installation###

apt-get install openssh-server
service sshd start

View monitoring status:
netstat -nap | more

At this point xshell can be connected

7.2 other###

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

Ubuntu introduction and installation
Python introduction and environment installation
Ubuntu PostgreSQL installation and configuration
Redis installation under ubuntu and windows
Ubuntu 19.1 installation and configuration Chinese environment
Configuration and beautification after Ubuntu installation (1)
Nginx installation and configuration load (ubuntu12.04)
Ubuntu18.04 installation Anaconda3 and VSCode guide
Ubuntu configuration source and installation software
UBUNTU 16.04 installation diary
ubuntu 1804 installation details
Ubuntu system installation
Ubuntu installation record
ubuntu 18.04 installation (UEFI+GBT)
ubuntu installation error
ubuntu Docker installation and deployment of Rancher
Ubuntu installation and deployment Redash operation notes (2020.08)
Installation and uninstallation of CUDA under Ubuntu 16.04
Ubuntu18.04 Server version installation and use (graphic)
Installation and deployment of Nginx in Ubuntu
Installation and use of Win10 subsystem Ubuntu
Ubuntu 14.04 16.04 Linux nvidia driver download and installation
DLNA/UPnP Server installation and configuration under Ubuntu 12.04
Ubuntu basic settings: introduction to the installation and use of openssh-server
Manual for Ubuntu Installation
PyCUDA-Ubuntu 14.04 installation and testing
Debian and Ubuntu installation source configuration file description
Ubuntu16.04 installation partition settings
ubuntu redis php installation
OpenMPI-Ubuntu installation and configuration
Installation of pulseaudio and API usage under Ubuntu 12.04
Ubuntu offline installation package
Ubuntu20.04 experience and beautification
Virtual machine installation and configuration ubuntu shared folder_
[python] python2 and python3 under ubuntu
ubuntu nice font installation
LNMP installation under Ubuntu
Ubuntu CEPH quick installation
Kaldi installation and configuration graphic tutorials under Ubuntu
Basic configuration and common software installation after ubuntu 18.04 installation
foreman ubuntu16 quick installation
Installation, configuration and uninstallation of GitLab in Ubuntu19.1
Ubuntu 17.10 installation toss record
Technical corner | Windows 10/7 and Ubuntu 18.04 dual system installation
Ubuntu backup and restore
Ubuntu dual system installation
Installation and use of SSH in Ubuntu environment
Ubuntu16.04 mirror complete installation and configuration tutorial under VMware
Ubuntu and RHEL dual Linux operating system installation tutorial
Installation and use of GDAL in Python under Ubuntu
Installation and simple practice of MySQL in ubuntu environment (1)
Ubuntu12 step-by-step installation and configuration (system, FTP, TELNET.. settings)
One, docker into the pit (win10 and Ubuntu installation)
Common exceptions and solutions for Ubuntu system installation and configuration
Installation and usage instructions of rz/sz command under ubuntu
Github Project-OpenPose installation on Ubuntu
Centos mysql installation and configuration
Ubuntu 16.04 compile and install PHP 7.2
Centos7 installation and configuration prometheus
ubuntu18.04 compile and install python3.8
CentOS 7 installation and configuration PPTP