Table of Contents
This chapter describes the ways of installing AddUser-NG
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 “cdk” User Interface (Debian package: libcdk-perl)
Quota, if you intend to use “Quota” plugin (Debian package: libquota-perl)
In order to install AddUser-NG from the source, follow these steps:
Get the most recent program sources. You can do this in the traditional way:
from the WWW of this project: http://adduser.linux.pl/download/
using an anonymous ftp: ftp://ftp.adduser.linux.pl/
or by an anonymous access to BitKeeper repository :
bash$ bk clone bk://bk.adduser.linux.pl/stable AddUser-NG
In case when sources were downloaded via www or ftp, unpack them in this way:
bash$ bzcat AddUser-NG-current.tar.bz2 | tar x
Change directory to the source directory:
bash$ cd AddUser-NG
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
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