How do we manage wireless connections without a network manager?
This excellent answer walked me through connecting to the protected wireless network at home. In short,
nano /etc/network/interfaces # enable dhcp
service networking start
nano /etc/wpa_supplicant.conf # indicate ssid and password
ifdown wlan0 # name determined by 'ip a show'
ip a flush wlan0
ifup wlan0
wpa_supplicant -Dnl80211 -c /root/wpa_supplicant.conf -iwlan0 -B
dhclient wlan0
Another answer suggests adding this to /etc/network/interfaces
:
auto wlan0
iface wlan0 inet static
address ASSIGNED_IP
netmask 255.255.255.0
gateway THE_GATEWAY
wireless-essid YOURSSID
wireless-key WIRELESSKEY_HERE
Because over time I will be encountering different networks, with different ssdi and password, I was wondering which would be the best way to approach this, without a network manager. Priorities:
- Don't disclose ssid and passwords if my laptop is compromised - those are sensitive information that people have entrusted me with.
- Don't clutter
/etc
with a ton of custom(user-created) files. - Don't use high-level utilities, like
network-manager
orwicd
.
wpa_supplicant
documentation. That's how I do it on my laptop. The goals "don't store SSID/passwords locally" and "use wpa_supplicant only" are mutually exclusive, though. If you don't want to store SSID/passwords locally, where do you want to store them? Is encrypting the harddisk of your laptop sufficient to allow local storage?