2
0

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 3 years have passed since last update.

Raspberry Pi 4 の Manjaro を Wi-Fi で繋ぐ

Posted at

はじめに

環境
$ lsb_release -rd
Description:    Manjaro ARM Linux
Release:        20.08

NetworkManager は使わずに、dhcpcdwpa_supplicant だけで Wi-Fi の設定をするよ。
AP は WPA2-PSK + AESステルス 設定のものに繋ぎにいくよ。
IPアドレスは DHCP に頼らず固定するよ。

NetworkManager は殺す

$ sudo systemctl stop NetworkManager
$ sudo systemctl disable NetworkManager

設定ファイルを作成・編集

ポイントは wpa_supplicant.conf ではなく wpa_supplicant-wlan0.conf にすること。

/etc/wpa_supplicant/wpa_supplicant-wlan0.conf
country=JP
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=network
update_config=1
ap_scan=1
network={
    scan_ssid=1
    ssid="xxxxxxxx"
    psk=xxxxxxxx
    key_mgmt=WPA-PSK
    proto=RSN
    pairwise=CCMP
    group=CCMP
}
/etc/systemd/network/wlan0.network
[Match]
Name=wlan0

[Network]
DHCP=no
/etc/dhcpcd.conf
interface wlan0
static ip_address=192.168.1.123/24
static routers=192.168.1.254
static domain_name_servers=192.168.1.254

systemd で有効化

$ sudo systemctl enable wpa_supplicant@wlan0
$ sudo systemctl start wpa_supplicant@wlan0
2
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?