Skip to content

Instantly share code, notes, and snippets.

Created September 23, 2015 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6bbc69a958023d968f00 to your computer and use it in GitHub Desktop.
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.
#!/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