OK, striped out the bits you don't need.
So, first I formatted the SD card with SDFormatter v4.0 on my Windows 7 laptop, using full overwrite and Format Size Adjustment ON. I then copied the image,
2016-03-18-raspbian-jessie-lite, to the SD card using Win32DiskImager 0.9.5.
I inserted the card into the Pi, connected the Pi to my network using an ethernet cable and powered on the Pi. I connected to the Pi from my laptop using SSH and started to set it up. First ran
and expanded the file system, set timezone, hostname and boot to desktop. Then rebooted.
After booting ran
Code: Select all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install rpi-update
sudo rpi-update
and rebooted.
You should now be able to check the wifi is working with command
This should show a list of wifi networks, provided of course there are any near you.
Now to configure the AP, first installing the necessary packages and files required.
Code: Select all
sudo apt-get update
sudo apt-get install bridge-utils hostapd
and now update hostapd to handle the realtek wifi
Code: Select all
wget https://dl.dropboxusercontent.com/u/80256631/hostapd
sudo mv hostapd /usr/sbin/hostapd
sudo chown root.root /usr/sbin/hostapd
sudo chmod 755 /usr/sbin/hostapd
Now set up the
/etc/network/interfaces file like
Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto br0
iface br0 inet dhcp
bridge_ports eth0 wlan0
and the
/etc/hostapd/hostapd.conf file like
Code: Select all
interface=wlan0
driver=nl80211
bridge=br0
ssid=Network-Name
channel=1
wmm_enabled=0
wpa=1
wpa_passphrase=Network-Password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0
substituting the network name and password you want to use.
The set up should now be ready to test so first reboot your Pi.
After logging in run command
Code: Select all
sudo hostapd -dd /etc/hostapd/hostapd.conf
to start the AP. I tested my AP by connecting my Windows laptop to the AP.
Once you determine the AP is working edit file
/etc/default/hostapd to get the AP to automatically start when the Pi boots. In file
/etc/default/hostapd uncomment line
and change it to
Code: Select all
DAEMON_CONF="/etc/hostapd/hostapd.conf"
After rebooting the AP should automatically start.
MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra
Please post ALL technical questions on the forum. Please Do Not send private messages.