Skip to content

Instantly share code, notes, and snippets.

@bmpvieira
Last active August 29, 2015 14:09
Show Gist options
  • Save bmpvieira/d4a27fe77ac98eb56d16 to your computer and use it in GitHub Desktop.
Save bmpvieira/d4a27fe77ac98eb56d16 to your computer and use it in GitHub Desktop.
Setup an Amazon Instance (16 CPU, 122 GB RAM, 320 GB SDD) with Ubuntu 14.04 and NCBI BLAST+ from Bio-Linux 8
# Get Amazon AWS Command Line tool
brew install awscli
# Setup instance
aws configure # key, secret, eu-west-1, table
aws ec2 create-key-pair --key-name MyKeyPair --query 'KeyMaterial' --output text > MyKeyPair.pem
aws ec2 run-instances --image-id ami-f0b11187 --instance-type r3.4xlarge --region eu-west-1 --key-name MyKeyPair
aws ec2 describe-instances
aws ec2 authorize-security-group-ingress --group-id sg-86bfxxxx --protocol tcp --port 22 --cidr 0.0.0.0/0
# Setup users and password ssh login
ssh -i MyKeyPair.pem [email protected]
sudo passwd ubuntu # password for admin
sudo adduser mscstudent # password, MSc Student
sudo sed -ie 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config
sudo service ssh restart
# Install software
sudo apt-get install htop git -y
sudo add-apt-repository ppa:nebc/bio-linux
sudo apt-get update
sudo apt-get install ncbi-blast+ -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment