StuRa:Server/Redmine: Unterschied zwischen den Versionen

Aus Wiki StuRa HTW Dresden
Zur Navigation springen Zur Suche springen
Zeile 48: Zeile 48:
; Installieren von Redmine
; Installieren von Redmine
: <code>pkg install redmine</code>
: <code>pkg install redmine</code>
<!--
<pre>
Running fc-cache to build fontconfig cache...
/usr/local/share/fonts: skipping, no such directory
/usr/local/lib/X11/fonts: skipping, no such directory
/root/.local/share/fonts: skipping, no such directory
/root/.fonts: skipping, no such directory
/var/db/fontconfig: cleaning cache directory
/root/.cache/fontconfig: not cleaning non-existent cache directory
/root/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
</pre>
Keine Schema-Dateien gefunden:Nichts wird getan.
<pre>
===> Creating users and/or groups.
Creating group '_tss' with gid '601'.
Creating user '_tss' with uid '601'.
</pre>
===> Creating users and/or groups.
Creating group 'cups' with gid '193'.
Creating user 'cups' with uid '193'.
<pre>
===> Creating users and/or groups.
Using existing group 'cups'.
Using existing user 'cups'.
</pre>
===> Creating users and/or groups.
Using existing group 'www'.
Using existing user 'www'.
</pre>
<pre>
Message for ruby-2.1.6,1:
====
Some of the standard commands are provided as separate ports for ease
of upgrading:
        devel/ruby-gems:        gem - RubyGems package manager
        devel/rubygem-rake:    rake - Ruby Make
And some of the standard libraries are provided as separate ports
since they require extra dependencies:
        databases/ruby-gdbm:    GDBM module
Install them as occasion demands.
====
</pre>
<pre>
Message for dejavu-2.35:
Make sure that the freetype module is loaded.  If it is not, add the following
line to the "Modules" section of your X Windows configuration file:
        Load "freetype"
Add the following line to the "Files" section of X Windows configuration file:
        FontPath "/usr/local/share/fonts/dejavu/"
Note: your X Windows configuration file is typically /etc/X11/XF86Config
if you are using XFree86, and /etc/X11/xorg.conf if you are using X.Org.
Message for trousers-tddl-0.3.10_7:
To run tcsd automatically, add the following line to /etc/rc.conf
tcsd_enable="YES"
You might want to edit /usr/local/etc/tcsd.conf to reflect your setup.
To use TPM, add your_account to '_tss' group like following:
# pw groupadd _tss -m your_account
</pre>
<pre>
Message for node-0.12.7:
Note: If you need npm (Node Package Manager), please install www/npm.
Message for ghostscript9-9.06_10:
Note: in order to use the script "dvipdf", dvips must be installed.
This program is provided by another package print/tex-dvipsk.
FAPIfontmap and FAPIcidfmap in /usr/local/share/ghostscript/9.06/Resource/Init
have to be configured if you want to use FAPI feature.
</pre>
<pre>
Message for liblqr-1-0.4.1_8:
==========================================================================
NOTE: In order to compile examples for liblqr, you will
also need pngwriter port (/usr/ports/graphics/pngwriter).
Examples are located in /usr/local/share/examples/liblqr-1
==========================================================================
Message for mysql56-client-5.6.25_2:
* * * * * * * * * * * * * * * * * * * * * * * *
Please be aware the database client is vulnerable
to CVE-2015-3152 - SSL Downgrade aka "BACKRONYM".
You may find more information at the following URL:
http://www.vuxml.org/freebsd/36bd352d-299b-11e5-86ff-14dae9d210b8.html
Although this database client is not listed as
"affected", it is vulnerable and will not be
receiving a patch. Please take note of this when
deploying this software.
* * * * * * * * * * * * * * * * * * * * * * * *
</pre>
<pre>
Message for redmine-2.6.3_3:
=============================================================================
Redmine was installed.
You now need to setup your Redmine installation so
please have a look at the Installation Guide.
http://www.redmine.org/wiki/redmine/RedmineInstall
If you are upgrading please read the Upgrading Guide
before starting the new version.
http://www.redmine.org/wiki/redmine/RedmineUpgrade
=============================================================================
</pre>
-->
: <code>pkg install rubygem-passenger</code>
: <code>pkg install rubygem-passenger</code>
: <code>passenger-config --root</code>
: <code>passenger-config --root</code>

Version vom 31. Juli 2015, 04:11 Uhr

Achtung

Dieser Artikel ist ein exemplarischer Artikel.

Es handelt sich hierbei nicht um die Instanz Redmine als AUS vom StuRa. Dazu dienen die Artikel:

Installation

Randbedingungen

OS
FreeNAS 9.3
Paketverwaltung
freebsd-man:pkgng

Vorbereitung der Installation

pauschales Aktualisieren
pkg update; pkg upgrade -y
zsh installieren und in zsh wechseln
pkg install -y zsh; zsh

tatsächliche Installation

Lokalisation prüfen und setzen
(optional) kann sich angeschaut werden welche Werte (für die Einstellungen) gesetzt sind
locale
(optional) kann sich angeschaut werden welche Werte (für die Einstellungen) gesetzt werden können
locale -a
Setzen der Werte für deutsche Lokalisation (de_DE)
Insbesondere für die Programmiersprache Ruby soll das wichtig sein. Das gilt insbesondere, wenn Ruby selbst kompiliert wird.
export LANG=de_DE.UTF-8
export LC_ALL=de_DE.UTF-8
Installieren von benötigten Paketen
Installieren von Redmine
pkg install redmine
pkg install rubygem-passenger
passenger-config --root
Installieren von PostgreSQL
pkg install rubygem-pg
  • client für PostgreSQL sollte bereits installiert sein.
    pkg info | grep postgresql
postgresql93-client-9.3.9
  • pkg install postgresql93-server
Einrichten von PostgreSQL
echo 'postgresql_enable="YES"' >> /etc/rc.conf
Wenn es sich um eine Jail handelt, so muss für PostgreSQL SysV IPC erlaubt sein. Bei FreeNAS muss einfach bei der Jail ,allow.sysvipc=true ergänzend eingetragen werden.
service postgresql initdb
service postgresql start
su pgsql

createdb redminedb
exit

passwd pgsql
Exemplarisch wird nachfolgend davon ausgegangen, dass das Passwort redmine-passwd verwendet wurde.
production:
  adapter: postgresql
  database: redminedb
  host: localhost
  username: pgsql
  password: "redmine-passwd"
  encoding: utf8
echo '/usr/local/www/redmine/log/production.log 644 3 3000 * J' >> /etc/newsyslog.conf