Wi-Fi for Raspbian: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
Check if Raspbian can see the USB device.
<pre>
lsusb
</pre>
the result should be something like
<pre>
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 006: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 007: ID 4971:1020 SimpleTech
</pre>
You can see my Wi-Fi device as device number 004.
Run the following commands
<pre>
wpa_cli
</pre>
from within this cli use the following commands
To view the current SSID's within range
<pre>
scan
</pre>
wait about 15 seconds for the scan to complete
<pre>
scan results
</pre>
Configure the required SSID
<pre>
add network
set_network 0 ssid "ssid-name"
set_network 0 psk "psk-password"
enable_network 0
save_config
quit
</pre>
Check for configuration
<pre>
iwconfig
</pre>
By default the interface will use DHCP to get an IP address.  If you wish to assign a static IP address to wlan0 refer to [[Static IP Address for Raspbian | Static_IP_Address_for_Raspbian]]
By default the interface will use DHCP to get an IP address.  If you wish to assign a static IP address to wlan0 refer to [[Static IP Address for Raspbian | Static_IP_Address_for_Raspbian]]


Line 53: Line 6:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
update_config=1
#tls_disable_tlsv1_0=1
#tls_disable_tlsv1_1=1
openssl_ciphers=DEFAULT@SECLEVEL=2
country=AU


network={
network={
Line 58: Line 17:
         psk="psk-password"
         psk="psk-password"
}
}
</pre>
Check for configuration
<pre>
iwconfig
</pre>
</pre>


[[Category : Linux]]  [[Category : Raspbian]]
[[Category : Linux]]  [[Category : Raspbian]]

Revision as of 07:30, 26 March 2019

By default the interface will use DHCP to get an IP address. If you wish to assign a static IP address to wlan0 refer to Static_IP_Address_for_Raspbian

Here is a reference for my configuration
/etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

#tls_disable_tlsv1_0=1
#tls_disable_tlsv1_1=1

openssl_ciphers=DEFAULT@SECLEVEL=2
country=AU

network={
        ssid="ssid-name"
        psk="psk-password"
}


Check for configuration

iwconfig