Raspberry Pi 3 Model B のWi-Fiセットアップ方法
Raspbian Lite (2016-05-27-raspbian-jessie-lite.img)
Wi-Fiアクセスポイントのスキャン
1 2 3 4 5 6 7 8 9 10 11 12 13 |
$ sudo iwlist wlan0 scan wlan0 Scan completed : Cell 01 - Address: xx:xx:xx:xx:xx:xx Channel:11 Frequency:2.462 GHz (Channel 11) Quality=70/70 Signal level=-13 dBm Encryption key:on ESSID:"Buffalo-G-1234" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s 18 Mb/s; 36 Mb/s; 54 Mb/s Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s Mode:Master ... |
Raspberry Pi 3 Model B は 5GHz帯 未対応
接続情報の暗号化
1 |
$ wpa_passphrase [SSID] [PASS] |
wpa_supplicant.confの編集
/etc/wpa_supplicant/wpa_supplicant.conf
1 2 3 4 5 6 7 |
country=JP ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="Buffalo-G-1234" psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx } |
Wi-Fiの有効化と無効化 (新)
無効化
1 |
$ sudo ifconfig wlan0 down |
有効化
1 |
$ sudo ifconfig wlan0 up |
Wi-Fiの有効化と無効化 (旧)
無効化
1 |
$ sudo ifdown wlan0 |
有効化
1 |
$ sudo ifup wlan0 |