Skip to content

Instantly share code, notes, and snippets.

@pingud98
Forked from lukicdarkoo/install.sh
Last active June 14, 2020 16:00
Show Gist options
  • Save pingud98/c98ac0522ad8e719011d295c3edf70f8 to your computer and use it in GitHub Desktop.
Save pingud98/c98ac0522ad8e719011d295c3edf70f8 to your computer and use it in GitHub Desktop.
CosmicPi configuration script
#!/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
@pingud98
Copy link
Author

changed the access point/wifi network config from the original.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment