Raspberry PI 2 B WiFi HotSpot
Updated at: 17/06/2015


In questa guida spiegheremo come creare un HotSpot utilizzando una raspberry PI 2 model B (con raspbian come OS) e una scheda wifi Edimax EW-7811UN. La guida originaria si trova qui: http://www.daveconroy.com/turn-your-raspberry-pi-into-a-wifi-hotspot-with-edimax-nano-usb-ew-7811un-rtl8188cus-chipset/
sudo apt-get install bridge-utils hostapd
La versione "ufficiale" di hostpad non funziona, quindi scarichiamone una funzionante
wget http://www.daveconroy.com/wp3/wp-content/uploads/2013/07/hostapd.zip
unzip hostapd.zip 
sudo mv /usr/sbin/hostapd /usr/sbin/hostapd.bak
sudo mv hostapd /usr/sbin/hostapd.edimax 
sudo ln -sf /usr/sbin/hostapd.edimax /usr/sbin/hostapd 
sudo chown root.root /usr/sbin/hostapd 
sudo chmod 755 /usr/sbin/hostapd
sudo nano /etc/network/interfaces
#loopback adapter auto lo iface lo inet loopback #wired adapter iface eth0 inet dhcp #bridge auto br0 iface br0 inet dhcp bridge_ports eth0 wlan0
 
sudo nano /etc/hostapd/hostapd.conf
interface=wlan0 driver=rtl871xdrv bridge=br0 ssid=DaveConroyPi channel=1 wmm_enabled=0 wpa=1 wpa_passphrase=ConroyPi wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP auth_algs=1 macaddr_acl=0
sudo reboot
sudo hostapd -dd /etc/hostapd/hostapd.conf
sudo nano /etc/default/hostapd

modificare la riga come segue:
DAEMON_CONF="/etc/hostapd/hostapd.conf"