Updated Manual installation (markdown)

Bill Zimmerman 2020-03-18 23:17:09 +01:00
parent febe32b680
commit 0589119864
1 changed files with 5 additions and 5 deletions

@ -1,8 +1,8 @@
These steps apply to the latest release of Raspbian (currently [Buster](https://www.raspberrypi.org/downloads/raspbian/)). Notes for previously released versions are provided, where applicable. Start off by installing git, lighttpd, php7, hostapd and dnsmasq.
These steps apply to the latest release of Raspbian (currently [Buster](https://www.raspberrypi.org/downloads/raspbian/)). Notes for previously released versions are provided, where applicable. Start off by installing git, lighttpd, php7, hostapd, dnsmasq and some extra packages.
```sh
sudo apt-get install git lighttpd php7.1-cgi hostapd dnsmasq vnstat
sudo apt-get install git lighttpd php7.3-cgi hostapd dnsmasq vnstat qrencode
```
**Note:** for Raspbian Stretch, replace `php7.1-cgi` with `php7.0-cgi`. php5 is no longer supported. After that, enable PHP for lighttpd and restart it for the settings to take effect.
**Note:** for Raspbian Stretch, replace `php7.3-cgi` with `php7.0-cgi`. php5 is no longer supported. After that, enable PHP for lighttpd and restart it for the settings to take effect.
```sh
sudo lighttpd-enable-mod fastcgi-php
sudo service lighttpd restart
@ -43,6 +43,8 @@ www-data ALL=(ALL) NOPASSWD:/etc/raspap/hostapd/disablelog.sh
www-data ALL=(ALL) NOPASSWD:/etc/raspap/hostapd/servicestart.sh
www-data ALL=(ALL) NOPASSWD:/etc/raspap/lighttpd/configport.sh
www-data ALL=(ALL) NOPASSWD:/etc/raspap/openvpn/configauth.sh
www-data ALL=(ALL) NOPASSWD:/bin/chmod o+r /tmp/hostapd.log
www-data ALL=(ALL) NOPASSWD:/bin/chmod o+r /tmp/dnsmasq.log
```
Once those modifications are done, git clone the files to `/var/www/html`.
@ -80,8 +82,6 @@ Add the following lines to `/etc/rc.local` before `exit 0`.
echo 1 > /proc/sys/net/ipv4/ip_forward #RASPAP
iptables -t nat -A POSTROUTING -j MASQUERADE #RASPAP
iptables -t nat -A POSTROUTING -s 192.168.50.0/24 ! -d 192.168.50.0/24 -j MASQUERADE #RASPAP
chown dnsmasq:www-data /tmp/dnsmasq.log #RASPAP
chown root:www-data /tmp/hostapd.log #RASPAP
```
Force a reload of new settings in `/etc/rc.local`.
```sh