Skip to content

Instantly share code, notes, and snippets.

@boriscy
Created July 14, 2011 14:25
Show Gist options
  • Save boriscy/1082552 to your computer and use it in GitHub Desktop.
Save boriscy/1082552 to your computer and use it in GitHub Desktop.
Installing a server with passenger/nginx on ubuntu
# Create user
# useradd
# login with user
sudo apt-get install curl git-core
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
echo "[[ -s "$HOME/.rvm/scripts/rvm" ]] >> .bashrc
source $HOME/.rvm/scripts/rvm
rvm install ruby-1.8.7
# install all dependencies
sudo apt-get install apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev
# create .gemrc
echo "gem: --no-rdoc --no-ri" >> $HOME/.gemrc
# install ruby-1.9.2
rvm install ruby-1.9.2
rvm ruby-1.9.2@global --default
gem install ruby-debug-base19 -- --with-ruby-include=$HOME/.rvm/src/ruby-1.9.2-p180
gem install bundler
#install php for phpmyadmin
sudo apt-get install apache2 mysql-server install php5 libapache2-mod-php5 php5-mcrypt php5-mysql
# create home dir
mkdir $HOME/src
# clone node.js
cd $HOME/src
git clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment