Created
September 23, 2015 02:44
-
-
Save anonymous/6bbc69a958023d968f00 to your computer and use it in GitHub Desktop.
Python-based Install script for configuring Raspian, OpenAPS, and the "closed loop" and more.
This file contains 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
#!/usr/bin/python | |
import os | |
if os.geteuid() != 0: | |
exit("You need to run the deploy script with root privileges or sudo.") | |
### General Upgrades and Package Installs ### | |
os.system('apt-get update') | |
os.system('apt-get -y upgrade') | |
os.system('apt-get -y install rpi-update') | |
os.system('apt-get -y dist-upgrade') | |
os.system('apt-get -y install python-dev') | |
os.system('apt-get -y install python-pip') | |
### Backup Original /etc/network/interfaces file to interfaces.orig ### | |
os.system('cp /etc/network/interfaces /etc/network/interfaces.orig') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment