<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Iguananaut</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Iguananaut"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Iguananaut"/>
	<updated>2026-05-01T19:44:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Wi-Fi&amp;diff=14111</id>
		<title>Wi-Fi</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Wi-Fi&amp;diff=14111"/>
		<updated>2017-11-01T17:20:48Z</updated>

		<summary type="html">&lt;p&gt;Iguananaut: /* Broadcom Wi-Fi Chipset Users */  this should be aports now, not abuild&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This document describes how to set up a wireless network connection with WPA encryption.&lt;br /&gt;
&lt;br /&gt;
First make sure your wireless drivers are loaded properly. (if you are using a &#039;&#039;&#039;Broadcom chipset&#039;&#039;&#039;, see the [[#Broadcom_Wi-Fi_Chipset_Users|section at the bottom of this post]].)&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|wireless-tools}} and {{Pkg|wpa_supplicant}}.&lt;br /&gt;
{{Cmd|apk add wireless-tools wpa_supplicant}}&lt;br /&gt;
&lt;br /&gt;
Bring the link up so we can look for wireless networks. (An error here means you probably need extra drivers/firmware.)&lt;br /&gt;
{{Cmd|ip link set wlan0 up}}&lt;br /&gt;
&lt;br /&gt;
Find a network to connect to. Look for the ESSID. In this example we will use the ESSID &amp;quot;MyNet&amp;quot;.&lt;br /&gt;
{{Cmd|iwlist wlan0 scanning}}&lt;br /&gt;
&lt;br /&gt;
Let&#039;s set the ESSID:&lt;br /&gt;
{{Cmd|iwconfig wlan0 essid MyNet}}&lt;br /&gt;
&lt;br /&gt;
We need to create a shared key for wpa_supplicant.&lt;br /&gt;
{{Cmd|wpa_passphrase MyNet &amp;gt; wpa.conf}}&lt;br /&gt;
It will wait for the password from stdin. Enter the password and enter. Now you will have a {{Path|wpa.conf}} file with the preshared key.&lt;br /&gt;
&lt;br /&gt;
Start wpa_supplicant with the generated config:&lt;br /&gt;
{{Cmd|wpa_supplicant -Dwext -iwlan0 -c ./wpa.conf}}&lt;br /&gt;
&lt;br /&gt;
From another console, start dhcpcd:&lt;br /&gt;
{{Cmd|udhcpc -i wlan0}}&lt;br /&gt;
&lt;br /&gt;
You should get an IP address.&lt;br /&gt;
&lt;br /&gt;
You then want to make the connection process automatic on boot-up.  Open {{Path|/etc/network/interfaces}} and add the following stanza:&lt;br /&gt;
 auto wlan0&lt;br /&gt;
 iface wlan0 inet dhcp&lt;br /&gt;
{{Note|I had to append `pre-up iwconfig wlan0 essid &amp;lt;ESSID&amp;gt;` to automatically connect to the network.}}&lt;br /&gt;
&lt;br /&gt;
You will also need to set wpa_supplicant to start automatically on boot:&lt;br /&gt;
{{Cmd|rc-update add wpa_supplicant boot}}&lt;br /&gt;
&lt;br /&gt;
Next, create {{Path|/etc/wpa_supplicant/}} (permissions of 755 with root:root are fine), and move {{Path|wpa.conf}} into that folder, renaming it to {{Path|wpa_supplicant.conf}}.&lt;br /&gt;
&lt;br /&gt;
Reboot and check that you are associated with the access point:&lt;br /&gt;
{{Cmd|iwconfig wlan0}}&lt;br /&gt;
and check that you got a DHCP lease:&lt;br /&gt;
{{Cmd|ifconfig wlan0 {{!}} grep addr}}&lt;br /&gt;
&lt;br /&gt;
== Broadcom Wi-Fi Chipset Users  ==&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
You can check if you have a Broadcom chipset by using dmesg:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|dmesg {{!}} grep Broadcom}}&lt;br /&gt;
&lt;br /&gt;
First install the SDK an Git:&lt;br /&gt;
{{Cmd|apk add alpine-sdk git}}&lt;br /&gt;
&lt;br /&gt;
Then git clone aports from git.alpinelinux.org.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Cmd|git clone git://git.alpinelinux.org/aports}}&lt;br /&gt;
&lt;br /&gt;
Change your directory to &#039;&#039;&#039;aports/non-free/b43-firmware&#039;&#039;&#039;, then build it.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;You can&#039;t be root and must be a user of the group abuild (use groupadd)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{Cmd|abuild -r}}&lt;br /&gt;
&lt;br /&gt;
Install the generated packge file (it will be in ~/packages/) - make sure to pass &#039;&#039;&#039;--allow-untrusted&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add --allow-untrusted ~/packages/...pkg}}&lt;br /&gt;
&lt;br /&gt;
Now we need fwcutter, which is executed from the firmware package:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add b43-fwcutter b43-firmware}}&lt;br /&gt;
&lt;br /&gt;
Now you need to use modprobe so the device will show up:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|modprobe b43}}&lt;br /&gt;
&lt;br /&gt;
To automate this on startup add it to /etc/modules:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|echo b43 &amp;gt;&amp;gt; /etc/modules}}&lt;br /&gt;
&lt;br /&gt;
Now continue with the normal instructions. &lt;br /&gt;
&lt;br /&gt;
[[Category:Networking]]&lt;/div&gt;</summary>
		<author><name>Iguananaut</name></author>
	</entry>
</feed>