Skip to content

Instantly share code, notes, and snippets.

@emo-eth
Created October 15, 2017 16:41
Show Gist options
  • Save emo-eth/534f9704aa23821fae569351a50014a9 to your computer and use it in GitHub Desktop.
Save emo-eth/534f9704aa23821fae569351a50014a9 to your computer and use it in GitHub Desktop.
Script to update & configure a Raspberry Pi for dev setup
#!/bin/sh
### update + upgrade packages first
sudo apt-get update
sudo apt-get upgrade -y
# sudo apt-get install mysql-server --fix-dependencies -y
sudo apt-get install tor git htop python3-dev screen libmysqlclient-dev libxml2-dev libxslt1-dev zlib1g-dev -y
# install miniconda 3.4.3
wget -O anaconda.sh http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-armv7l.sh
bash anaconda.sh
# install packages for miniconda
/home/pi/miniconda3/bin/conda install pip numpy scipy pandas ipython lxml -y
/home/pi/miniconda3/bin/pip install pip --upgrade
/home/pi/miniconda3/bin/pip install lazyscripts datascience mysqlclient matplotlib lxml
# rmate for remote text edit
sudo wget -O /usr/local/bin/rsub https://raw.github.com/aurora/rmate/master/rmate
sudo chmod +x /usr/local/bin/rsub
# clean up
sudo apt-get autoremove
sudo apt-get autoclean
# update pythonioencoding...
echo "export PYTHONIOENCODING=UTF-8" >> ~/.bashrc
sudo rm anaconda.sh
curl https://www.dataplicity.com/tvsyolga.py | sudo python
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment