Reshaping a bit

This commit is contained in:
Axel Rafn
2020-12-27 15:37:01 +00:00
parent 082094ad08
commit 2e3150021d
3 changed files with 21 additions and 25 deletions

View File

@ -15,31 +15,17 @@ Not here in any special order, just ideas and thoughts on the system.
# The list # The list
# TODO # TODO
* DNS
* Change * to 10.1.1.1 so the webserver can handle all requests.
* dnsmasq should do the trick
* HTTP Server * HTTP Server
* PHP must be running * PHP must be running
* run server in HTTPS mode * Create script that creates a user for you for FTP
* Small dropoff script for files less than 128/256MB ?
* Create script that creates a user for you for BB and FTP
* FTP Server * FTP Server
* pure-ftpd? * pure-ftpd?
* Virtual users created via webscript, unique dirs only accessable by them. * Virtual users created via webscript, unique dirs only accessable by them.
* Bulletin board (Message Board) # FUTURE
* PHPBB?
* Will we need to clean it between boots?
* Keep data between boots?
* Offer "wiper" to wipe installation and clean install it again?
* Dropoff data
* Custom made.
* No name, just file upload.
* MESH mode ? * MESH mode ?
* Perhaps a fork off this project?
* Offer to put device in MESH mode for 1st responder type scenarios * Offer to put device in MESH mode for 1st responder type scenarios
* Link for info on MESH: https://github.com/binnes/WiFiMeshRaspberryPi * Link for info on MESH: https://github.com/binnes/WiFiMeshRaspberryPi
@ -48,18 +34,15 @@ Not here in any special order, just ideas and thoughts on the system.
* Software: hostapd & dnsmasq * Software: hostapd & dnsmasq
* Enable AP mode with WPA2-PSK for encrypted communication * Enable AP mode with WPA2-PSK for encrypted communication
# Plans # PLANS
* What do we need at first? * What do we need at first?
* OS side * OS side
* Start machine, put WiFi into AP mode X * Start machine, put WiFi into AP mode X
* Have a DHCPD to supply IPs to clients X * Have a DHCPD to supply IPs to clients X
* Have a DNS to route everything to the local website? * Have a DNS to route everything to the local website?
* Offer FTP for large files?
* 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) * MAX filesize on the MicroSD cards is 4GB (FAT32 limit)
* Make another partition on the card with ext3/4 ? * Make another partition on the card with ext3/4 ?
* Offer a simple message board? * Web side
* Offer up a simple PHP website to create a FTP user and password

3
http/index.php Normal file
View File

@ -0,0 +1,3 @@
<?php
?>

View File

@ -1,13 +1,23 @@
#!/bin/sh #!/bin/sh
# Update the system first # Update the system first
echo "We are about to set up a v0xb0x on your Raspberry Pi\n"
echo "First we need to upgrade the system to the current Raspbian and install core services for this to work.\n"
echo "If you encounter any issues, please let the developers of v0xb0x know on github.com.\n"
echo "\n"
read -n1 -s -r -p $'Press any key to continue...\n' key
clear
apt-get update apt-get update
apt-get dist-upgrade -y apt-get dist-upgrade -y
apt-get install -y hostapd dnsmasq apt-get install -y hostapd dnsmasq
apt-get install -y apache2 php libapache2-mod-php apt-get install -y apache2 php libapache2-mod-php
apt-get install -y mariadb-server-10.0 apt-get install -y mariadb-server-10.0
apt-get install -y gpm
# lock down MySQL # lock down MySQL
echo "We are now going to secure the MySQL installation, please go through the following questions and answer accordingly.\nContinuing in 15 seconds. "
sleep 15
mysql_secure_installation mysql_secure_installation
# Enable mod-rewrite for Apach2 # Enable mod-rewrite for Apach2