A memorandum regarding Wifi connection when installing Arch Linux

This article

I've briefly recorded for myself the steps to make a Wifi connection when installing Arch Linux.

Basically, the installation will be completed without any problem if you follow @ TsutomuNakamura's "Arch Linux Installation Our Complete Edition". At this time, an internet connection is required, but I had a little trouble setting up Wifi because I couldn't use a wired connection, so I'll record the solution at that time.

From the conclusion

For WPA / WPA2, use ** wpa_supplicant **. I couldn't use ** wifi-menu **.

procedure

Full view

> ip link
> ip link set [interface] up
> iwlist [interface] scanning | grep "ESSID"
> wpa_supplicant -B -i [interface] -c <(wpa_passphrase [ESSID] [password])
> dhcpcd
> ping archlinux.org

-[interface]: The name of the interface -[ESSID]: SSID name -[password]: Password

1. Check the name of the interface

ip link

First, check the name of the interface. As a Wifi interface, a name like "wlan0" was displayed in my case.

2. Enable the interface (often unnecessary?)

ip link [interface] up

If the interface obtained in 1. is disabled, enable it with this command. For information on enabling / disabling the interface, see "Wi-Fi connection (wireless setting) under Arch Linux installation media environment | Unskilled? E3% 83% B3% E3% 82% B9% E3% 83% 88% E3% 83% BC% E3% 83% AB% E3% 83% A1% E3% 83% 87% E3% 82% A3% E3% 82% A2% E7% 92% B0% E5% A2% 83% E4% B8% 8B% E3% 81% A7% E3% 81% AEwi-fi% E6% 8E% A5% E7% B6% 9A% E3% 83% AF% E3% 82% A4% E3% 83% A4 /) "" How to distinguish between valid and invalid "see below.

3. Search for SSID

iwlist [interface] scanning | grep "ESSID"

Search for the Wifi SSID you want to connect to from the interface obtained in 1. If it is not found, it may be displayed when you hit the command again, and the interface may be incorrect.

4. Connect to Wifi

wpa_supplicant -B -i [interface] -c <(wpa_passphrase [ESSID] [password])

Enter the interface name obtained in 1., the SSID obtained in 3., and the Wifi password to connect. This command is for WPA / WPA2, but ** well, most devices will be WPA / WPA2 **, and I'm writing this memorandum.

5. Assignment of host information

dhcpcd

incantation. Obtain the IP address, etc. and make various settings. For details, refer to "dhcpcd --Explanation of system management commands --List of Linux commands".

6. Check the connection

ping archlinux.org

Ping the appropriate address to confirm that the connection is complete. The destination of the ping is appropriate.

Summary

Arch Linux is fun!

Recommended Posts

A memorandum regarding Wifi connection when installing Arch Linux
A memorandum regarding γ conversion
A memorandum to change to Manjaro Linux
Install Arch Linux on DeskMini A300
Dealing with key not found error in pacstrap when installing Arch Linux
A struggle when installing pyenv on Cygwin
[Arch linux] Solution when package-query error occurs
A memorandum of trouble when formatting data
linux memorandum
Python variadic memorandum when inheriting a defined class
[Linux command] A memorandum of frequently used commands