Wi-Fi for Raspbian: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Check if Raspbian can see the USB device.
By default the interface will use DHCP to get an IP addressIf you wish to assign a static IP address to wlan0 refer to [[Static IP Address for Raspbian | Static_IP_Address_for_Raspbian]]
  <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.
Here is a reference for my configuration<br>
 
Run the following commands
<pre>
<pre>
wpa_cli
vi /etc/wpa_supplicant/wpa_supplicant.conf
</pre>
</pre>
from within this cli use the following commands


To view the current SSID's within range
<pre>
<pre>
scan
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
</pre>
update_config=1
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]]
#tls_disable_tlsv1_0=1
#tls_disable_tlsv1_1=1


Here is a reference for my configuration<br>
openssl_ciphers=DEFAULT@SECLEVEL=2
/etc/wpa_supplicant/'''wpa_supplicant.conf'''
country=AU
<pre>
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1


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


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

Latest revision as of 07:39, 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

vi /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