Skip to content

Instantly share code, notes, and snippets.

@tnip
Created November 1, 2014 18:44
Show Gist options
  • Save tnip/2895e1e35676eafcec43 to your computer and use it in GitHub Desktop.
Save tnip/2895e1e35676eafcec43 to your computer and use it in GitHub Desktop.
import os
import sys
if len(sys.argv) < 2:
print('Usage: python setup.py <netid>')
sys.exit(0)
netid = sys.argv[1]
os.system('sudo echo kernel.randomize_va_space = 0 > /etc/sysctl.d/01-disable-aslr.conf')
os.chdir('/home/dev/')
os.system('svn co --username {0} https://subversion.ews.illinois.edu/svn/fa14-cs461/{0}/mp5'.format(netid))
os.system('sudo chown dev:nopasswdlogin -R mp5')
os.system('chmod 755 mp5')
os.system('chmod 644 mp5/*')
os.system('reboot')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment