summaryrefslogtreecommitdiffstats
path: root/networking
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2017-11-22 16:06:37 -0800
committerbnewbold <bnewbold@robocracy.org>2017-11-22 16:06:37 -0800
commitf8c6b5b660ca2d098b1fb0ceb7ccad798dec92db (patch)
treebd2eed52ef8c7b135963103320c1dc8729bae96e /networking
parentf449ee5a033a76f82e34d271b68516cacb839f9a (diff)
downloadknowledge-f8c6b5b660ca2d098b1fb0ceb7ccad798dec92db.tar.gz
knowledge-f8c6b5b660ca2d098b1fb0ceb7ccad798dec92db.zip
how to connect to wifi with no gui
Diffstat (limited to 'networking')
-rw-r--r--networking/terminal_wifi.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/networking/terminal_wifi.txt b/networking/terminal_wifi.txt
new file mode 100644
index 0000000..8952222
--- /dev/null
+++ b/networking/terminal_wifi.txt
@@ -0,0 +1,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