1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

raspberry pi zeroでusb wifiを使う設定

Posted at

raspberry pi zeroでwifiを使う
忘れないために書く簡単な設定

使用部品

raspberry pi zero v1.3
buffalo WLI-UC-GNM2```

1.
```lsusb```
USBを認識してるか確認
```ifconfig```
USBの名前を確認

今回```wlan0```と認識してた。


2.
ファイルを書き換えるか追加
```nano /etc/network/interfaces```

ipアドレスを固定にしたいのでstaticとする。

```/etc/network/interfaces
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static

wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

address 192.168.000.000
netmask 255.255.255.0
gateway 192.168.000.000

wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
接続したいwifiのSSIDやパスワードを書く

nano /etc/wpa_supplicant/wpa_supplicant.conf

network={
         ssid="hoge"
         proto=WPA2
         key_mgmt=WPA-PSK
         psk="hoge"
        }

これで最後に再起動

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?