# Installation on Debian/Ubuntu with packages

## Get the packages

If you run Debian testing or unstable, the LemonLDAP::NG packages are directly installable:

    # apt-cache search lemonldap-ng

Packages from Debian repository may not be up to date. Prefer installing Debian packages downloaded from this site.

## Build your package

You can also get the LemonLDAP::NG archive and make the package yourself:

    $ tar xzf lemonldap-ng-*.tar.gz
    $ cd lemonldap-ng-*
    $ debuild

## Install packages with apt-get

    # apt-get install apache2 lemonldap-ng

## Install packages with dpkg

Before installing the packages, install dependencies.

Then:

    # dpkg -i liblemonldap-ng-* lemonldap-ng*

## File location

- Configuration is in /etc/lemonldap-ng
- LemonLDAP::NG configuration (edited by the Manager) is in /var/lib/lemonldap-ng/conf/
- All Perl modules are in the VENDOR perl directory
- All Perl scripts/pages are in /var/lib/lemonldap-ng/
- All static content (examples, CSS, images, etc.) is in /usr/share/lemonldap-ng/

## Change default DNS domain

By default, DNS domain is `example.com`. You can change it quick with a sed command. For example, we change it to ow2.org:

    # sed -i 's/example\.com/ow2.org/g' /etc/lemonldap-ng/* /var/lib/lemonldap-ng/conf/* /var/lib/lemonldap-ng/test/*