diff --git a/configs/dhcpcd.conf b/configs/dhcpcd.conf new file mode 100644 index 0000000..1864d8b --- /dev/null +++ b/configs/dhcpcd.conf @@ -0,0 +1,3 @@ +interface wlan0 +static ip_address=10.1.1.1/24 +denyinterfaces wlan0 \ No newline at end of file diff --git a/configs/dnsmasq.conf b/configs/dnsmasq.conf new file mode 100644 index 0000000..fd70cec --- /dev/null +++ b/configs/dnsmasq.conf @@ -0,0 +1,2 @@ +interface=wlan0 + dhcp-range=10.1.1.10,10.1.1.210,255.255.255.0,24h \ No newline at end of file diff --git a/configs/hostapd.conf b/configs/hostapd.conf new file mode 100644 index 0000000..ff120f3 --- /dev/null +++ b/configs/hostapd.conf @@ -0,0 +1,14 @@ +interface=wlan0 +bridge=br0 +hw_mode=g +channel=7 +wmm_enabled=0 +macaddr_acl=0 +auth_algs=1 +ignore_broadcast_ssid=0 +wpa=2 +wpa_key_mgmt=WPA-PSK +wpa_pairwise=TKIP +rsn_pairwise=CCMP +ssid=v0xb0x +wpa_passphrase=PASSWORD \ No newline at end of file diff --git a/configs/hostapd.default.conf b/configs/hostapd.default.conf new file mode 100644 index 0000000..d8996a4 --- /dev/null +++ b/configs/hostapd.default.conf @@ -0,0 +1 @@ +DAEMON_CONF="/etc/hostapd/hostapd.conf" \ No newline at end of file diff --git a/features.md b/features.md index 68bebbd..aa78686 100644 --- a/features.md +++ b/features.md @@ -1,6 +1,14 @@ # Features and plans This is just where I jot down things I want the system to have. +Not here in any special order, just ideas and thoughts on the system. + +# Hardware + +* This should all run on a Raspberry Pi Zero W. + * 1GHz 32bit CPU + * 512MB RAM + * 16GB "disk" (microSD card) # The list @@ -9,10 +17,27 @@ This is just where I jot down things I want the system to have. * Link for info on MESH: https://github.com/binnes/WiFiMeshRaspberryPi * WiFi AP mode + * Software: hostapd & dnsmasq * Enable AP mode with WPA2-PSK for encrypted communication - * Enable AP mode without encryption for open connections + * Enable AP mode without encryption for open connections ? * HTTP Server * PHP must be running * run server in HTTPS mode * Offer blind drop-uploads (what max size?) + +# Plans + +* What do we need at first? + +* OS side + * Start machine, put WiFi into AP mode + * Have a DHCPD to supply IPs to clients + * Have a DNS to route everything to the local website? + +* Web side + * Offer up a simple PHP website to upload data + * Should I offer FTP for large files? + * MAX filesize on the MicroSD cards is 4GB (FAT32 limit) + * Make another partition on the card with ext3/4 ? + * Offer a simple message board? \ No newline at end of file diff --git a/v0xb0x-setup.sh b/v0xb0x-setup.sh new file mode 100644 index 0000000..5ad143b --- /dev/null +++ b/v0xb0x-setup.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +# Update the system first +apt-get update +apt-get dist-upgrade -y +apt-get install -y hostapd dnsmasq +systemctl stop hostapd +systemctl stop dnsmasq + +# Modify /etc/dhcpcd.conf +cat ./configs/dhcpcd.conf >> /etc/dhcpcd.conf + +# Make new /etc/dnsmasq.conf +mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig +cat ./configs/dnsmasq.conf >> /etc/dnsmasq.conf + +# Create a new hostadp.conf +cat ./configs/hostapd.conf > /etc/hostapd/hostapd.conf + +# Add our config to the default hostapd.conf +cat ./configs/hostapd.default.conf >> /etc/default/hostapd.conf \ No newline at end of file