Installing codebeamer #8689/HEAD / v1651 |
Installing codeBeamer
If upgrading from an older version please refer to
![]()
![]() codeBeamer is shipped with a web container (tomcat), database server (Derby) and on Windows with Subversion, Git and Mercurial (hg). On Linux, Unix, MAC-OS systems the required SCM(s) must be installed via package manager. The installation typically takes 10-15 minutes. The pre-configured Derby database is for evaluation purposes only, and should not be used for production purposes.For addition information Please see:
codeBeamer's server must always be started by the same operating system user to avoid file and database access problems. The server requires read and write file permissions for its own working and temporary files, and for the databases.
codeBeamer's server inherits access permissions from the user who started the server. To avoid permission problems on Linux/Unix systems, it is good practice to create a new operating system user (for example codebeamer) with very restricted access to the file system, and to use this system account to start codeBeamer. In this case, even when there is no restriction specified in the codeBeamer configuration file, a restricted access to the file system is guaranteed on the operating system level. Installation on a Single ServerThis section describes installation on a single server. Client computers do not require codeBeamer installation; their only requirements are that the browser's Cookies and JavaScript should be enabled. To install codeBeamer on your server, first download and execute a single self extract file for your platform. Installation on WindowsAfter downloading the self extract file, you can start the installation by double-clicking on the self extract file. It is strongly recommended installing codeBeamer as Service to ensure that codeBeamer will be running also after the user logged out. Installation on LinuxOn Linux systems, PTC recommends installing and running Codebeamer under a special user account such as codebeamer. Do not install or run codeBeamer as root.If you want to put an Apache Web server in front of codeBeamer (e.g. to access codebeamer via the standard HTTP(S) ports 80 (443) or to access managed Subversion repositories via HTTP protocol), you should install the Apache server for your platform first (see
E.g. on Red Hat Enterprise: sudo adduser codebeamer --ingroup apache Before installing Codebeamer, ensure that the JDK is installed and included in the PATH environment variable of your server. To learn which JDK version is compatible with your Codebeamer version, refer to the PTC Release Advisor
To list the installation options, you can run the installer with the --help parameter, as in the following example:
./MED-61402-CD-340_2-2-0-2_Linux.bin --helpThe command outputs the following information: Makeself version 2.4.2 1) Getting help or info about ./MED-61402-CD-340_2-2-0-2_Linux.bin : ./MED-61402-CD-340_2-2-0-2_Linux.bin --help Print this message ./MED-61402-CD-340_2-2-0-2_Linux.bin --info Print embedded info : title, default target directory, embedded script ... ./MED-61402-CD-340_2-2-0-2_Linux.bin --lsm Print embedded lsm entry (or no LSM) ./MED-61402-CD-340_2-2-0-2_Linux.bin --list Print the list of files in the archive ./MED-61402-CD-340_2-2-0-2_Linux.bin --check Checks integrity of the archive 2) Running ./MED-61402-CD-340_2-2-0-2_Linux.bin : ./MED-61402-CD-340_2-2-0-2_Linux.bin [options] [--] [additional arguments to embedded script] with following options (in that order) --confirm Ask before running embedded script --quiet Do not print anything except error messages --accept Accept the license --noexec Do not run embedded script (implies --noexec-cleanup) --noexec-cleanup Do not run embedded cleanup script --keep Do not erase target directory after running the embedded script --noprogress Do not show the progress during the decompression --nox11 Do not spawn an xterm --nochown Do not give the target folder to the current user --chown Give the target folder to the current user recursively --nodiskspace Do not check for available disk space --target dir Extract directly to a target directory (absolute or relative) This directory may undergo recursive chown (see --nochown). --tar arg1 [arg2 ...] Access the contents of the archive through the tar command --ssl-pass-src src Use the given src as the source of password to decrypt the data using OpenSSL. See "PASS PHRASE ARGUMENTS" in man openssl. Default is to prompt the user to enter decryption password on the current terminal. --cleanup-args args Arguments to the cleanup script. Wrap in quotes to provide multiple arguments. -- Following arguments will be passed to the embedded script
To make upgrading to newer Codebeamer versions easier, PTC recommends creating a symbolic link called CB in the Codebeamer home directory. This symbolic link must point to the current or active version (for example, CB-3.0):
cd /home/codebeamer/ ln -s CB-3.0 CB If you later install a new Codebeamer version, the installer creates a new directory, such as CB-3.1 next to the existing CB-3.0. In this scenario, you can redirect the CB symbolic link to CB-3.1. As a result, all scripts based on the CB symbolic link can continue to operate consistently on the new CB-3.1 version. Installation on DockerPlease refer to DatabasecodeBeamer is shipped with a Derby database that should be used only for evaluation purposes. It is strongly recommended configuring codeBeamer to use with PostgreSQL, MySQL or Oracle.Please refer to the appropriate documentation provided with each codeBeamer version to find out which database versions are supported and how to setup them.
Starting/Stopping codeBeamerWindowsThe codeBeamer server must be started before you can access codeBeamer. If you select to install codeBeamer as a Windows Service (during the Installation), codeBeamer will be automatically started and stopped with the system. To manaully start/stop/restart the service, use the Windows Services Control panel. Only if you did not choose to install codeBeamer as a service, you can start and stop it manually! Programs -> CodeBeamer x.x -> Start CodeBeamer Server To stop the server, use: Programs -> CodeBeamer x.x -> Stop CodeBeamer Server When the server has started, start your browser on the server's URL with: Programs -> CodeBeamer x.x -> Browse CodeBeamer Linux, Unix, MAC-OSFrom shell the commands as below can be used: $ /installdir/bin/startup To stop codeBeamer, type: $ /installdir/bin/stop Starting during System Boot (Linux, Unix)Typically when Linux starts, the codeBeamer service should also start automatically. #!/bin/bash # # Run-level Startup script for codeBeamer # # chkconfig: 345 91 19 # description: Startup/Shutdown codeBeamer CB_HOME="/home/codebeamer/CB" CB_OWNR="codebeamer" case "$1" in start) # startup echo -n "Starting CodeBeamer: " su - $CB_OWNR -c "cd $CB_HOME/bin && $CB_HOME/bin/startup" echo "OK" ;; stop) # shutdown echo -n "Shutdown CodeBeamer: " su - $CB_OWNR -c "cd $CB_HOME/bin && $CB_HOME/bin/stop" echo "OK" ;; reload|restart) $0 stop $0 start ;; *) echo "Usage: $0 start|stop|restart|reload" exit 1 esac exit 0 If necessary, modify the CB_HOME and CB_OWNR variables at the start of the script. Save it. Now to activate the service, execute these commands as root (These commands are for Ubuntu and may be different on other platforms): sudo chmod +x /etc/init.d/codebeamer sudo update-rc.d codebeamer defaults After this the codeBeamer service is set up, and can be started/stopped using the service commands: service codebeamer start service codebeamer stop See next: |
Fast Links
![]() codebeamer Overview codebeamer Knowledge Base Services by Intland Software |
This website stores cookies on your computer. These cookies are used to improve your browsing experience, constantly optimize the functionality and content of our website, furthermore helps us to understand your interests and provide more personalized services to you, both on this website and through other media. With your permission we and our partners may use precise geolocation data and identification through device scanning. You may click accept to consent to our and our partners’ processing as described above. Please be aware that some processing of your personal data may not require your consent, but you have a right to object to such processing. By using our website, you acknowledge this notice of our cookie practices. By accepting and continuing to browse this site, you agree to this use. For more information about the cookies we use, please visit our Privacy Policy.Your preferences will apply to this website only.
Note that user-behavior analytics are being captured on this server for the purpose of improving the Codebeamer user experience.