Last active
March 1, 2017 11:43
-
-
Save jaime-ez/3f920cddd13da84c6393bf7d7ab1e980 to your computer and use it in GitHub Desktop.
Set up a new Debian server on GCE with git and nvm (setting locale is needed)
This file contains 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
#!/bin/bash | |
# usage: curl gist_raw_url > setup.sh && . setup.sh | |
#set locale as en_US.UTF-8 | |
sudo export LC_ALL="en_US.UTF-8" | |
sudo locale-gen | |
#update | |
sudo apt-get update && sudo apt-get -y upgrade | |
#git | |
sudo apt-get -y install git | |
#nvm | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash | |
# add nvm to path | |
export NVM_DIR="/home/$USER/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
# install lts nodejs | |
nvm install lts/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment