Reviewboard server built under Ubuntu virtual machine

Source: Internet
Author: User
Tags svn client oracle vm virtualbox vm virtualbox

Ubuntu virtual machine under installation Reviewboard

After referring to many materials and actual operation, write down the following more complete Reviewboard installation process.

1. Installing VirtualBox

2. Create a new 64-bit Ubuntu system and install the Ubuntu system, note that do not tick the download Update option, or the installation will fail.

3. Install Python Setuptools

sudo apt-get install Python-setuptools

4. Install Python development headers

sudo apt-get install Python-dev

5. Installing Apache2 and Mod_python

sudo apt-get install apache2 Libapache2-mod-python

sudo a2enmod python

6. Installing memcached

sudo apt-get install memcached

sudo easy_install python-memcached

7. Install Patches

sudo apt-get install patch

8. Install MySQL

sudo easy_install Mysql-python

sudo apt-get install Python-mysqldb

(sudo apt-get install mysql-server python-mysqldb libmemcache-dev)

9. Enter MySQL in command-line mode and type the status command to check the character set:

Server characterset:latin1

Db characterset:latin1

Client characterset:latin1

Characterset:latin1

10. Stop MySQL Server (sudo/etc/init.d/mysqlstop), open/etc/mysql/my.cnf, add [client] Default-character-set=utf8, add [mysqld ] Character-set-server = UTF8

11. Due to different versions, the default is:

Server characterset:latin1

Db characterset:latin1

Client Characterset:utf8

Characterset:utf8

Add only [mysqld] character-set-server = UTF8

12. Restart MySQL to start successfully, and look at the following results:

Server Characterset:utf8

Db Characterset:utf8

Client Characterset:utf8

Characterset:utf8, which represents a successful test.

13. Create a database and log in as root: Mysql-u root–p

mysql> CREATE DATABASE Reviewboard; /* Pay attention to the score number * *

Query OK, 1 row Affected (0.00 sec)

mysql> create user ' reviewboard ' @ ' localhost ' identified by ' Reviewboard '; /* The previous reviewboard is the user name to access the database, and the next reviewboard is the password */

Query OK, 0 rows Affected (0.00 sec)

Mysql> Grant all on reviewboard.* to ' reviewboard ' @ ' localhost '; /* The previous reviewboard is the name of the database, and the next reviewboard is the user name for accessing the database */

Query OK, 0 rows Affected (0.00 sec)

Mysql> exit

14. Install SVN

sudo apt-get install python-subvertpy

sudo apt-get install subversion python-svn

15. If the SVN version is too low, you need to raise SVN to 1.7:

sudo apt-get install patch subversion PYTHON-SVN

sudo apt-get remove subversion

sudo apt-add-repository ppa:dominik-stadler/subversion-1.7

Apt-get Install Python-software-properties

Apt-get Software-properties-common

Svn–version (verified version)

16. Install Reviewboard, the new version of the station will be problematic, so use the 1.7.25 version. First download the 1.7.25 Egg package on the official website, website: http://downloads.reviewboard.org/releases/ReviewBoard/1.7/, use Easy_install to install Egg pack, The installation process will fail several times and can be repeated several times.

17. Create Reviewboard site: sudo rb-site install/var/www/reviewboard.

Domain = localhost

Root Path =/

Media URL = media/

Database Type = MySQL

Database Name = Reviewboard

Database Server = localhost

Database username = root

Database Password = 123456

Cache Type = memcache

Memcache Server = localhost:11211

Webserver = Apache

Python Loader = Modpython Note that the building site will be prompted Modpython no longer updated, recommended Wsgi, but still choose Modpython, otherwise does not match with Apache, resulting in LSB start failure.

As shown, this indicates the success of the station:

18. Modify Directory Permissions:

sudo chown–r www-data/var/www/reivewboard/htdocs/media/uploaded

sudo chown–r www-data/var/www/reviewboard/htdocs/media/ext

sudo chown–r www-data/var/www/reviewboard/data

19. Configure the site to launch Apache.

Cd/etc/apache2/sites-available

sudo cp/var/www/reviewboad/conf/apache-modpython.conf/etc/apache2/sites-available/reviewboard.conf

Cd.. /sites-enabled

sudo a2ensite reviewboard.conf

Sudo/etc/init.d/apache2 restart

20. Enter HTTP://LOCALHOST:80 in the browser, the Reviewboard interface appears, you can register the account used.

21. Use the admin account that was created when the station is built, the admin link will be seen in the top right menu after the administrator login, and then go to the admin page after clicking. You can add group and user.

22. Under Admin, click Open Database entry, add repositories (scmtools), select SVN, and fill in the SVN root directory. Fill in the SVN username and password and click Save.

23. Use Pre-commit Review mode, enter normal user mode, using SVN client, generate patch file.

24. Log in to Reviewboard, create a new review request, enter a relative directory location in base directory, that is, in the root directory of the SVN input, a portion of the directory before the patch file directory, and upload the patch file. Click Create Review request, fill in the summary and other information. Finally click on public submit.

25. Specify the reviewer for review, click View Diff to view the modified files compared to the files in the repository. If there is a problem, you can click on a specific line of code, a green dialog will pop up, fill in the Your comment, and, if necessary, tick open an issue,save. Click Review to fill in the final comments of review and determine whether to tick ship it (meaning review pass, agree to submit. Do not agree to submit the words do not ship it) all completed, you will see a hint above, select Publish End review work.

26. Submit the review request account to see the corresponding review information. Click Closed->submitted, or Discard, to close review request. Complete a request and make a note of the review ID.

27. After SVN submits the modified code and fills in the message message, the message must contain the following format: Review:12, 12 Here is the ID of the review request mentioned earlier, then click OK to complete the commit. The commit succeeds only if the previous review passes.

28.Window browser to connect to the Ubuntu virtual machine, you need to set up a network card. In the Oracle VM VirtualBox Manager interface, select the Reviewboard virtual machine and click Settings. In the Network options connection, select Bridge Network card, use the host's network card.

29. Under Ubuntu System Terminal Input ifconfig-a, view the Ubuntu virtual machine's IP address, the IP address of the network card in a network segment, Setup is complete.

30. Enter the Http://Ubuntu virtual machine ip/localhost in the browser under window to enter the Reviewboard. Enter the Http://Ubuntu virtual machine ip/account/login/to see the login screen.

31. Under the login screen, you can create your own regular account and code review.

Setting up Reviewboard server under Ubuntu virtual machine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.