Skip to content

Instantly share code, notes, and snippets.

@agassner
Created August 14, 2013 19:17
Show Gist options
  • Save agassner/6234526 to your computer and use it in GitHub Desktop.
Save agassner/6234526 to your computer and use it in GitHub Desktop.
Ubuntu Server Setup
Installing Node on a new Ubuntu Server:
sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
node --version
npm --version
sudo apt-get install openssl
sudo apt-get install git
git config --global user.name "NewUser"
git config --global user.email newuser@example.com
git config --list
sudo apt-get install curl
curl -L https://get.rvm.io | bash -s stable
*** add line: "source ~/.profile" to ~/.bash_profile or ~/.bash_login
*** make sure ~/.profile is loaded
*** exit and login to shell again
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
. ~/.bashrc
source ~/.rvm/scripts/rvm
rvm requirements
*** install listed dependencies
rvm install 2.0.0
rvm use 2.0.0 --default
rvm rubygems current
gem install rails
gem update --system
gem install compass
sudo apt-get install libjpeg-turbo-progs
sudo apt-get install optipng
sudo mkdir -p /usr/local/{share/man,bin,lib/node,include/node}
sudo chown -R $USER /usr/local/{share/man,bin,lib/node,include/node}
sudo npm install -g yo grunt-cli bower
sudo npm install -g phantomjs
sudo npm install -g generator-webapp
sudo npm install -g generator-angular
Running Yeoman to Build Apps::
sudo su
mkdir test
cd test
yo webapp # scaffold out a skeleton web app project
bower install
npm install
bower install underscore # install a dependency for your project from Bower
grunt # build the application for deployment
grunt server
yo angular # scaffold out a AngularJS project
bower install angular-ui # install a dependency for your project from Bower
grunt test # test your app
grunt server # preview your app
grunt # build the application for deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment