Skip to content

Instantly share code, notes, and snippets.

@ian-moore
Last active June 15, 2018 14:30
Show Gist options
  • Save ian-moore/69fea17b3b0004f84817be9594c98a2c to your computer and use it in GitHub Desktop.
Save ian-moore/69fea17b3b0004f84817be9594c98a2c to your computer and use it in GitHub Desktop.
setup windows subsystem linux (ubuntu 18) with node/npm/java/clojure
#!/usr/bin/env bash
# Ensure this file is executable via `chmod a+x setup`
# create .bash_profile
mkdir ~/bin
mkdir ~/.bash
wget -O ~/.bash/git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
wget -O ~/.bash_profile https://gist.githubusercontent.com/ian-moore/7d13a5846350dfcd52674538898a0ca8/raw/b3490e824ce01dbeb6edc1a116b68bd7641a9772/.bash_profile
# install node/npm
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
# install n (node version manager) and switch to node LTS
sudo npm install -g n
sudo n lts
# install java
sudo apt install openjdk-8-jdk
java -version
# install leiningen
wget -O ~/bin/lein https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
chmod a+x ~/bin/lein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment