ubuntu-20.04.4-live-server installation and configuration notes
Official website: https://cn.ubuntu.com/download
1. Download
Official website:
https://cn.ubuntu.com/download/server/thank-you?version=20.04.4&architecture=amd64
Aliyun:
http://mirrors.aliyun.com/ubuntu-releases/20.04/ubuntu-20.04. 4-live-server-amd64.iso
Tsinghua:
https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/focal/ubuntu-20.04.4-live-server-amd64.iso
2. Load the iso file
USING WORKSTATION 16 PRO TOOLS
3. Select language
4. Set up the keyboard
5. Configure dynamic IP address
6. Table switch to proxy address
This can be configured with Aliyun (http://mirrors.aliyun.com/ubuntu/), download acceleration
or default...
press Enter to set the mirror source address,
6. Configure disk cloth
Use Entire Disk: This method will erase the entire hard disk and automatically partition the drive. Recommended for beginners
If you choose this option, you can choose to setup LVM and use LUKS to encrypt the LVM configuration
Custom storage layout: manually set the partition of their choice
7. View the current file system configuration
Continue, or go back and reconfigure storage as needed.
8. Select "Continue" to start the installation
9. Enter the server system details,
Set up a user, name, server name, username and its password
10. Leave blank, next step;
If you want to register the system, please enter your Ubuntu Advantage token here. Otherwise, leave this blank.
11. Choose to install openSSH server
I am used to connecting with third-party tools, so choose. Press ENTER to continue.
12. Next time I must install...
Choose from the list of available feature packages for your Ubuntu system. They will be installed along with the Ubuntu server installation. Use SPACE to select or deselect them. Press ENTER to view more details of the snap app. This is optional and you can do it later.
installing…
13. Installed, restart
14. Set a password for the root account:
sudo passwd
su root
15. Change user password under root user
16. Allow remote connection root user
By default, you cannot log in as the root user using the remote connection tool, you need to set up a configuration file
vi /etc/ssh/sshd_config
Press letter a or letter i to enter insert mode, you can start typing
Add line: PermitRootLogin yes
restart ssh service: service ssh restart
ESC => :wq save and exit
17. View and modify IP
Installapt install net-tools
Checkifconfig -a
Before Ubuntu 17.10,
vi /etc/network/interfaces
From Ubuntu 17.10: change to netplan mode,
discard the configuration of fixed IP in /etc/network/interfaces,
use /etc/netplan/01-netcfg.yaml or a yaml file with a similar name inside
sudo vi /etc/netplan/00-installer-config.yam
Add to:
network:
ethernets:
ens33: #配置的网卡的名称
addresses: [192.168.20.128/24] #配置的静态ip地址和掩码
dhcp4: no #关闭DHCP,如果需要打开DHCP则写yes
optional: true
gateway4: 192.168.20.10 #网关地址
nameservers:
addresses: [192.168.20.10,114.114.114.114] #DNS服务器地址,多个DNS服务器地址需要用英文逗号分隔开
version: 2
renderer: networkd #指定后端采用systemd-networkd或者Network Manager,可不填写则默认使用systemd-workd
Effective:sudo netplan appl
The installation and configuration of ubantu20.04.4 is here temporarily, the end~