树莓派ubuntu20.04网络配置
【代码】树莓派ubuntu20.04网络配置。
·
配置wifi
打开并编辑/etc/netplan/目录下的网络配置文件:
sudo gedit /etc/netplan/50-cloud-init.yaml
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
wifis:
wlan0:
dhcp4: true
optional: true
access-points: # 所有WiFi热点都放在这个节点下
"wifi1":
password: "password1"
"wifi2":
password: "password2"
"wifi3":
password: "password3"
保存后,终端运行命令:
sudo netplan try
然后按ENTER键确认。
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)