-
-
Save pingud98/c98ac0522ad8e719011d295c3edf70f8 to your computer and use it in GitHub Desktop.
CosmicPi configuration script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: curl https://gist.githubusercontent.com/lukicdarkoo/e33e00c6780ad0215d3932b810a10e46/raw | 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) | |
sudo pip install cosmicpi | |
echo "--- Configure AP mode ---" | |
curl https://gist.githubusercontent.com/lukicdarkoo/6b92d182d37d0a10400060d8344f86e4/raw | sh -a CosmicPi cosmicpi -c CosmicPiTest | |
# Previous version is available at: https://pastebin.com/00BXKBA2 | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
changed the access point/wifi network config from the original.