Skip to content

Instantly share code, notes, and snippets.

@enzinier
Last active March 4, 2017 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enzinier/d25f98e2c67aa140572157d8d46b1d08 to your computer and use it in GitHub Desktop.
Save enzinier/d25f98e2c67aa140572157d8d46b1d08 to your computer and use it in GitHub Desktop.
Setup initial environment on Ubuntu 16.04 LTS
#!/bin/sh
# Install Node 6.x (https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
node -v
# Install yarn (https://yarnpkg.com/en/docs/install#linux-tab)
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install -y yarn
yarn -v
# Install npm
sudo apt-get install -y npm
npm -v
# Install react native client (https://facebook.github.io/react-native/docs/getting-started.html)
sudo npm install -g react-native-cli
# Install watchman
sudo apt-get install -y autoconf automake build-essential python-dev
git clone https://github.com/facebook/watchman.git
cd watchman
git checkout v4.7.0 # the latest stable release
./autogen.sh
./configure
make
sudo make install
cd ..
sudo rm -rf watchman
watchman -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment