Last active
March 10, 2019 11:39
-
-
Save faermanj/2db9d8d5c24cc692fc415b30e8c039c6 to your computer and use it in GitHub Desktop.
Cloud9 Initi Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# curl -s https://gist.githubusercontent.com/faermanj/2db9d8d5c24cc692fc415b30e8c039c6/raw/167d055e8db9cd5ae27f19b7ca71838c381f0ac7/initc9.sh | sh | |
# Javascript | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
nvm install node | |
nvm alias default node | |
# Python | |
curl https://pyenv.run | bash | |
echo 'export PATH="/home/ec2-user/.pyenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(pyenv init -)"' >> ~/.bashrc | |
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc | |
echo 'unalias python' >> ~/.bashrc | |
source ~/.bashrc | |
pyenv install 3.7.2 | |
pyenv global 3.7.2 | |
# Java https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/amazon-linux-install.html | |
wget https://d2znqt9b1bc64u.cloudfront.net/java-1.8.0-amazon-corretto-devel-1.8.0_202.b08-2.x86_64.rpm | |
sudo yum -y localinstall java-1.8.0-amazon-corretto-devel-1.8.0_202.b08-2.x86_64.rpm | |
rm java-1.8.0-amazon-corretto-devel-1.8.0_202.b08-2.x86_64.rpm | |
# C9 CLI | |
npm install -g c9 | |
alias code="c9 open " | |
# AWS Amplify | |
npm install -g @aws-amplify/cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment