Arch Linux – connect to WiFi network from terminal (i.e. for installation process)

Since the latest Arch Linux Live ISO dropped netcfg, I had to adopt wpa_supplicant to connect to my WiFi AP.

First, identify the name of your wireless interface.

# iwconfig
wlp1s0    IEEE 802.11bgn  ESSID:""
          Bit Rate=65 Mb/s   Tx-Power=16 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=61/70  Signal level=-49 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:430   Missed beacon:0
lo        no wireless extensions.

Then simply connect to the AP, wpa_supplicant and wpa_passphrase do all the work, which is nice and easy.

# wpa_supplicant -i wlp1s0 -c <(wpa_passphrase [SSID] [PASSPHRASE])

Don’t forget to provide an IP address to the network interface:

# dhcpcd wlp1s0
Advertisements
This entry was posted in Arch Linux, english and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s