Skip to content

Instantly share code, notes, and snippets.

@pjgoodall
Last active September 20, 2017 05:44
Show Gist options
  • Save pjgoodall/5e0d6f1e85b483b20ad97f4f53c4d59d to your computer and use it in GitHub Desktop.
Save pjgoodall/5e0d6f1e85b483b20ad97f4f53c4d59d to your computer and use it in GitHub Desktop.
setting up and environment for using node, npm, awscli, boto3 and ipython on Ubuntu 16.04 LTS

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

git

> sudo apt install git

nvm

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment