raspberry pi 無線lan 固定

再び

環境

[code lang=text] root@raspberrypi:~# uname -a Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux root@raspberrypi:~# cat /etc/debian_version 8.0 [/code]

刺さってるか確認

[code lang=text] root@raspberrypi:~# lsusb Bus 001 Device 005: ID 046d:0825 Logitech, Inc. Webcam C270 Bus 001 Device 007: ID 2019:ab2a PLANEX GW-USNano2 802.11n Wireless Adapter [Realtek RTL8188CUS] Bus 001 Device 006: ID 413c:2003 Dell Computer Corp. Keyboard Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub [/code]

scanして確認する

[code lang=text] root@raspberrypi:~# iwlist wlan0 scan | grep ESSID ESSID:"MyPlace_A8804C" ESSID:"FON_FREE_EAP" ESSID:"aterm-24g" ESSID:"aterm-3c0942-gw" ESSID:"pr500m-97b642-2" ESSID:"pr500m-97b642-1" ESSID:"perapera0225" ESSID:"PS3-1779779" ESSID:"e-timer-15FDD8" ESSID:"Buffalo-G-AA1A" ESSID:"right-mobile" ESSID:"aterm-7b0815-g" ESSID:"aterm-7b0815-gw" ESSID:"right-mobile" [/code]

設定ファイルをつくる

[code lang=text] root@raspberrypi:~# wpa_passphrase "さっきscanしたESSID" "無線lanのパスワード" >> /etc/wpa_supplicant/wpa_supplicant.conf [/code]