In this Lab session you will be asked to put in practice the basic knowledge required for Labs of this course.
Have a look of these following hands-on to check if you have the basics to follow this course. If not do it.
- Hands-on 0: Run a Linux OS in a Virtual Machine (Only for Windows users)
- Hands-on 1: Git and GitHub Quick Start
- Hands-on 2: Markdown syntax
- Hands-on 3: Python Quick Start
Create an AWS account following the following hands-on:
- Hands-on 5: Getting Started in the Cloud with AWS
Install Python in your local laptop.
Create a python code that uses the “random” library. We will value positively if you build a creative program in python. The minimum example accepted will be a code that generates a random number between 1 and 20. Then let the player guess the number introduced, displaying if the number is to low or high. The game ends either when the number is guessed correctly. The suggested program name is Lab1.guessnumber.py
.
Create a private repository CLOUD-COMPUTING-COURSE-2017 in your github account (use you student email (".upc.edu") for creating your github account in order to have private repositories or benefits as student pack).
Update your remote repository from your local repository on your laptop:
echo "# CLOUD-COMPUTING-COURSE-2017" >> README.md
git init
git add README.md
git add Lab1.guessnumber.py
git commit -m "first commit"
git remote add origin https://github.com/jorditorresBCN/CLOUD-COMPUTING-COURSE-2017.git
git push -u origin master
change
jorditorresBCN
with your github account
Update the README.md
file including all the information of your group (member's name and emails).
Invite JordiTorresBCN
to your remote private repository as a collaborator using settings
button (for evaluation purpose).
Create a AWS instance EC2. Pull down all the contents of your github repository making an exact clone using git clone
command.
Execute the program Lab1.guessnumber.py
in your AWS instance. Take an screenshot of the xterm that are you using as a proof.
Include this screenshot in your local repository on your laptop with the name Lab1.AWSterminal.png
.
Update your remote github repository with the updated README.md
and the new file Lab1.AWSterminal.png
using the git
commands add
, commit
and push
.
Submit before the deadline to the RACO Practicals section a "Lab1.txt" file including:
- Group number
- name and email of the members of this group
- github url that contains your lab answers
- indicate if you did or not the optional task and why
- add any comment that you consider necessary.