Linux/Wifi: Difference between revisions

From Wiki
No edit summary
Line 65: Line 65:
     psk="xxxPASSWORDxxx"
     psk="xxxPASSWORDxxx"
}
}
</pre>
</blockquote>
* bring interface up
<blockquote>
<pre>
ifconfig wlan0 up
</pre>
</blockquote>
* connect to WPA wifi
<blockquote>
<pre>
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -D wext
</pre>
</pre>
</blockquote>
</blockquote>

Revision as of 17:11, 12 February 2018

Get infos

  • list network hardware
lshw -class network
  • show all network devices
ifconfig -a
  • get wifi information
iwconfig
  • bring interface up
ifconfig wlan0 up
  • scan for wifi networks
iwlist wlan0 scan | grep ESSID


configuration

  • get country information
iw reg get
  • set country information
iw reg set DE
  • install WPA support
sudo apt install wpasupplicant
  • /etc/wpa_supplicant/wpa_supplicant.conf
network={
    ssid="xxxSSIDxxx"
    psk="xxxPASSWORDxxx"
}
  • bring interface up
ifconfig wlan0 up
  • connect to WPA wifi
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -D wext



ex

Troubleshooting

  • airplane mode?
rfkill list all