Created
November 1, 2014 18:44
-
-
Save tnip/2895e1e35676eafcec43 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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