Skip to content

Instantly share code, notes, and snippets.

@LuisHCK
Created July 18, 2017 22:00
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 12 You must be signed in to fork a gist
  • Save LuisHCK/02fc5e441dd4cda9951171286542dbb3 to your computer and use it in GitHub Desktop.
Save LuisHCK/02fc5e441dd4cda9951171286542dbb3 to your computer and use it in GitHub Desktop.
sudo cp /etc/network/interfaces /etc/network/interfacesoriginal
sudp 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
@ha-yi
Copy link

ha-yi commented Feb 3, 2019

if its connected to internet but cannot ssh and ping it, add this additional line on /etc/network/interfaces

wireless-power off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment