Skip to content

Instantly share code, notes, and snippets.

@MisterFili
Last active June 4, 2017 00:54
Show Gist options
  • Save MisterFili/31bfb03fe52ed47b19fb31408f7d9282 to your computer and use it in GitHub Desktop.
Save MisterFili/31bfb03fe52ed47b19fb31408f7d9282 to your computer and use it in GitHub Desktop.
setup t2 instance to begin deep learning
Script started on Sat Jun 3 20:32:33 2017
aws configure
AWS Access Key ID [****************IXVQ]:
AWS Secret Access Key [****************KFvM]:
Default region name [us-east-1]: us-west-2
Default output format [None]:
bash-3.2$ bash setup_t2.sh
{
"Return": true
}
Waiting for instance start...
All done. Find all you need to connect in the fast-ai-commands.txt file and to remove the stack call fast-ai-remove.sh
Connect to your instance: ssh -i /Users/MisterFili/.ssh/aws-key-fast-ai.pem [email protected]
bash-3.2$ ssh -i /Users/MisterFili/.ssh/aws-key-fast-ai.pem [email protected]
The authenticity of host 'ec2-52-32-X-XXX.us-west-2.compute.amazonaws.com (52.XX.X.XXX)' can't be established.
ECDSA key fingerprint is SHA256:pTADl1IWhloXXPZBVqnElhRcder2E7/EphsgGcBH4CE.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ec2-XX-XX-X-XXX.us-west-2.compute.amazonaws.com,52.XX.X.XXX' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-92-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Sun Jun 4 00:35:20 UTC 2017
System load: 0.0 Memory usage: 0% Processes: 101
Usage of /: 2.3% of 125.86GB Swap usage: 0% Users logged in: 0
Graph this data and manage this system at:
https://landscape.canonical.com/
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
56 packages can be updated.
29 updates are security updates.
Last login: Fri Oct 21 01:13:34 2016 from s24.gtokyofl16.vectant.ne.jp
0;ubuntu@ip-10-0-0-7: ~ubuntu@ip-10-0-0-7:~$ sudo rm .bash h_history
0;ubuntu@ip-10-0-0-7: ~ubuntu@ip-10-0-0-7:~$ jupyter notebook
[I 00:38:42.147 NotebookApp](B [nb_conda_kernels] enabled, 2 kernels found
[I 00:38:42.151 NotebookApp](B Writing notebook server cookie secret to /run/user/1000/jupyter/notebook_cookie_secret
[W 00:38:42.176 NotebookApp](B WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[I 00:38:42.566 NotebookApp](B ✓ nbpresent HTML export ENABLED
[W 00:38:42.567 NotebookApp](B ✗ nbpresent PDF export DISABLED: No module named nbbrowserpdf.exporters.pdf
[I 00:38:42.571 NotebookApp](B [nb_conda] enabled
[I 00:38:43.847 NotebookApp](B [nb_anacondacloud] enabled
[I 00:38:43.850 NotebookApp](B Serving notebooks from local directory: /home/ubuntu
[I 00:38:43.850 NotebookApp](B 0 active kernels
[I 00:38:43.850 NotebookApp](B The Jupyter Notebook is running at: http://[all ip addresses on your system]:8888/
[I 00:38:43.850 NotebookApp](B Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 00:39:04.070 NotebookApp](B 302 GET / (66.44.56.229) 0.59ms
[I 00:39:04.174 NotebookApp](B 302 GET /tree (66.44.56.229) 0.64ms
[I 00:39:11.863 NotebookApp](B 302 POST /login?next=%2Ftree (66.44.56.229) 0.84ms
[I 00:39:27.090 NotebookApp](B Creating new notebook in
[I 00:39:27.095 NotebookApp](B Writing notebook-signing key to /home/ubuntu/.local/share/jupyter/notebook_secret
[I 00:39:31.097 NotebookApp](B Kernel started: 61433420-9d9e-405c-8991-6b08d245195b
[I 00:40:08.624 NotebookApp](B Creating new notebook in /nbs
[I 00:40:09.707 NotebookApp](B Kernel started: a8e6c79f-fd64-4407-9853-d5b91809d6e2
[32m[I 00:41:00.803 NotebookApp](B interrupted
Serving notebooks from local directory: /home/ubuntu
2 active kernels
The Jupyter Notebook is running at: http://[all ip addresses on your system]:8888/
Shutdown this notebook server (y/[n])? y
[C 00:41:02.555 NotebookApp] Shutdown confirmed
[I 00:41:02.556 NotebookApp](B Shutting down kernels
[I 00:41:02.957 NotebookApp](B Kernel shutdown: a8e6c79f-fd64-4407-9853-d5b91809d6e2
[I 00:41:02.958 NotebookApp](B Kernel shutdown: 61433420-9d9e-405c-8991-6b08d245195b
ubuntu@ip-10-0-0-7: ~ubuntu@ip-10-0-0-7:~$ exit
logout
Connection to ec2-52-32-2-104.us-west-2.compute.amazonaws.com closed.
bash-3.2$ aws ec2instance stop-instances instance-id i-XXXXXXe7b77
{
"StoppingInstances": [
{
"InstanceId": "i-XXXXXXe7b77",
"CurrentState": {
"Code": 64,
"Name": "stopping"
},
"PreviousState": {
"Code": 16,
"Name": "running"
}
}
]
}
bash-3.2$ exit
exit
Script done on Sat Jun 3 20:42:18 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment