install and setup scripts
This commit is contained in:
@@ -3,7 +3,18 @@ apt -y update
|
|||||||
apt -y full-upgrade
|
apt -y full-upgrade
|
||||||
apt install -y python3 python3-pip lighttpd dnsmasq hostapd libatlas-base-dev
|
apt install -y python3 python3-pip lighttpd dnsmasq hostapd libatlas-base-dev
|
||||||
pip3 install numpy pandas flask smbus2 pyserial
|
pip3 install numpy pandas flask smbus2 pyserial
|
||||||
|
|
||||||
cp -R hostapd/ /etc
|
cp -R hostapd/ /etc
|
||||||
cp -R lighttpd/ /etc
|
cp -R lighttpd/ /etc
|
||||||
cp dnsmasq.conf /etc
|
cp dnsmasq.conf /etc
|
||||||
|
cp rc.local /etc
|
||||||
cp -R ../frontend /var/www/html
|
cp -R ../frontend /var/www/html
|
||||||
|
cd /etc/lighttpd
|
||||||
|
chmod +x edit_ssid.sh
|
||||||
|
./edit_ssid
|
||||||
|
|
||||||
|
mkdir -p /usr/local/lib/TeraHz
|
||||||
|
cp -R ../backend/* /usr/local/lib/terahz
|
||||||
|
|
||||||
|
systemctl unmask dnsmasq hostapd lighttpd
|
||||||
|
systemctl enable dnsmasq hostapd lighttpd
|
||||||
|
|||||||
+2
-7
@@ -10,10 +10,5 @@
|
|||||||
# bits.
|
# bits.
|
||||||
#
|
#
|
||||||
# By default this script does nothing.
|
# By default this script does nothing.
|
||||||
|
/usr/local/lib/terahz/run.sh &
|
||||||
# Print the IP address
|
disown
|
||||||
|
|
||||||
cd /home/pi/TeraHz/backend
|
|
||||||
service lighttpd start
|
|
||||||
flask run -h 0.0.0.0 &
|
|
||||||
exit 0
|
|
||||||
|
|||||||
Reference in New Issue
Block a user