Installing Kolab Groupware Server for E-mail and Calendars on Ubuntu 6.06

December 18, 2006 at 3:31 pm | Posted in Groupware, Kolab, Kubuntu, Ubuntu | 1 Comment

Currently (as of Kolab 2.04), the included OpenPKG software does not compile correctly with GCC 4, which is shipped with Ubuntu 6.06 When a new Kolab version is released that is based on the OpenPKG 2.5 platform, all should work ok using gcc 4.0, but for now, you’ll need gcc 3.3 or gcc 3.4.

So, here is what you should do to get things going:

sudo apt-get install lynx unzip fetchmail openssh-server bison flex g++-3.3 gcc-3.3 make shtool
cd /usr/bin
rm gcc
ln -s gcc-3.3 gcc
rm gccbug
ln -s gcc-3.3 gcc
rm gccbug
ln -s gccbug-3.3 gccbug
ln -s g++-3.3 g++
cd /usr/bin/gcc
rm /usr/bin/gcc
rm /usr/bin/g++
ln -s /usr/bin/gcc-3.4 /usr/bin/gcc
ln -s /usr/bin/g++-3.4 /usr/bin/g++

Check the ooo docs in cvs

There are documents in the kolab cvs:

KDE Client and Server Setup (How to configure Kontact for using Proko2’s functionalities / Configuration and description of the Kolab2 server functionalities)

Download a snapshot

There are regular snapshots available from the mirrors – fetch all the files from the latest -full snapshot or the current directory, and save them to a temporary directory on your local machine. The following would fetch the Kolab2 release:

mkdir kolabtemp
cd kolabtemp
wget -r -l1 -nd –no-parent
sh obmtool kolab

Install kolab in openPKG environment

The default is to install to the directory /kolab, you can link this to /usr/local/kolab if you want to, this is not needed though. Another option is to mount /kolab on a seperate disk or raid array: And you should create kolab directory as below:

mkdir /usr/local/kolab
ln -s /usr/local/kolab /kolab

If you plan on using the Kolab Webclient (Horde) its dependencies are most easily satisfied by modifying the obmtool.conf before you build Kolab! Add the following lines to the conf file (from and make sure to download the corresponding MySQL src rpm (for example ) into your install directory if you want to install MySQL via the Kolab OpenPKG environment. Be sure to change the mysql version number and release number in the @install command below.


[note: This will only work if you are installing Kolab from source, not from binary rpm’s]

+ @install ${loc}mysql-4.VERSION.NUMBER-RELEASE.NUMBER
@install ${altloc}apache-1.3.31-2.2.1_kolab \
–with=mod_auth_ldap \
–with=mod_dav \
–with=mod_php \
–with=mod_php_zlib \
–with=mod_php_gdbm \
–with=mod_php_gettext \
–with=mod_php_imap \
–with=mod_php_openldap \
–with=mod_php_xml \
–with=mod_php_dom \
+ –with=mod_php_mysql \
–with=mod_ssl \
@install ${loc}php-4.3.9-2.2.2 \
–with=zlib \
–with=gdbm \
–with=gettext \
–with=imap \
–with=openldap \
–with=pear \
–with=xml \
–with=dom \
–with=ssl \
+ –with=mysql \

Once you have all the files, check the following:

* that you have bison and flex installed
* that you have SELinux turned off (or set to non-enforcing) if your system has SELinux.

Then run obmtool as a priviledged user (usually root) to set up kolab in the openPKG environment:

sh obmtool kolab

or do

chmod +x obmtool
./obmtool kolab

This will start the installation. It rebuilds the openpkg sources for your machine, and makes and installs rpms with a special openPKG rpm (this way the openPKG rpms do not conflict with your current systems rpms, and are kept on a different database) It can take a couple of hours to finish this installation, so fetch some more coffee and check every now and then to see how its doing (gentoo users will know and love this)

The total installation needs around 750MB (this is without the sources, add another 200MB if you have the sources on the same partition). The build can be followed by the logfiles in /tmp, the logfiles are prefixed with obmtool.

To determine the number of packages to be installed use:

grep @install obmtool.conf | wc -l

The order of packages can be installed with:

grep @install obmtool.conf | sed s,.*\},,

If the installation goes smoothly, you should end up with a summary of the installed packages, the default directory for installation is /kolab. If it all goes wrong, you can try some of these: The script create 3 users account and uses the account kolab to compile the packages. On Mandriva 2006 the kolab users does not have enough access right (depending on the security policy chosen during installation). So you must do a chmod on cc and gcc (for example “chmod 666 /usr/bin/gcc”). Also verify that you turn off the hourly security check of mandriva (using drakconf). This resolved the problem “C compiler cannot create executables”.

Check that GCC is installed as it is used to rebuild both Kolab and openPKG.

Initial Configuration

You now should have a /kolab directory, but you are not quite finished. You still need to run a few commands to get it working. kolab_bootstrap , openpkg rc is used for starting and stopping the openPKG services.

/kolab/etc/kolab/kolab_bootstrap -b

The script will check if there are any conflicting services already running on your machine and die if there are (ie you can’t have postfix running on your machine and then try to run it under openpkg at the same time). If you have any conflicting services, stop them, and make sure they do not restart on reboot or init change. If all services are ok, it will ask some questions to configure your server, the questions are self explanitory, go through this setup carefully to set the basic configuration of your kolab2 server.

Start Using kolab

/kolab/bin/openpkg rc all start

This starts all the kolab2 services, you should see amavisd, apache, clamav, imapd, kolab, openldap, openpkg, postfix, proftpd, sasl, spamassassin all start.

All done! You can now go to https://hostname.of.machine/admin/ (replace hostname.of.machine with your machines full domain name) and log in with username manager and the password you supplied during initial setup.

To localise the web interface :

You need to edit /var/lib/locales/supported.d/local to add line : “fr_FR ISO-8859-1” for french (adapt to your own language). After that do :

dpkg-reconfigure locales

A reboot maybe necessary.


1 Comment »

RSS feed for comments on this post. TrackBack URI

  1. […] Install Kolab on Ubuntu […]

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at
Entries and comments feeds.

%d bloggers like this: