Adding config files
This commit is contained in:
3
configs/dhcpcd.conf
Normal file
3
configs/dhcpcd.conf
Normal file
@ -0,0 +1,3 @@
|
||||
interface wlan0
|
||||
static ip_address=10.1.1.1/24
|
||||
denyinterfaces wlan0
|
||||
2
configs/dnsmasq.conf
Normal file
2
configs/dnsmasq.conf
Normal file
@ -0,0 +1,2 @@
|
||||
interface=wlan0
|
||||
dhcp-range=10.1.1.10,10.1.1.210,255.255.255.0,24h
|
||||
14
configs/hostapd.conf
Normal file
14
configs/hostapd.conf
Normal file
@ -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
|
||||
1
configs/hostapd.default.conf
Normal file
1
configs/hostapd.default.conf
Normal file
@ -0,0 +1 @@
|
||||
DAEMON_CONF="/etc/hostapd/hostapd.conf"
|
||||
27
features.md
27
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?
|
||||
21
v0xb0x-setup.sh
Normal file
21
v0xb0x-setup.sh
Normal file
@ -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
|
||||
Reference in New Issue
Block a user