Connecting to a wireless access point
This document describes how to set up a wireless network connection with WPA encryption.
Install necessary drivers and software
First make sure your wireless drivers are loaded properly. (if you are using a Broadcom chipset, see the section at the bottom of this post.)
Installand , which are probably available to be installed in the base setup.
List your available network interfaces. If you don't see any wireless interfaces (e.g. wlan0), you probably need to load and/or install extra drivers/firmware.
Bring the desired interface up.
Use the interface to scan for wireless access points. Make sure the ESSID you want to connect to appears here.
Associate the interface with desired ESSID.
Sanity check: the interface should be configured with ESSID:"ExampleWifi".
Create a wpa_supplicant configuration stanza for the wireless access point.
(Access point not broadcasting its SSID requires additional line
scan_ssid=1 in the file
Start wpa_supplicant in the foreground to make sure the connection succeeds.
If all is well, run it as a daemon in the background by setting the -B option.
Configure the interface with an IP address.
Sanity check: the interface should have an inet address.
Automatic Configuration on System Boot
Add a stanza for the desired interface (e.g. wlan0) to /etc/network/interfaces:
auto wlan0 iface wlan0 inet dhcp
Make sure /etc/wpa_supplicant/wpa_supplicant.conf is the correct configuration for the wireless access point you want to connect to.
Bring the interface down.
Manually start wpa_supplicant.
If all is well (confirm with the sanity checks in Manual Configuration), configure wpa_supplicant to start automatically on boot.
Launching udhcpc through wpa_cli actions
With the above configuration, udhcpc will only run once at boot. If the Wifi isn't available then, or the network changes in between, it needs to be notified. This is done through the wpa_cli action script in /etc/wpa_supplicant/wpa_cli.sh
Broadcom Wi-Fi Chipset Users
The Broadcom chipset is quite popular among older computers. You will need to compile the firmware manually for this chipset as it is not included.
You can check if you have a Broadcom chipset by using dmesg:
First install the SDK an Git:
Then git clone aports from git.alpinelinux.org.
Change your directory to aports/non-free/b43-firmware, then build it.
Install the generated packge file (it will be in ~/packages/) - make sure to pass --allow-untrusted
Now we need fwcutter, which is executed from the firmware package:
Now you need to use modprobe so the device will show up:
To automate this on startup add it to /etc/modules:
Now continue with the normal instructions.