Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wimmatthijs/980ab7d67f5109d27738f0b78994f2f9 to your computer and use it in GitHub Desktop.
Save wimmatthijs/980ab7d67f5109d27738f0b78994f2f9 to your computer and use it in GitHub Desktop.
sudo cp /etc/network/interfaces /etc/network/interfacesoriginal
sudo rm /etc/network/interfaces
sudo nano /etc/network/interfaces
----------------------------------
COPY
----------------------------------
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
---------------------------------
Ctrl + O
Enter
Ctrl + X
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
----------------------------------
COPY
----------------------------------
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="SECURE-WIFI"
psk="yourpassword"
}
network={
ssid="OPEN-WIFI"
key_mgmt=NONE
}
----------------------------------
Change based on your WiFi Settings
Ctrl + O
Enter
Ctrl + X
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment