This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server.modules = ( | |
"mod_indexfile", | |
"mod_access", | |
"mod_alias", | |
"mod_redirect", | |
) | |
server.document-root = "/var/www/html" | |
server.upload-dirs = ( "/var/cache/lighttpd/uploads" ) | |
server.errorlog = "/var/log/lighttpd/error.log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# RaspAP installation functions | |
# Author: @billz <billzimmerman@gmail.com> | |
# Author URI: https://github.com/billz/ | |
# License: GNU General Public License v3.0 | |
# License URI: https://github.com/raspap/raspap-webgui/blob/master/LICENSE | |
# You are not obligated to bundle the LICENSE file with your RaspAP projects as long | |
# as you leave these references intact in the header comments of your source files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$ssid = "my_ssid"; | |
$network['passphrase'] = "my_passphrase"; | |
$wpa_file = fopen('/tmp/wifidata', 'w'); | |
if (strlen($network['passphrase']) >=8 && strlen($network['passphrase']) <= 63) { | |
unset($wpa_passphrase); | |
unset($line); | |
exec('wpa_passphrase '. ssid2utf8( escapeshellarg($ssid) ) . ' ' . escapeshellarg($network['passphrase']), $wpa_passphrase); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author URI: https://github.com/billz/ | |
# Use /dev/random to generate a strong random passphrase. | |
# If pronounceable, but less secure, passphrases are desired, install gpw (sudo apt install gpw) | |
# and replace it with: gpw 1 24 | |
readonly HOSTAPD="/etc/hostapd/hostapd.conf" | |
readonly PASSPHRASE=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 32 ; echo '') | |
echo "Your new passphrase is: ${PASSPHRASE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE_URL="https://raw.githubusercontent.com/billz/raspap-webgui/master/" | |
wget -q ${UPDATE_URL}/installers/common.sh -O /tmp/raspapcommon.sh | |
source /tmp/raspapcommon.sh | |
function update_system_packages() { | |
install_log "Updating sources" | |
sudo apt-get update || install_error "Unable to update package list" | |
} | |
function install_dependencies() { |