shlu's note

安装到笔记本

yaml是专门用来写配置文件的语言:它对大小写敏感;使用缩进表示层级关系;缩进时不允许使用Tab键,只允许使用空格;缩进的空格数目不重要,只要相同层级的元素左侧对齐即可

1.静态IP

# This is the network config written by 'subiquity'
network:
  ethernets:
    enp0s3:#配置的网卡名称,使用ifconfig -a查看得到
      dhcp4: no
      addresses: [192.168.1.6/24]
      optional: true
      gateway4: 192.168.1.1
      nameservers:
              addresses: [192.168.1.1,114.114.114.114]
  version: 2

2.动态IP

# This is the network config written by 'subiquity'
network:
  ethernets:
    enp0s3:#配置的网卡名称,使用ifconfig -a查看得到
      dhcp4: true
      addresses: []
      optional: true
      nameservers:
              addresses: [114.114.114.114]
  version: 2

这里192.168.1.6为当前笔记本局域网IP地址,改为不与其他设备冲突的即可

连接WLAN

ctrl_interface=/var/run/wpa_supplicant

ap_scan=1

network={
        ssid="wifi_name"
        psk="password"
        priority=1
}

笔记本关盖子不休眠

参考

https://www.bilibili.com/read/cv10613992/

https://blog.csdn.net/xiaoxiao133/article/details/82847936

https://www.cxyzjd.com/article/u014454538/88646689

声明:转载请注明出处,原文地址:shlu's note