LoginSignup
1
0

More than 3 years have passed since last update.

ラズパイ2 無線LANの設定

Last updated at Posted at 2019-09-14

はじめに

今はもう、ラズパイ2を使っている人は少ないと思います。
しかし私の手元には2台もあり、これを使って、また電子工作をやろうかなーと思い、無線LANの設定をはじめました。
ところが意外と手こずってしまったので、設定を残しておきます。

前提

・ラズパイ2を使用。
・USBにWIFIモジュールをつけて通信する。
・アクセスポイントのSSIDはステルス設定になっている。

無線LANの設定

弄るファイルは以下二つ。
・/etc/network/interfaces
・/etc/wpa_supplicant/wpa_supplicant.conf

/etc/network/interfaces.
# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
#source-directory /etc/network/interfaces.d ★消す!!!
auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wireless-essid SSIDを記述
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
/etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
        ssid="SSIDを記述" ★ダブルクォートで囲むこと
        psk="パスワード"  ★ダブルクォートで囲むこと
}

短いですが、以上です。

1
0
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
0