Kolab Fedora setup

Table of contents

Goal

to install Kolab on a Fedora system, without installing OpenPKG.

Limitations:


Preparation: Configure Apt

Make sure, apt is installed on your system.

You can download it from [1] (http://dag.wieers.com/packages/apt/), there is also a good explanation (http://dag.wieers.com/home-made/apt/FAQ.php#B2).

changes to /etc/apt/sources.list.d/dag.list: add a DAG mirror close to you; (DAG mirrors (http://apt.sw.be/))

??? <your_closest_Fedora_mirror>: Fedora Mirrors (http://fedora.redhat.com/download/mirrors.html)

Download the GPG key/signature from dag.wieers.com RPM-GPG-KEY.dag.txt (http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt) and install it:

rpm --import RPM-GPG-KEY.dag.txt

run once:

apt-get update

Note about Minimal Kolab System

There are situations, when you don't want amavisd, clamav, postfix, or proftpd in your system. For that reason, my kolab rpms don't have dependencies on those packages.

kolab-horde is optional as well. Postgresql is only required for kolab-horde.


Install the RPMS

apt-get install openldap openldap-servers cyrus-sasl cyrus-imapd
# will also install cyrus-sasl-md5 cyrus-sasl-plain
apt-get install postgresql postgresql-server postgresql-libs
apt-get install httpd php 
#will also install apr expat apr-util curl
#freetype libjpeg libpng php-mbstring php-pear php
apt-get install postfix
apt-get install clamd clamav clamav-db
apt-get install amavisd-new
# will also install arc cabextract freeze lzo lzop ncompress nomarch
# perl-Archive-Tar perl-Archive-Zip perl-BerkeleyDB perl-Compress-Zlib
# perl-Convert-TNEF perl-Convert-UUlib perl-Digest-HMAC perl-Digest-SHA1
# perl-Net-DNS perl-Net-Server perl-Time-HiRes perl-Unix-Syslog
# ripole spamassassin unarc unarj zoo
apt-get install proftpd
apt-get install perl-Cyrus perl-TermReadKey
apt-get install php-domxml php-ldap php-imap php-pgsql
# will also install libgpg-error libgcrypt libxslt libc-client
apt-get install perl-LDAP
# will also install perl-Convert-ASN1 perl-HTML-Parser perl-HTML-Tagset
# perl-URI perl-libwww-perl perl-XML-NamespaceSupport perl-XML-SAX-Base
apt-get install perl-MIME-tools
# will also install perl-Convert-BinHex perl-IO-stringy perl-TimeDate
# perl-MailTools
apt-get install perl-Net-Netmask
pear-date-1.4.3-20050421.i386.rpm
pear-log-1.8.7-20050421.i386.rpm
php-smarty-2.6.9-20050512.i386.rpm
perl-Mail-IMAPClient-2.2.9-1.i386.rpm
perl-kolab-5.8.3-20050503fc2.i386.rpm
kolabd-1.9.4-20050526fc2.i386.rpm
kolab-resource-handlers-0.3.9-20050520fc2.i386.rpm
kolab-webadmin-0.4.0-20050527fc2.i386.rpm
kolab-horde-0.0.1-20050528fc2.i386.rpm

manual installation steps for Horde

# to initialise the db (will automatically run initdb)
/etc/init.d/postgresql start
# edit /var/lib/pgsql/data/postgresql.conf, add line:
# for postgresql 7.x: tcpip_socket = true
# for postgresql 8.x: listen_addresses = '*'
# edit /var/lib/pgsql/data/pg_hba.conf
# local all all trust
# host horde horde 127.0.0.1 255.255.255.255 trust
/etc/init.d/postgresql restart
# setup database tables for horde:
cd /kolab/var/kolab/www/horde/scripts/sql
# edit create.pgsql.sql and change password of user horde (uncomment line as well)
su - postgres
cd /kolab/var/kolab/www/horde/scripts/sql
psql -d template1 -f create.pgsql.sql
psql -d horde -f horde_users.sql
psql -d horde -f horde_prefs.sql
psql -d horde -f horde_datatree.sql

Manually to change Conf Files

To be changed by the user:

You need to uncomment a line in /kolab/etc/kolab/templates/slapd.conf.template:

#include /kolab/var/kolab/www/horde/scripts/ldap/horde.schema


bootstrap kolab (will setup the ldap schema and create keys/certificates)

/kolab/etc/kolab/kolab_bootstrap -b

later, if you change templates, run /kolab/sbin/kolabconf

Available templates:

Start all server programs

/etc/init.d/httpd start
/etc/init.d/ldap start
/etc/init.d/cyrus-imapd start
/etc/init.d/saslauthd start
/etc/init.d/postgresql start