博客源文章地址
前言树莓派安装完成Ubuntu服务器版本之后想要连接WIFI(隐藏SSID),其实Ubuntu官方就已经提供了设置方法官方文档,不过在此就简化一下。
方法首先flash好系统文件之后,打开U盘的boot分区,在根目录下找到network-config文件,将其中的这段代码:
#wifis:# wlan0:# dhcp4: true# optional: true# access-points:# myhomewifi:# password: "passwd"# hidden: true# myworkwifi:# password: "correct battery horse staple"# workssid:# auth:# key-management: eap# method: peap# identity: "me@example.com"# password: "passw0rd"# ca-certificate: /etc/my_ca.pem更换成下面这段:
wifis: wlan0: dhcp4: true optional: true access-points: "你wifi的名字": password: "你wifi的密码" hidden: true其中你的WiFi名字最好不要有中文,如果你的WIFI的SSID被隐藏则将hidden设置为true否则为false