Chapter 2. Installation

Table of Contents

Installing from the source
Requirements
Installation
Debain GNU/Linux packages installation

This chapter describes the ways of installing AddUser-NG

Installing from the source

Requirements

Before you start the installation, you must install the following perl modules:

  • Config::IniFiles (Debian package: libconfig-inifiles-perl)

  • Getopt::Mixed (Debian package: libgetopt-mixed-perl)

  • XML::Simple (Debian package: libxml-simple-perl)

  • Term::ReadLine::Gnu (Debian package: libterm-readline-gnu-perl)

and also:

  • Cdk, if you intend to use “cdkUser Interface (Debian package: libcdk-perl)

  • Quota, if you intend to use “Quota” plugin (Debian package: libquota-perl)

Installation

In order to install AddUser-NG from the source, follow these steps:

  1. Get the most recent program sources. You can do this in the traditional way:

  2. In case when sources were downloaded via www or ftp, unpack them in this way:

    bash$ bzcat AddUser-NG-current.tar.bz2 | tar x
                                

  3. Change directory to the source directory:

    bash$ cd AddUser-NG
                                

  4. Next, execute as root user:

    bash# make
                                

    It will install the program and its files onto your system.

    By default the directory where files are installed is /usr, so the main executable will be placed in /usr/sbin/adduser-ng. You can change this by setting the PREFIX when executing make command, like this:

    bash# make PREFIX=/usr/local
                                    

    it will install program in /usr/local/sbin/adduser-ng.

    For the configuration files we have a simmilar situation. By default prefix is set to /, so the configuration files are installed in /etc/adduser-ng. We can change this by using CONFIG_PREFIX option, while installing, like this:

    bash# make PREFIX=/usr/local CONFIG_PREFIX=/usr/local
                                    

  5. Note

    AddUser-NG has also additional plugins, and full documentation (during the installation only plugins' documetation is installed)

    If you want to have additional plugins installed, use command (also as root):

    bash# make install_all_plugins
                                

    Of course, if you wish, you can use other PREFIX value.

    In order to install the entire documentation, type:

    bash# make install_docs