Connecting to a wireless access point
This document describes how to set up a wireless network connection with WPA encryption.
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.)
Bring the link up so we can look for wireless networks. (An error here means you probably need extra drivers/firmware.)
Find a network to connect to. Look for the ESSID. In this example we will use the ESSID "MyNet".
Let's set the ESSID:
We need to create a shared key for wpa_supplicant.
It will wait for the password from stdin. Enter the password and enter. Now you will have a wpa.conf file with the preshared key.
Start wpa_supplicant with the generated config:
From another console, start dhcpcd:
You should get an IP address.
You then want to make the connection process automatic on boot-up. Open /etc/network/interfaces and add the following stanza:
auto wlan0 iface wlan0 inet dhcp
You will also need to set wpa_supplicant to start automatically on boot:
Next, create /etc/wpa_supplicant/ (permissions of 755 with root:root are fine), and move wpa.conf into that folder, renaming it to wpa_supplicant.conf.
Reboot and check that you are associated with the access point:
and check that you got a DHCP lease:
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.
You can't be root and must be a user of the group abuild (use groupadd)
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.