Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Ubuntu 12.04 64-bit installation Redmine + Git + ReviewBoard     - Windows Ubuntu dual system a key Ghost, grub rescue prompt solution (Linux)

- Restrict console access to Linux servers to improve security (Linux)

- Setting Lns firewall against ARP attacks (Linux)

- Customize the output format in Linux history (Linux)

- Analysis of Java reflection mechanism (Programming)

- Win7 + Ubuntu Kylin + CentOS 6.5 installed three systems (Linux)

- Linux administrator should command: sed and awk (Linux)

- Oracle 11g em start newspaper site's security certificate has a solution to the problem (Database)

- HBase Application Development Review and Summary of Series (Database)

- Oracle rebuild index script (Database)

- Android View event delivery (Programming)

- TL-WR703N to install OpenWrt process notes (Linux)

- Linux Fundamentals of the memory management mechanism (Linux)

- Python interview must look at 15 questions (Programming)

- Ubuntu 14.04 modify environment variables (Linux)

- Linux find command usage summary (Linux)

- Oracle 11g partition maintenance (Nice) - Truncating And Partitions (Database)

- To explore the caching mechanism for Android ListView (Programming)

- Using IntelliJ IDEA Import Spark Spark latest source code and compile the source code (Linux)

- Make command Detailed Tutorial (Programming)

  Ubuntu 12.04 64-bit installation Redmine + Git + ReviewBoard
  Add Date : 2017-04-13      
  First introduced to these three things

Redmine is a Ruby developer of web-based project management software, is ROR framework for the development of a cross-platform project management system, is said to come from Basecamp version of ror, supports multiple databases, many of its own unique features such as providing wiki, news stations, etc., can also be integrated version management system and other BUG tracking system, such as Perforce, SVN, CVS, TD, and so on. This Web form project management system in the form of "Project (Project)" of the members of the task (problem), documents, discussions, and various forms of organizational resources together, participate update tasks, documents and other content to promote projects progress, and the system use time clues and reports a variety of dynamic forms to automatically report to the members of the project schedule.

ReviewBoard as an open source code review tool, it has been more and more developers alike.

Git is a distributed version control tool.

The above three is said to be called teamwork development in the three-piece

Nonsense is not how many enter the configuration step, the entire configuration process encountered many problems, due to the time span of a little big, the problem encountered in the middle may be missed.

The first step: start configuration from git, due to its simplest configuration, the first configuration directly copy a blog here

Install python setuptools

sudo apt-get install python-setuptools

Download gitosis

git clone https://github.com/tv42/gitosis.git

Enter gitosis directory

cd gitosis


python setup.py install

Create an account git

sudo useradd -c 'git version manage' -m -d / home / git -s bin / bash git

Client secret key production uploaded to the server directory /home/git/id_rsa.pub

Initialize git

sudo -H -u git gitosis-init < /home/git/id_rsa.pub

It shows the following information is successful

#Initialized Empty Git repository in /home/git/repositories/gitosis-admin.git/
#Reinitialized Existing Git repository in /home/git/repositories/gitosis-admin.git/

Modify post-update privileges

sudo chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update

Client Cloning warehouse configuration

git clone git @ Host IP: gitosis-admin.git

After cloning under keydir directory is stored in the public key, gitosis.conf configuration file

Open the configuration file, add the following content, and other public recwert@linuxhost.com.pub machine placed in a public key directory

[Group linuxhost]
writable = linuxhost
members = victor@linuxhost.com recwert@linuxhost.cc

Will modify commit

git add.
git commit -m 'add some key'
git push

Initializes client victor@linuxhost.com submit linuxhost warehouse, as follows

mkdir linuxhost
cd webca
git init
touch README.md
git add README.md
git commit -m "init linuxhost"
git remote add origin git @ Host IP: linuxhost.git
git push origin master

After the push server will be more of a linuxhost.git directory /home/git/repositories/linuxhost.git

Modify the folder permissions to 777, because redmine need later installed in this folder permission to 777

The second step, install Redmine

Install prerequisite software

sudo apt-get install apache2 libapache2-mod-passenger mysql-server redmine redmine-mysql

Will be configured during the installation process, follow the prompts to go step by step configuration, the configuration related to the mysql account password, redmine account password and other information, after you install redmine in / var / www / redmine directory

Configuring apache

Under /etc/apache2/conf.d directory, create documents:

sudo vi redmine.conf
RailsEnv production
RailsBaseURI / redmine


sudo ln -s / usr / share / redmine / public / var / www / redmine

Restart apache

sudo service apache2 restart

Access redmine


http: // host IP / redmine

Account admin, password admin

Thus almost redmine on the installation finished, if the integrated git op a blog

The third step is to install reveiewboard, this step is so difficult. . . Spent too much time due to problems with the configuration file, the process is like a direct reference to the official address

redmine official configuration

Install python setuptools, installed in front of the fact. .

apt-get install python-setuptools

Upgrade, this step may not, but after this step will be done behind a small problem is that there will be two easy_install system, resulting reviewboard can not be installed, the solution see below

easy_install -U setuptools

Install python-dev

apt-get install python-dev

Install memcached

apt-get install memcached

Installation python_memcached

easy_install python-memcached

This step may report an error like entry point ( 'console_scripts', 'easy_install') not found

The reason is that there may be two easy_install system, use the following command

which -a easy_install

Then we use one like that to bring the full path, behind all used easy_install should be put on the path

/ Usr / bin / easy_install python-memcached

Install patch

apt-get install patch

Installation reviewboard

/ Usr / bin / easy_install ReviewBoard

This step may be wrong. . . The reason, you know, we need something from google code from top to bottom. . And then there is a giant wall. . What solutions, the simplest is to modify the hosts, search google hosts to find a solution on github

Install python-mysql

/ Usr / bin / easy_install mysql-python

This step may be incorrect report, which reads as follows

sh: mysql_config: not found
Traceback (most recent call last):
  File "setup.py", line 15, in < module>
    metadata, options = get_config ()
  File "/home/zhxia/apps/source/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config
    libs = mysql_config ( "libs_r")
  File "/home/zhxia/apps/source/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config
    raise EnvironmentError ( "% s not found"% (mysql_config.path,))
EnvironmentError: mysql_config not found

Solution See the following command

sudo apt-get install libmysqlclient-dev

Install cvs etc. clutter

apt-get install cvs

apt-get install cvs

apt-get install git-core

/ Usr / bin / easy_install mercurial

/ Usr / bin / easy_install P4PythonInstaller

apt-get install subversion python-svn

Then begin creating the site, before you need to modify some configuration

Modify mysql encoding files /etc/mysql/my.cnf, edit it and add the following content

default-character-set = utf8

character-set-server = utf8

Create databases and database users

mysql -u root -p
mysql> CREATE DATABASE reviewboard CHARACTER SET utf8;
mysql> CREATE USER 'myuser' @ 'localhost' IDENTIFIED BY 'mypassword';
. Mysql> GRANT ALL PRIVILEGES ON reviewboard * to 'myuser' @ 'localhost';

Installation Site

rb-site install / var / www / reviewboard

The following are some of the options in the configuration process

Root Path particular attention to not use the default, otherwise apache will sucker out

- Domain Name: IP Host
- Root Path [/]: / reviewboard / This must not use the default value, the specific reasons given above it tips here can not remember, this installed there for so long in part because not equipped with this result
- Media URL [media /]: media / default can
- Database Type: mysql
- Database Name [reviewboard]: reviewboard (that is built above the table when the table name)
- Database Server [localhost]: Default to
- Database Username: reviewboard database user name you created
- Database Password: reviewboard database user name and password you created
- Cache Type: memcached default
- Memcache Server [localhost: 11211 /]: localhost: 11211 / default
- Web Server: apache
- Python Loader: wsgi
- Username [admin]: admin Default
- Password: admin (This password casual setting, but we have to remember, back when the need to use login page)
- E-Mail Address: yours@email.com.cn

Modify permissions

chown -R www-data / var / www / reviewboard / htdocs / media / uploaded
chown -R www-data / var / www / reviewboard / data

Copy files

cd / etc / apache2 / sites-available
cp /var/www/reviewboard/conf/apache-wsgi.conf /etc/apache2/conf.d/

Enter /etc/apache2/conf.d/ directory, edit the file apache-wsgi.conf

The first line < VirtualHost *: 80> comment out the last line < / VirtualHost> commented, and this step is important, otherwise it will not gain access to other directories, can only access to reviewboard
Restart apache

sudo service apache2 restart

Up to this point, visit http: // host IP / reviewboard If home, then you are half the battle, and then you build the apache access other sites redmine, if the normal access, then you are successful

Finally, the extra step to build a phpmyadmin above

Install php

sudo apt-get install php5 libapache2-mod-php5

Install phpmyadmin

sudo apt-getinstall phpmyadmin


sudo ln -s / usr / share / phpmyadmin / var / www

Visit http: // host IP / phpmyadmin to see whether the normal visit, you may be prompted missing something

Such as, but not necessarily the lack of the following documents, in short, a similar solution with the following

Error: Missing mcrypt extension, check the php configuration

Enter / etc / php5 / apache2 modify its under php.ini (eg: sudo vim php.ini), find the following fields and add the following extension = php_mcrypt.so
; Dynamic Extensions;
extension = php_mcrypt.so

Restart apache

sudo service apache2 restart

As for how to integrate reviewboard git, to find their own method!
- Oracle table space create large files (Database)
- Ubuntu 14.10 PPA installed Android Studio (Linux)
- Oracle database import and export (Database)
- How to use Java to read OpenOffice document (Programming)
- Build Eclipse + Maven + Scala-IDEA the Scala Web development environment (Server)
- Implicit conversion from Java type conversion compare MySQL and Oracle (Database)
- sqlplus connect to Oracle (Database)
- Java 8 Lambda principle analysis (Programming)
- Repair fatal error in Linux: lame / lame.h: No such file or dir Error (Linux)
- Linux security concerns again (Linux)
- Four Methods of Self - Learning Linux (Linux)
- Use ISO document production OpenStack used CoreOS mirror (Linux)
- Install DB2 V10 and Data Studio V3 under Linux (Ubuntu) environment (Database)
- Ubuntu 15.10 install the latest Arduino IDE 1.6.7 (Linux)
- Bash mathematical extension (Programming)
- Difference Redhat5 and 6 YUM source configuration (Linux)
- XenServer Virtual Machine Installation --- first ISO image file storage expansion (Linux)
- Ubuntu 14.04 / 12.04 subscribe users to install software Liferea 1.10.10 (Linux)
- Elementary OS Freya global menu (Linux)
- Linux operation and maintenance of the actual file system, file links (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.