2015/02/06

Install Boxroom file sharing website on Ubuntu

Download Boxroom
Extract, checkout or clone Boxroom into a new folder
Open  Terminal and cd into the new folder
Run the commands as below:
[user@localhost ~]$ sudo apt-get install nodejs
[user@localhost ~]$ bundle install
[user@localhost ~]$ bundle exec rake install
[user@localhost ~]$ bundle exec rails server
Then open your browser to http://localhost:3000/
Now you can start to configure your website

Install Ruby on Rails for Ubuntu

[user@localhost ~]$ sudo su
[root@localhost ~]$ "enter your root password"
[root@localhost ~]$ apt-get update
[root@localhost ~]$ apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
[root@localhost ~]$ apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
[root@localhost ~]$ apt-get install curl
[root@localhost ~]$ gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
[root@localhost ~]$ curl -sSL https://rvm.io/mpapis.asc | gpg --import -
[root@localhost ~]$ curl -sSL https://get.rvm.io | bash -s stable --ruby
[root@localhost ~]$ source /etc/profile.d/rvm.sh
[root@localhost ~]$ rvm use 2.2.0 --default
[root@localhost ~]$ ruby -v
[root@localhost ~]$ rvm requirements
[root@localhost ~]$ gem install rails

2015/02/05

Install Ruby on Rails for Windows

1. Download and install RubyInstaller
2. Open cmd.exe and type "ruby -v" to check version.
3.  Download DevKit
4. Copy it to C:\
5. Open cmd.exe and tpye "cd C:\DevKit" to go to this path.
6. Type "ruby dk.rb init" to dump "config.yml" file.
7. Open config.yml to check Ruby info.
8. Type "ruby dk.rb install" to install DevKit.
9. Type "gem update --system 2.0.3" to upgrade RubyGems.
10. Type "gem install sqlite3 --no-ri --no-rdoc" to install SQLITE3.
11. Type "gem install json --platform=ruby --verbose" to install json.
12. Type "gem install json -v 1.6.1 --platform=ruby --verbose" to upgrade json.
13. Type "gem install rails --no-ri --no-rdoc" to install Rails.
14. Type "rails -v" to check Rails version.