Instructions for setting up and environment for using node, npm, nvm, awscli boto3 and ipython on Ubuntu 16.04 LTS.
The lines starting with >
in code format are what you type at the command-line. dont include the >
that just indicates a command-prompt
> sudo apt install git
nvm is the node version manager. DigitalOcean has a tutorial on installing nvm - Please note the final section, if you need to manage the system's version of node.js. Davis Walsh has a tutorial on managing Node.js Versions with nvm.
Once you have nvm installed, use it to install and use a particular version of node
nvm install 7.6
nvm use 7.6
Install miniconda which has independent virtual python environments, and curated packages. A very powerful system. Does not require sudo to install - which is a definite advantage.
Create a conda environment for working with aws-cli:
> conda create -n acg-awscli python=2.7 awscli boto3 ipython
To activate your new environment:
> source activate acg-awscli
Test to see if its active:
> aws
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: the following arguments are required: command
You will need to activate your conda environment every time you open a new terminal on Ubuntu. The docs on mananging conda environments is where you go to learn more.
Install the atom text editor - Best follow the instructions on the Atom home website
Please comment if you have any problems.
Cheers, --Peter Goodall