Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Ubuntu 12.04 64-bit installation Redmine + Git + ReviewBoard     - CUDA (including GPU card driver) installation process under Ubuntu (Linux)

- Ubuntu install Scala 2.10.x version (Linux)

- Linux permissions Detailed (Linux)

- PostgreSQL Source Customization: Online global read only (Database)

- Browser caching mechanism on the analysis (Linux)

- SendMail version of Java implementation with attachments (Programming)

- To install Emacs under CentOS 6.5 (Linux)

- Solve the compatibility problem between Linux and Java at the source in bold font (Linux)

- Linux Network Programming - signal blocking and shielding (block, unblock) (Programming)

- VMware difference in three network connection (Linux)

- Use lsof restore accidentally deleted log files or database (Linux)

- How to download GOG games in Linux command line (Linux)

- To install and deploy PHP environment under the CentOS (Server)

- Database start listening TNS-12537, TNS-12560 error (Database)

- Make Linux more secure server tips (Linux)

- Oracle Data Pump Example (Database)

- xCAT error Unable to dispatch hierarchical sub-command to NORESOLUTION: 3001 (Linux)

- Linux server Php injection prevention (Linux)

- Oracle 12C modify spfile path (Database)

- Linux vi command list (Linux)

 
         
  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

installation

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

Linking

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

[Client]
default-character-set = utf8

[Mysqld]
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

Linking

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!
     
         
         
         
  More:      
 
- crontab cause CPU exception Analysis and Processing (Linux)
- Nagios (centreon) monitoring LVS (Server)
- 10 useful Linux command Interview Questions and Answers (Linux)
- 14 useful example Linux Sort command (Linux)
- Linux input and output redirection (Linux)
- Simple to install Tor browser to Ubuntu 14.04 and Linux Mint 17 (Linux)
- Use SecureCRT to transfer files between Linux and Windows (Linux)
- Linux systems for entry-learning - Install Go language in Linux (Linux)
- socket busy poll of Linux kernel 3.11 to avoid sleep switch (Linux)
- Quickly locate the mistakes by gdb location (Programming)
- Ceph performance optimization summary (v0.94) (Server)
- PostgreSQL query lock and kill the process (Database)
- The REVERSE function of DB2 (Database)
- Apache Mina framework Practice (Programming)
- Using DOS command to change UNIX administrator password (Linux)
- Everyone should know something about TCP (Linux)
- Linux Operating System Security Study (Linux)
- Configuring VMWare FreeBSD9.2 remote debugging kernel source code (Linux)
- Java string intern constant pool resolution Introduction (Programming)
- How UTorrent download the ISO image from the command line (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.