Game Development Reference
In-Depth Information
The allow-hotplug command will do as the name suggests; it allows you to plug in
and out wireless adapters assigned to the wlan0 interface. Auto wlan0 tells Raspbian
to configure the interface automatically based on the settings you provide.
We need to replace the SSID and password with the details of your router, keeping
the text enclosed with quotation marks. This is the most basic configuration that
can be used.
There is one problem with this configuration though; if the wireless network is
disconnected, the interface will not be brought back automatically. There are many
scripts that try to solve this problem. The configuration requires that you know extra
details about the wireless configuration. The next section offers a fully automatic
way of doing this though. We will use the wpa supplicant that is now installed by
default with wheezy. In /etc/network/interfaces , we change the last lines to
the following:
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
We need to go to the /etc/wpa_supplicant directory, create the file, and edit
wpa_supplicant.conf .
sudo touch wpa_supplication.conf
nano wpa_supplication.conf
In nano, the simple text editor we need to type in the following:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="ssid"
proto=WPA RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="password"
}
The configuration file contains extra details about the connection. The way
supplicant works is that it will try to connect using the defined parameters for
proto , pairwise , and group . You might have to adjust key_mgnt , but WPA-PSK
is the most common configuration for modern wireless routers.
 
Search WWH ::




Custom Search