Installing Fedora Directory Server on Ubuntu 5.10 and Debian Sarge

December 18, 2006 at 3:31 pm | Posted in Debian, Fedora Directory Server, Kubuntu, Ubuntu | Leave a comment

This document describes howto install the Fedora Directory Server (FDS) on Ubuntu 5.10 (Breezy Badger) or Debian GNU/Linux Sarge. I presume you already have done a minimal installation of the OS of choise. Most steps to Ubuntu and Sarge are equal, however this howto is base on the installation of the ‘sudo’ package. As an alternative you can ‘su -‘ on Debian and skip the sudo part of the commands.

Get the software

Download a prebuild rpm from Download. Choose the version suitable for Fedora Core 3 and RHEL4. For Debian GNU/Linux Sarge the rpm for RHEL3 is required (Ubuntu has libc6 version 2.3.5 while Sarge has version 2.3.2).

For Dapper Drake (libc 2.3.6) use the Fedora Core 4 RPM.

Install alien-package

Alien is a tool that supports converting software in ‘rpm’ format to ‘deb’ format.

sudo apt-get install alien

Build the fedora-ds .deb package

sudo alien /YOURPATH/fedora-ds-1.0.1-1.RHEL4.i386.opt.rpm (Ubuntu)
sudo alien /YOURPATH/fedora-ds-1.0.1-1.RHEL3.i386.opt.rpm (Debian Sarge)
sudo alien /YOURPATH/fedora-ds-1.0.2-1.FC4.i386.opt.rpm (Ubuntu Dapper)

Build dependencies

The Fedora Directory Server needs ‘’, so install it.

sudo apt-get install termcap-compat

Install the Sun Java SDK or JRE version 1.4.2. Don’t forget to set the JAVA_HOME and PATH variables! The admin-server of FDS depends on Apache2 compiled conform the worker model, so let’s install it

sudo apt-get install apache2-mpm-worker

As Fedora calls the daemon ‘httpd’ while Ubuntu calls it ‘apache2′ (like Debian), we want to create a symbolic link to satisfy FDS’ setup utility.

sudo ln -s /usr/sbin/apache2 /usr/sbin/httpd

Ubuntu Dapper Drake Packages

The necessary termcap-compat package does not seem to be available for Dapper but the one from Breezy is reported to work fine. termcap-compat depends on the libc5 and ldso packages which aren’t available for Dapper either. You can get the Breezy-version of these packages at

Ubuntu x86_64

sudo dpkg -i /YOURPATH/fedora-ds_1.0.1-2_i386.deb

Create a user and group for the daemon

sudo groupadd fds
sudo useradd -s /bin/false -g fds fds

Run the setup program

Now we want to configure the FDS. As the setup utility won’t find the Apache2 modules on Debian/Ubuntu by default, we’ll have to help it. First we’ll create an install.inf file by running the setup utility with the ‘-k’ option.

sudo /opt/fedora-ds/setup/setup -k

The termcap-compat package is required for installation of fds on Ubuntu and Debian. Unfortunately, this package is not available for the x86_64 platform. In order to install fds on a Ubuntu Dapper x86_64 xen-U this workaround seems to work for me:

* Get the termcap-5.4-4.noarch.rpm and libtermcap-2.0.8-41.x86_64.rpm package from the Fedora Core 4 x86_64 distribution.
* Convert these two packages to .deb and install them (dpkg -i).

Install .deb package

Choose ‘1’ for as minimal questions as possible. Choose ‘fds’ when asked which user and group apply. After finalizing the setup wizard the directory server itself will be started as user ‘fds’. It listens on the port you just configured (i chose port ‘389’, the default LDAP-port). When done, copy the install.inf file to /opt

sudo cp /opt/fedora-ds/setup/install.inf /opt
sudo chmod 640 /opt/install.inf

Then add this rule to the [admin] section of the file:

ApacheRoot= /usr/lib/apache2

Afterwards rerun the setup utility with the following options:

sudo /opt/fedora-ds/setup/setup -s -f /opt/install.inf

This will generate the required start/stop scripts for apache.

Adjust the admin-server’s httpd.conf

We have to make some changes to the ‘/opt/fedora-ds/admin-serv/config/httpd.conf’ file. Some modules do not have to be loaded as they are compiled in statically. So outcomment these lines:

#LoadModule access_module /usr/lib/apache2/modules/
#LoadModule auth_module /usr/lib/apache2/modules/
#LoadModule log_config_module /usr/lib/apache2/modules/
#LoadModule env_module /usr/lib/apache2/modules/

#LoadModule setenvif_module /usr/lib/apache2/modules/
#LoadModule mime_module /usr/lib/apache2/modules/

#LoadModule negotiation_module /usr/lib/apache2/modules/
#LoadModule dir_module /usr/lib/apache2/modules/

#LoadModule alias_module /usr/lib/apache2/modules/

Now try to start the admin-server

sudo /opt/fedora-ds/start-admin


Leave a Comment »

RSS feed for comments on this post. TrackBack URI

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

Blog at
Entries and comments feeds.

%d bloggers like this: