-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfigure
More file actions
24 lines (18 loc) · 800 Bytes
/
configure
File metadata and controls
24 lines (18 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Usage: curl http://cosmicpi.org/configure | sh
echo "In case of any issues please consult cosmicpi.org for help, or contact us via Facebook "
echo "--- Expand the file system ---"
sudo resize2fs /dev/mmcblk0p2
echo "--- Update OS ---"
sudo apt -y update
sudo apt -y upgrade
sudo apt -y install git python-setuptools python-pip
#sudo apt -y install python3-pip git
echo "--- Install CosmicPi software ---"
#sudo pip3 install cosmicpi -U
sudo pip install flask_cors
git clone --depth 1 -b rest https://github.com/CosmicPi/cosmicpi-rpi_V1.5.git /tmp/cosmicpi
(cd /tmp/cosmicpi/; sudo python setup.py install)
echo "--- Configure AP mode ---"
curl https://raw.githubusercontent.com/lukicdarkoo/rpi-wifi/master/configure | bash -s -- -a CosmicPi cosmicpi --ip 192.168.12.1
sudo reboot