Install hostapd and lighttpd (high performance hosting)
$ sudo apt-get install hostapd lighttpd
Edit interfaces to load your wlan interface on boot
# Add the following (and consider making a backup of interfaces):
allow-hotplug wlan1
iface wlan1 inet static
address 172.24.1.1
netmask 255.255.255.0
[...]
$ cat /etc/network/interfaces
[...]
auto wlan1
iface wlan1 inet static
address 10.0.0.1
netmask 255.255.255.0
Declare DAEMON_CONF in /etc/default/hostapd
$ cat /etc/default/hostapd
[...]
# Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration
# file and hostapd will be started during system boot. An example configuration
# file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz
#
DAEMON_CONF="/etc/hostapd/hostapd.conf"
[...]
Edit /etc/hostapd/hostapd.conf to your preference. Mine is included as an example below
$ vim /etc/hostapd/hostapd.conf
Setup dnsmasq so that the RPi can assign IP addresses to connected clients
$ sudo apt-get install dnsmasq
# Barebones dnsmasq config
$ vim /etc/dnsmasq.conf
Start hostapd and dnsmasq to confirm you can connect to the network and get assigned an IP address
$ sudo service start hostapd
$ sudo service restart dnsmasq