Last active
December 17, 2015 18:39
-
-
Save bortels/5654855 to your computer and use it in GitHub Desktop.
Set up virtualenv on AMI6 RHEL for mitmproxy
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
# AWS AMI6 base setup for dev | |
cd | |
sudo yum -y update | |
# Prereqa for ruby/python | |
sudo yum -y groupinstall "Development Tools" | |
sudo yum -y install libxml2-devel zlib-devel openssl-devel libxslt libxslt-devel | |
sudo yum -y install readline-devel gdbm-devel bzip2-devel ncurses-devel sqlite-devel tk-devel | |
# mitmproxy requires Python 2.7+, but AMI6 only has 2.6.6, yay. | |
yum -y install wget | |
wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tar.bz2 | |
tar xf Python-2.7.5.tar.bz2 | |
cd Python-2.7.5 | |
./configure --prefix=/usr/local | |
make && sudo make altinstall | |
cd | |
wget http://pypi.python.org/packages/source/d/distribute/distribute-0.6.43.tar.gz | |
tar xf distribute-0.6.43.tar.gz | |
cd distribute-0.6.43 | |
sudo /usr/local/bin/python2.7 setup.py install | |
sudo /usr/local/bin/easy_install-2.7 virtualenv | |
/usr/local/bin/virtualenv-2.7 --distribute mitmproxy | |
source mitmproxy/bin/activate | |
pip install mitmproxy | |
cd | |
sudo rm -rf Python-2.7.5.tar.bz2 Python-2.7.5 distribute-0.6.43.tar.gz distribute-0.6.43 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment