Last active
August 29, 2015 14:06
-
-
Save John-Lin/81dd1737393c399ac089 to your computer and use it in GitHub Desktop.
Raspberry Pi /etc/network/interfaces
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
| root@kali:~# vim /etc/network/interfaces | |
| auto lo | |
| iface lo inet loopback | |
| # For eth0 dhcp | |
| # auto eth0 | |
| # iface eth0 inet dhcp | |
| # For eth0 static IP | |
| auto eth0 | |
| iface eth0 inet static | |
| address 140.114.71.176 | |
| netmask 255.255.255.0 | |
| gateway 140.114.71.254 | |
| # For wlan0 dhcp | |
| allow-hotplug wlan0 | |
| iface wlan0 inet dhcp | |
| wpa-ssid SSID | |
| wpa-psk password | |
| # sudo /etc/init.d/networking restart | |
| # allow-hotplug wlan0 this setting need to reboot | |
| # How do I disable wifi adapter suspend mode? | |
| # cat /sys/module/8192cu/parameters/rtw_power_mgnt | |
| # A value of 0 means disabled, 1 means min. power management, 2 means max. power management. | |
| # sudo vim /etc/modprobe.d/8192cu.conf | |
| # add the following: | |
| # Disable power management | |
| # options 8192cu rtw_power_mgnt=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment