Upload
others
View
1
Download
0
Embed Size (px)
Citation preview
VirtualPrivateServersalexchojnacki
Thehistoryofcomputinginanutshell1. Beganwithdumbterminalsattachedtosmartmainframes
Thehistoryofcomputinginanutshell1. Beganwithdumbterminalsattachedtosmartmainframes
2. Movedtostrongerindividualcomputers,"PC's"
Thehistoryofcomputinginanutshell1. Beganwithdumbterminalsattachedtosmartmainframes
2. Movedtostrongerindividualcomputers,"PC's"
3. Backtodumbdevicesconnectedtosupercomputers.
Whatcanyouevendoonaphonewithnointernetconnection?
WhatisaVPS?
WhatisaVPS?Okay,yeah,it'sa"virtualprivateserver"...
WhatdoesWikipediasayaboutit?"AVPSrunsitsowncopyofanoperatingsystem,andcustomershavesuperuser-levelaccesstothatoperatingsysteminstance,sotheycaninstallalmostanysoftwarethatrunsonthatOS.Formanypurposestheyarefunctionallyequivalenttoadedicatedphysicalserver,andbeingsoftware-defined,areabletobemuchmoreeasilycreatedandconfigured."--Wikipedia
WhatdoesWikipediasayaboutit?"AVPSrunsitsowncopyofanoperatingsystem,andcustomershavesuperuser-levelaccesstothatoperatingsysteminstance,sotheycaninstallalmostanysoftwarethatrunsonthatOS.Formanypurposestheyarefunctionallyequivalenttoadedicatedphysicalserver,andbeingsoftware-defined,areabletobemuchmoreeasilycreatedandconfigured."--Wikipedia
AdvantagesTheyareeasilyconfigurable...Wecanmakeasmanyaswewant...Wecanmakethemaspowerfulasweneed...Wecancreateanddestroytheminstantly...
HowdoImakeone?
VagrantA"headless"VMProvisioningsupportbuilt-inOftentimesmoreconvenientwithouttheGUIProvisioningmechanism
thealex::$vagrantinithashicorp/precise64
...
thealex::$vagrantup
...
thealex::$vagrantssh
VagrantA"headless"VMProvisioningsupportbuilt-inOftentimesmoreconvenientwithouttheGUIProvisioningmechanism
thealex::$vagrantinithashicorp/precise64
...
thealex::$vagrantup
...
thealex::$vagrantssh
Whyisprovisioningcool?::WhatifIwanttomake50VMsatonceandtheyallneedthesameconfig?
DockerA"lightweight"VMQuickerthanvagrant,butmuchlesscontained
Wherevagrant/virtualboxvirtualisethehardware,dockerutilizesaclevernamespacetrickinordertorunprocessesin'isolated'environmentswhileavoidinganyhardwarevirtualisation.
Richecosystemofthird-partyimagesandenvironments
dockerrun-itubuntubash
DockerA"lightweight"VMQuickerthanvagrant,butmuchlesscontained
Wherevagrant/virtualboxvirtualisethehardware,dockerutilizesaclevernamespacetrickinordertorunprocessesin'isolated'environmentswhileavoidinganyhardwarevirtualisation.
Richecosystemofthird-partyimagesandenvironments
dockerrun-itubuntubash
AWS,Linode,DigitalOcean,etc.Disposableserversinthecloud!
Alright,sowhatcanIdowiththem?
Alright,sowhatcanIdowiththem?Hostpersonalwebsite/appTemporarily"rent"amorepowerfulPCHostchatbotslikeGitHub's hubot
Alright,sowhatcanIdowiththem?Hostpersonalwebsite/appTemporarily"rent"amorepowerfulPCHostchatbotslikeGitHub's hubot
Useyourimagination!
WhywouldIeveruseAWSforcomputepower?
WhywouldIeveruseAWSforcomputepower?Ihearneuralnetworksarealltherage...http://arxiv.org/pdf/1508.06576v2.pdf
https://github.com/jcjohnson/neural-style
Installingdependenciesluarocksinstallsys
luarocksinstallimage
luarocksinstallloadcaffe
luarocksinstalltorch
exportLD_LIBRARY_PATH=/home/ubuntu/torch-distro/install/lib:/home/ubuntu/torc
h-distro/install/lib:/home/ubuntu/cudnn-6.5-linux-x64-v2-rc2
#clonetheprojectandinstall
gitclonehttps://github.com/jcjohnson/neural-style
cdneural-style
shmodels/download_models.sh
Installingdependenciesluarocksinstallsys
luarocksinstallimage
luarocksinstallloadcaffe
luarocksinstalltorch
exportLD_LIBRARY_PATH=/home/ubuntu/torch-distro/install/lib:/home/ubuntu/torc
h-distro/install/lib:/home/ubuntu/cudnn-6.5-linux-x64-v2-rc2
#clonetheprojectandinstall
gitclonehttps://github.com/jcjohnson/neural-style
cdneural-style
shmodels/download_models.sh
Whatis luarocks ?Whatis exportLD_LIBRARY_PATH doing?Whatabouttheshcommand?
Howdowegetmyimageontotheserver?
emailittomyself?Clickanddragtothe...juststop--no.
Howdowegetmyimageontotheserver?
emailittomyself?Clickanddragtothe...juststop--no.
scp !
scp-i~/Downloads/[email protected]
1.amazonaws.com:neural-style/output.png.
maybeevenapythonwebserver... http://52.70.134.147
CardDemo
CardDemoProblem
Wroteabunchofnoteswith word::definition pairs
Wantedaflashcardapponmyphone
CardDemoProblem
Wroteabunchofnoteswith word::definition pairs
Wantedaflashcardapponmyphone
SolutionSimpleprojectusingnode.js,mongo,express.js
Writteninanafternoon
CardDemoProblem
Wroteabunchofnoteswith word::definition pairs
Wantedaflashcardapponmyphone
SolutionSimpleprojectusingnode.js,mongo,express.js
Writteninanafternoon
...ortwo.
CardDemoProblem
Wroteabunchofnoteswith word::definition pairs
Wantedaflashcardapponmyphone
SolutionSimpleprojectusingnode.js,mongo,express.js
Writteninanafternoon
...ortwo.
AfewnotesabouttheclassFromthefirstslideofthecourse...
##Whatthisclassisabout
-Thisisnot"ToolsforComputerScientists"
-Though,wewillcoveralotofcooltools
-Thegoalistogiveyoutheabilitytopickup,learn,andusetoolseffective
ly
Hopefully...
...you'vefollowedaguideandneededtoimprovise.
AfewnotesabouttheclassFromthefirstslideofthecourse...
##Whatthisclassisabout
-Thisisnot"ToolsforComputerScientists"
-Though,wewillcoveralotofcooltools
-Thegoalistogiveyoutheabilitytopickup,learn,andusetoolseffective
ly
Hopefully...
...you'vefollowedaguideandneededtoimprovise.
...you'velearnedatoolortwothatsurprisedyou.
AfewnotesabouttheclassFromthefirstslideofthecourse...
##Whatthisclassisabout
-Thisisnot"ToolsforComputerScientists"
-Though,wewillcoveralotofcooltools
-Thegoalistogiveyoutheabilitytopickup,learn,andusetoolseffective
ly
Hopefully...
...you'vefollowedaguideandneededtoimprovise.
...you'velearnedatoolortwothatsurprisedyou.
...you'remoreconfidentapproachingnewproblems.
AfewnotesabouttheclassFromthefirstslideofthecourse...
##Whatthisclassisabout
-Thisisnot"ToolsforComputerScientists"
-Though,wewillcoveralotofcooltools
-Thegoalistogiveyoutheabilitytopickup,learn,andusetoolseffective
ly
Hopefully...
...you'vefollowedaguideandneededtoimprovise.
...you'velearnedatoolortwothatsurprisedyou.
...you'remoreconfidentapproachingnewproblems.
Youknowmorethanyouthinkyouknow,andnothingonacommandlineishard...
AfewnotesabouttheclassFromthefirstslideofthecourse...
##Whatthisclassisabout
-Thisisnot"ToolsforComputerScientists"
-Though,wewillcoveralotofcooltools
-Thegoalistogiveyoutheabilitytopickup,learn,andusetoolseffective
ly
Hopefully...
...you'vefollowedaguideandneededtoimprovise.
...you'velearnedatoolortwothatsurprisedyou.
...you'remoreconfidentapproachingnewproblems.
Youknowmorethanyouthinkyouknow,andnothingonacommandlineishard...
...thesecondtime...