Last active
September 6, 2015 02:29
-
-
Save fraserxu/9698e6272ba7844b9673 to your computer and use it in GitHub Desktop.
This file contains 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
# to get the internal ip | |
ifconfig | |
# to edit the config | |
sudo vim /etc/network/interfaces | |
auto lo | |
iface lo inet loopback | |
auto eth0 | |
allow-hotplug eth0 | |
iface eth0 inet manual | |
auto wlan0 | |
allow-hotplug wlan0 | |
iface wlan0 inet static | |
address 10.10.80.62 | |
netmask 255.255.255.0 | |
broadcast 10.10.80.255 | |
gaetway 192.168.0.1 | |
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf | |
auto wlan1 | |
allow-hotplug wlan1 | |
iface wlan1 inet manual | |
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf | |
# wifi settings | |
# /etc/wpa_supplicant/wpa_supplicant.conf | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="WIFI" | |
psk="WIFI" | |
key_mgmt=WPA-PSK | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment