ubuntu-20.04.4-live-server installation configuration record

ubuntu-20.04.4-live-server installation and configuration notes

Official website: https://cn.ubuntu.com/download
server

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
create
customize
choose
default
named
installation path
kernel
insert image description here
Next step
Next step
Next step
Next step
50
default
Finish

3. Select languageEnglish

4. Set up the keyboard

insert image description here

5. Configure dynamic IP address

insert image description here

6. Table switch to proxy address

This can be configured with Aliyun (http://mirrors.aliyun.com/ubuntu/), download acceleration
or default...
proxy addresspress Enter to set the mirror source address,people

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
insert image description here

7. View the current file system configuration

Continue, or go back and reconfigure storage as needed.
insert image description here

8. Select "Continue" to start the installationinsert image description here

9. Enter the server system details,

Set up a user, name, server name, username and its password
insert image description here

10. Leave blank, next step;

If you want to register the system, please enter your Ubuntu Advantage token here. Otherwise, leave this blank.insert image description here

11. Choose to install openSSH server

I am used to connecting with third-party tools, so choose. Press ENTER to continue.
insert image description here

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. insert image description here
installing…
insert image description here

13. Installed, restart

14. Set a password for the root account:

sudo passwd
su root

insert image description here

15. Change user password under root user

insert image description here

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
insert image description here
ESC => :wq save and exit

17. View and modify IP

Installapt install net-tools
insert image description here

Checkifconfig -a

insert image description here

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~

Guess you like

Origin blog.csdn.net/qq_44870331/article/details/123768010