Saturday, February 11, 2017

editing Physics Derivation Graph on AWS EC2 Ubuntu

I wanted to play around with EC2, and AWS offers limited compute for 1 year for free. 
Start here: https://aws.amazon.com/free/faqs/?ft=nf

I turned on alerts for billing to prevent charges.

$ chmod 600 filename.pem
$ ssh -i filename.pem ubuntu@<IP address>

PDG on AWS

$ sudo apt-get install git
$ git config --global user.name "<my name>"
$ git config --global user.email <my email address>
$ git config --list
$ ssh-keygen -t rsa -b 4096 -C "<my email address"

go to https://github.com/settings/keys

$ ssh-add -l
Could not open a connection to your authentication agent.
$ eval "$(ssh-agent -s)"
Agent pid 2690
$ ssh-add -l
The agent has no identities.
$ ssh-add ~/.ssh/id_rsa
Identity added: /home/ubuntu/.ssh/id_rsa (/home/ubuntu/.ssh/id_rsa)
$ ssh-add -l
4096 64:84:9f:91:c7:8c:7d:14:98:2a:db:05:6d:39:c8:0f /home/ubuntu/.ssh/id_rsa (RSA)

Validate setup:
$ ssh -T git@github.com

On the page https://github.com/allofphysicsgraph/proofofconcept
switch from HTTPS to SSH to find the address
git clone git@github.com:allofphysicsgraph/proofofconcept.git