Under Construction, sorry for the inconvenience
This is a guide for those students having an AWS Educate account to run an instance out of the CS50 appliance that SEAS Computing put in the AWS cloud.
Step-by-step guide
Once you get your aws educate account, please follow this steps to get the instance running:
- Go to the EC2 part of your AWS account in the upper left corner:
- Choose the comunity AMi and search for "SEAS CS50"
- Once in the EC2 console, choose Launch Instance and choose the size
- REMEMBER that the bigger the instance is, the more money will consume, take a look at the aws_calculator
- Next step is to configure the instance settings, your VPC default configuration is going to be simpler
|
---|
5. Here you can find some tips on how to create your keys from windows ssh_keys_windows You will need to add here your ssh PUBLIC key
MAKE sure you add this lines in the User Data or you will not be able hostname: cs50 manage_etc_hosts: false users: - name:ubuntu ssh-authorized-keys: -
ssh-rsa < PASTE YOUR PUBLIC ssh key> |
---|
6. Leave this setting as it is, magnetic is fast enough
7. Add a name for your instance so that you can find it easily among the others
8. On a regular basis, machines are attacked, please make sure your firewall (security group) is set to protect your machine from unwanted access
Here you have the list of network addresses from Harvard (you at class) Save this security group for later use
|
---|
9. Next you will be able to change the storage type, SSD is more expensive, this appliance would not really benefit from it, but it is your decision
10. This is an important step, since you already put your keys in the clout init configuration, you don't need to do it again and you can safely choose NO KEY PAIR
11. You will get a confirmation and if you click on the instance id, youll be able to see in the console the status of the creation
- You can see the public ip of the machine and after the status checks are passed, you'll be able to ssh to it with a simple
- ssh ubuntu@<IP_ADDRESS> -i .ssh/your_private_key
- You may need to type your passphrase now
- You can access the instance using VNC, you will get the full desktop experience issuing the following command against the instance:
- From a terminal issue:
- ssh -i .ssh/your_private_key ubuntu@<IP_ADDRESS> -L 5901:localhost:5901 "vncserver :1 -geometry 1024x768 -depth 24 -localhost"
- Then from your favorite vncviewer, set it up as:
- server : localhost
- port : 5901
- password : crimson
- You can kill the server as:
- ssh -i .ssh/your_private_key ubuntu@<IP_ADDRESS> -L 5901:localhost:5901 "vncserver -kill :1"
- From a terminal issue:
- Once you are done with your work, you should stop the machine so that it doesn't consume money.
If you want to terminate the instance (if you selected the termination protection, you will need to disable it)
Now you can terminate the instance.
Related articles