Friday, July 13, 2012

[ Level 2 ] Install Redmine on Ubuntu.

If you want to install Redmine on Ubuntu, please follow the following steps. Ref: Redmine Wiki
The steps are as the following:
1. Download Redmine by subversion.
  1-a. Install subversion by apt-get:
    # apt-get -y install subversion
  1-b. Download Redmine by subversion:
    # svn co http://redmine.rubyforge.org/svn/branches/2.0-stable redmine-2.0
2. Install gem by apt-get.
  # apt-get -y install rubygems
3. Install Redmine by bundler.
  3-a. Pre-install MySQL5.5, bundler and rmagick
    # apt-get -y install mysql-server-5.5
    # gem install bundler
    # gem install rmagick
  3-b. Setup Redmine by bundler
    # cd ./redmine-2.0
    # bundle install --without development test mysql postgresql sqlite rmagick
4. Create database on MySQL.
  # mysql
  mysql> create database redmine character set utf8;
  mysql> create user 'redmine'@'localhost' identified by 'my_password';
  mysql> grant all privileges on redmine.* to 'redmine'@'localhost';
5. Setup config for database.
  # cp ./config/database.yaml.example ./config/database.yaml
  # vi ./config/database.yaml ## edit password for mysql section
6. Create session store secret.
  # rake generate_secret_token
7. Create database structure.
  # gem install activerecord-mysql-adapter
  # RAILS_ENV=production rake db:migrate
8. ...
[Not Finished Yet]

or you could install by apt-get. Ref: HowTo Install Redmine in Ubuntu
# apt-get -y install tasksel
# tasksel -y install lamp-server
# apt-get -y install libapache2-mod-passenger
# apt-get -y install apparmor-utils
# aa-complain /usr/sbin/mysqld
# apt-get -y install redmine-mysql redmine

Redmine plugins

add tag plugin:
https://github.com/friflaj/redmine_tagging
Wish this helps.

regards,
Stanley Huang