2018-05-20 12:27:30 +00:00
|
|
|
#!/bin/bash
|
2018-05-20 12:28:56 +00:00
|
|
|
# Usage: curl https://gist.githubusercontent.com/lukicdarkoo/e33e00c6780ad0215d3932b810a10e46/raw | sh
|
2018-05-20 12:27:30 +00:00
|
|
|
|
|
|
|
|
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
|
2018-05-21 20:09:31 +00:00
|
|
|
sudo apt -y install git python-setuptools python-pip
|
2018-05-21 16:52:22 +00:00
|
|
|
#sudo apt -y install python3-pip git
|
2018-05-20 12:27:30 +00:00
|
|
|
|
2018-05-21 13:36:43 +00:00
|
|
|
echo "--- Install CosmicPi software ---"
|
2018-05-21 16:52:22 +00:00
|
|
|
#sudo pip3 install cosmicpi -U
|
2018-05-21 20:20:01 +00:00
|
|
|
sudo pip install flask_cors
|
2020-06-14 16:00:10 +00:00
|
|
|
#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)
|
|
|
|
|
sudo pip install cosmicpi
|
2018-05-20 12:27:30 +00:00
|
|
|
|
2018-05-21 10:27:39 +00:00
|
|
|
echo "--- Configure AP mode ---"
|
2020-06-14 15:53:05 +00:00
|
|
|
curl https://gist.githubusercontent.com/lukicdarkoo/6b92d182d37d0a10400060d8344f86e4/raw | sh -a CosmicPi cosmicpi -c CosmicPiTest
|
2018-05-21 11:38:56 +00:00
|
|
|
# Previous version is available at: https://pastebin.com/00BXKBA2
|
2018-05-20 16:30:53 +00:00
|
|
|
|
2018-05-20 17:05:34 +00:00
|
|
|
sudo reboot
|