Skip to content

Instantly share code, notes, and snippets.

@d3vCr0w
Last active January 4, 2018 01:48
Show Gist options
  • Save d3vCr0w/d101ca2075dc4e1f4a954bf4889cee1a to your computer and use it in GitHub Desktop.
Save d3vCr0w/d101ca2075dc4e1f4a954bf4889cee1a to your computer and use it in GitHub Desktop.
Raspberry Pi - PirateBox with Realtek R8188EU
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."
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment