Created
July 18, 2017 22:00
-
-
Save LuisHCK/02fc5e441dd4cda9951171286542dbb3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if its connected to internet but cannot ssh and ping it, add this additional line on
/etc/network/interfaces