summaryrefslogtreecommitdiffstats
path: root/networking/terminal_wifi.txt
blob: 8952222f5d4bfc2105fab774819cc8847e4315db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Basic Linux WiFi/WPA2 configuration

These are helpful if you don't have network-manager or whatever installed, eg
if you are on a headless computer with no wired ethernet.

Basics with `iw` and `ip`. These tools can't do WPA2 on their own:

    iw dev
    ip link set wlp3s0 up
    iw wlp3s0 link
    iw wlp3s0 scan
    iw wlp3s0 scan | grep WSSID


Do WPA2 setup and DHCP:

    wpa_passphrase W.A.S.T.E. > /etc/wpa_supplicant/wpa_supplicant-bootsrap.conf
    # enter password

    wpa_supplicant -D wext -i wlp3s0 -c /etc/wpa_supplicant/wpa_supplicant-bootsrap.conf
    # leave running in a terminal

    dhclient wlp3s0