2014年12月9日 星期二

無線網路設定

  • sudo iwlist wlan0 scan | grep SSID
  • sudo apt-get install wpasupplicant
  • sudo vim /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp

#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet dhcp

wpa-conf /etc/wpa.conf
  • sudo vim /etc/wpa.conf
network={  ssid="bitch"  proto=RSN  key_mgmt=WPA-PSK  pairwise=CCMP TKIP  group=CCMP TKIP  psk="lhucinf305"}