关于Ubuntu Server 22.1 ARM版使用问题!

操作系统来源:

ubuntu-22.10-live-server-arm64

https://
cdimage.ubuntu.com/releases/22.04/release/ubuntu-22.04.1-live-server-arm64.iso

1,配置固定IP。

cd /etc/netplan/

cp 00-installer-config.yaml 00-installer-config.yaml.bak

sudo nano /etc/netplan/00-installer-config.yaml

network:
  renderer: networkd
  ethernets:
    ens160:
      addresses:
        - 192.168.2.34/24
      nameservers:
        addresses: [8.8.8.8, 114.114.114.114]
      routes:
        - to: default
          via: 192.168.2.1
  version: 2

注意:ens160为接口名称

生效命令:

sudo netplan apply

2,主机名:

查看主机名:
hostnamectl
修改主机名:
sudo hostnamectl set-hostname abc.com

待写

Subscribe to cnmDAO
Receive the latest updates directly to your inbox.
Mint this entry as an NFT to add it to your collection.
Verification
This entry has been permanently stored onchain and signed by its creator.