Skip to content

Instantly share code, notes, and snippets.

@fraserxu
Last active September 6, 2015 02:29
Show Gist options
  • Save fraserxu/9698e6272ba7844b9673 to your computer and use it in GitHub Desktop.
Save fraserxu/9698e6272ba7844b9673 to your computer and use it in GitHub Desktop.
# 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