[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:hardware:arm:raspberrypi3_wap [2018/08/26 21:00 (UTC)] – [Bridge Configuration] bifferos | howtos:hardware:arm:raspberrypi3_wap [2018/08/28 20:08 (UTC)] (current) – [Introduction] bifferos | ||
---|---|---|---|
Line 5: | Line 5: | ||
This HOWTO shows you how to replace the WiFi element of your home network setup with a Raspberry Pi running Slackware. | This HOWTO shows you how to replace the WiFi element of your home network setup with a Raspberry Pi running Slackware. | ||
+ | Although I've originally written this HOWTO for a RPi 3, I've since tried it on an RPi2 and it works just as well. Interface wlan1 will obviously change to wlan0 because the Pi2 has no on-board WiFi however. | ||
===== Hardware Requirements ===== | ===== Hardware Requirements ===== | ||
* A Raspberry Pi 3 running Slackware 14.2 | * A Raspberry Pi 3 running Slackware 14.2 | ||
- | * A powered USB hub with 2A Power supply (to ensure the Wifi Dongle | + | * A powered USB hub with 2A Power supply (to ensure the Wifi adapter |
* Alfa Network AWUS036NHA - USB WiFi Adapter with chipset ar9271l | * Alfa Network AWUS036NHA - USB WiFi Adapter with chipset ar9271l | ||
* Ethernet cable | * Ethernet cable | ||
Line 44: | Line 45: | ||
===== Adapter detection ===== | ===== Adapter detection ===== | ||
+ | |||
+ | < | ||
+ | I advise to not connect and disconnect the hub from the Pi while it's running. | ||
+ | </ | ||
Ensure that iwconfig shows two adapters wlan0 and wlan1. | Ensure that iwconfig shows two adapters wlan0 and wlan1. | ||
Line 113: | Line 118: | ||
auth_algs=1</ | auth_algs=1</ | ||
- | What this does: The interface wlan1, we've seen before. | + | What this does: The interface wlan1, we've seen before. |
That minimal config should get hostapd working fine, at least it did for me. | That minimal config should get hostapd working fine, at least it did for me. | ||
Line 127: | Line 132: | ||
< | < | ||
+ | ===== QR Codes ===== | ||
+ | |||
+ | {{ howtos: | ||
+ | |||
+ | No home WiFi network setup is complete without a QR code that you can wave at all your mates when they are round your house wanting to connect. | ||
+ | |||
+ | Type the following to create a PNG file with the code, which you can print, copy to your mobile, put on a local webpage or whatever. | ||
+ | |||
+ | < | ||
+ | |||
+ | The above assumes WPA2, MYSSID should be replaced with your SSID, MYPASSWD replaced with your password. | ||
+ | |||
+ | At a pinch, the following bash script should pull your SSID and passphrase out of the hostapd.conf file, and automatically use them to create a new QR code, so you can quickly keep it up to date after any changes. | ||
+ | |||
+ | < | ||
+ | |||
+ | SSID=$(cat / | ||
+ | PASS=$(cat / | ||
+ | |||
+ | qrencode -t PNG -o hostapd.png " | ||
+ | |||
+ | |||
===== Conclusion ===== | ===== Conclusion ===== | ||