Skip to content

Instantly share code, notes, and snippets.

@rishabhjain
Created May 16, 2013 22:45
Show Gist options
  • Select an option

  • Save rishabhjain/5595690 to your computer and use it in GitHub Desktop.

Select an option

Save rishabhjain/5595690 to your computer and use it in GitHub Desktop.

Revisions

  1. rishabhjain created this gist May 16, 2013.
    19 changes: 19 additions & 0 deletions init.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    sudo apt-get update
    sudo apt-get -y install ruby1.9.1 ruby1.9.1-dev rubygems1.9.1 irb1.9.1 ri1.9.1 rdoc1.9.1 build-essential libopenssl-ruby1.9.1 libssl-dev zlib1g-dev libxslt-dev libxml2-dev libmysqlclient-dev curl git
    sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.1 400 --slave /usr/share/man/man1/ruby.1.gz ruby.1.gz /usr/share/man/man1/ruby1.9.1.1.gz --slave /usr/bin/ri ri /usr/bin/ri1.9.1 --slave /usr/bin/irb irb /usr/bin/irb1.9.1 --slave /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.1
    git clone git://github.com/cantino/huginn.git
    cd huginn
    sudo gem install rake bundle
    #bundle
    echo mysql-server mysql-server/root_password password password | sudo debconf-set-selections
    echo mysql-server mysql-server/root_password_again password password | sudo debconf-set-selections
    sudo apt-get -y install mysql-server
    sudo apt-get -y install python-software-properties python g++ make
    sudo add-apt-repository -y ppa:chris-lea/node.js
    sudo apt-get update
    sudo apt-get -y install nodejs
    bundle
    sed s/REPLACE_ME_NOW\!/$(rake secret)/ .env.example > .env
    #sudo rake db:create
    #sudo rake db:migrate
    #sudo rake db:seed