Skip to content

Instantly share code, notes, and snippets.

@IAmJulianAcosta
Created April 21, 2017 01:24
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 IAmJulianAcosta/8c0e8590824743e13597e6c510107492 to your computer and use it in GitHub Desktop.
Save IAmJulianAcosta/8c0e8590824743e13597e6c510107492 to your computer and use it in GitHub Desktop.
Configure Ubuntu VM to compile Ember.js
#In some steps you should open a new tab and continue there
# Ubuntu packages
sudo apt-get update
sudo apt-get install -y autoconf automake python-dev make git curl samba-libs
# Node and npm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
nvm install 6.10.2
nvm use 6.10.2
nvm alias default 6.10.2
npm install -g npm
# Ember
npm install -g bower
npm install -g ember-cli
# Watchman
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
# Compass
sudo apt-get install -y git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
#Install whatever version you need
rbenv install 2.3.0
rbenv global 2.3.0
gem install compass
gem install --pre sass-css-importer
# Right click app folder > Local network share
# In windows > Open explorer > Computer menu > Map network drive > Use something like \\192.168.108.148\skylab
# Set permissions and file owner
# Enjoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment