Raspberry Pi - PirateBox with Realtek R8188EU
Here is a small script I made to setup PirateBox with a Realtek R8188EU wifi dongle on a Raspberry Pi. It consists of basically removing the hostapd binaries that come by default with PirateBox, compiling Realtek's own version of hostapd (taken from jenssegers github repo) , moving the new binaries to /usr/bin and changing the hostapd.conf file with the proper driver.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Removing hostapd binaries..." | |
sudo rm /usr/bin/hostapd* | |
echo "Downloading jenssegers hostapd for R8188EU.." | |
wget https://github.com/jenssegers/RTL8188-hostapd/archive/v2.0.tar.gz | |
echo "Extracting files..." | |
tar -zxvf v2.0.tar.gz | |
echo "Changing directory to RTL8188-hostapd-2.0/hostapd..." | |
cd RTL8188-hostapd-2.0/hostapd | |
echo "Compiling..." | |
sudo make | |
echo "Moving binaries to /usr/bin..." | |
sudo mv hostapd /usr/bin | |
sudo mv hostapd_cli /usr/bin | |
echo "Replacing hostapd.conf..." | |
sudo mv /opt/piratebox/conf/hostapd.conf /opt/piratebox/conf/hostapd.conf.bck | |
sudo mv rpix_hostapd.conf /opt/piratebox/conf/hostapd.conf | |
echo "Restarting piratebox service..." | |
sudo systemctl restart piratebox.service | |
echo "Done." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Basic configuration | |
interface=wlan0 | |
ssid=PirateBox | |
channel=1 | |
#bridge=br0 | |
# WPA and WPA2 configuration | |
macaddr_acl=0 | |
auth_algs=1 | |
ignore_broadcast_ssid=0 | |
#wpa=3 | |
#wpa_passphrase=1234 | |
#wpa_key_mgmt=WPA-PSK | |
#wpa_pairwise=TKIP | |
rsn_pairwise=CCMP | |
# Hardware configuration | |
driver=rtl871xdrv | |
ieee80211n=1 | |
hw_mode=g | |
device_name=RTL8192CU | |
manufacturer=Realtek |
Comments
Post a Comment