Skip to content

Instantly share code, notes, and snippets.

@fitnr
Created January 9, 2016 23:38
Show Gist options
  • Save fitnr/e999a0d1916384a0a7d2 to your computer and use it in GitHub Desktop.
Save fitnr/e999a0d1916384a0a7d2 to your computer and use it in GitHub Desktop.
set up a ec2 for botting
# make it easier to log in later
ssh-keygen -t rsa -b 4096 -C ec2-user
cat ~/.ssh/id_rsa.pub
# install useful stuff
sudo yum -qy update
sudo yum -qy install git gcc-c++ make mutt zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libjpeg-devel
# install node
curl -s -O https://nodejs.org/dist/v4.2.3/node-v4.2.3.tar.gz
tar -xf node-v4.2.3.tar.gz
cd node-v4.2.3
./configure -q && make -s
sudo make -s install
cd ..
# python 3.5
echo be78e48cdfc1a7ad90efff146dce6cfe Python-3.5.1.tgz > md5sum.txt
curl -s -O https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
md5sum -c md5sum.txt && tar -xf Python-3.5.1.tgz
cd Python-3.5.1
./configure -q --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
make -s && sudo make -s altinstall
cd ..
rm -r node-v4.2.3.tar.gz node-v4.2.3 Python-3.5.1 Python-3.5.1.tgz md5sum.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment