$ sudo apt-get update
$ sudo apt-get upgrade
|
|
Codebeamer does not require Apache, however, to access Managed Subversion repositories via http and/or https protocols, Apache must be installed.
|
sudo apt-get install apache2 libapache2-mod-jk
$ locale -a | grep -i 'en_US.UTF.*8'
$ sudo locale-gen en_US.UTF-8
$ sudo update-locale en_US.UTF-8
$ sudo apt-get install subversion subversion-tools libapache2-svn
$ svn --version
$ sudo apt-get install git-core
$ git --version
$ sudo apt-get install mercurial
$ hg --version
$ sudo apt-get install sshpass
$ sshpass -V
|
|
It is strongly recommended installing the latest version of PhantomJS available at http://phantomjs.org/download.html.
|
$ sudo apt-get install phantomjs
|
|
deb package maintainer has released PhantomJS 2.1.1 which version will not work on headless environment.
|
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
bzip2 -d phantomjs-2.1.1-linux-x86_64.tar.bz2
tar -xvf phantomjs-2.1.1-linux-x86_64.tar
cp phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
cp phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
export QT_QPA_PLATFORM=offscreen
$ sudo apt-get install texlive-latex-base imagemagick
$ sudo apt-get remove exim4 exim4-base exim4-config exim4-daemon-light
|
|
Codebeamer uses LibreOffice/OpenOffice to import some image formats from MS-Word documents, however, it is not required to install LibreOffice/OpenOffice.
|
$ sudo apt install libreoffice unoconv
$ sudo apt-get remove openoffice*
$ sudo adduser --ingroup www-data codebeamer
Adding user `codebeamer' ...
Adding new group `codebeamer' (1002) ...
Adding new user `codebeamer' (1002) with group `codebeamer' ...
Creating home directory `/home/codebeamer' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for codebeamer
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
|
|
It is not required that codebeamer be granted the use of sudo, however, this guide assumes that.
|
$ sudo usermod -a -G sudo codebeamer
$ su - codebeamer
|
|
To list the installation options, you can run the installer with the --help parameter.
|
$ ln -s /home/codebeamer/CB-8.0.0 /home/codebeamer/CB
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"
URIEncoding="UTF-8"
acceptCount="200"
maxPostSize="-1"
enableLookups="false"
connectionTimeout="80000"
executor="tomcatThreadPool"
></Connector>
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.socket_keepalive=true
worker.ajp13.lbfactor=1
worker.ajp13.connection_pool_size=30
worker.ajp13.connect_timeout=5000
worker.ajp13.prepost_timeout=5000
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# for correct URI encoding
JkOptions +ForwardURICompatUnparsed
JkMount /cb ajp13
JkMount /cb/* ajp13
$ sudo a2enmod jk
$ sudo a2dissite 000-default
|
|
mod_evasive Apache module must be disabled (if enabled) to ensure that remote-api and webdav work properly.
|
$ sudo rm /etc/apache2/mods-enabled/mod-evasive.load
$ sudo service apache2 start
LoadModule dav_svn_module modules/mod_dav_svn.so
# It might be necessary that you have to add the line below to "/etc/sysconfig/apache2"
#APACHE_SERVER_FLAGS=" -D SVN_AUTHZ"
LoadModule authz_svn_module modules/mod_authz_svn.so
#Use the line below if apache cannot load modules/mod_authz_svn.so.
#LoadModule authz_svn_module /usr/lib/apache2/modules/mod_authz_svn.so
# You can find mysql_auth_module at: http://modauthmysql.sourceforge.net
# or http://www.gknw.net/development/apache/httpd-2.0/win32/modules/
# Warning: Comment this line OUT if you would like to use mysql_auth_module!
# LoadModule mysql_auth_module modules/mod_auth_mysql.so
# These modules are necessary to use basic authentication from a file
# managed by Codebeamer
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authz_user_module modules/mod_authz_user.so
<Location /svn>
DAV svn
AuthUserFile "/home/codebeamer/CB/repository/.htaccess"
SVNParentPath "/home/codebeamer/CB/repository/svn/"
# AuthBasicAuthoritative Off # http://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html
# SVNListParentPath on
AuthzSVNAccessFile "/home/codebeamer/CB/repository/acl.svn"
# SVNPathAuthz off
AuthType Basic
AuthName "Subversion Repository"
Require valid-user
</Location>
$ sudo a2enmod cb_svn
$ sudo service apache2 restart