3.2. Installing Debian packages

At the time of writing Debian packages are available that run with Ubuntu 10.04 LTS (32bit), Ubuntu 12.04 LTS (64bit) and Debian Squeeze (64bit). If you want to install LinOTP on another distribution, you should use the installation way described in LinOTP Server Installation – the tar.gz, virtualenv and pip way.

The LinOTP Debian packages depend on the following software you need to install:

apt-get install python-simplejson python-crypto python-docutils python-sqlalchemy \
                python-pylons python-tempita python-weberror python-webob python-mako \
                python-nose python-decorator python-formencode python-pastescript \
                python-pastedeploy python-paste python-beaker python-webhelpers \
                python-routes python-pygments python-m2crypto apache2 \
                libapache2-mod-wsgi python-repoze.who pwgen python-pyrad

If your users are located in an LDAP or Active Directory you also need to install the python LDAP package:

apt-get install python-ldap

If you will use MySQL or PostgreSQL as either tokenstore or userstore you need to install the corresponding DB module:

apt-get install python-mysqldb python-psycopg2

Install the LinOTP packages:

dpkg -i linotp_2.5.0_all.deb linotpdoc_2.5.0_all.deb \
        linotpuseridresolver_2.5.0_all.deb linotpuseridresolveree_2.5.0_all.deb \
        linotp-ee_2.5.0_all.deb smsprovider_2.5.0_all.deb
Some configuration screens will pop up, when installing the linotp package.
This configuration will take care of creating the logging directory /var/log/linotp and

creating an encryption key /etc/linotp2/encKey.

Note

The encryption key should be backed up to a safe location.

You may rerun the configuration any time by issuing the command:

dpkg-reconfigure linotp

Note

During reconfiguration you are asked, if you want to create a new encryption key. If you do so, you will not be able to read your old data in the token database. But the encryption key is backed up to /etc/linotp2/encKey.old.

If you did not choose to create the token database during the configuration, you may now create the token database as described in section Setup token database.

3.2.1. Installing from APT repositories

The LinOTP components are also available via two apt repositories. You can use this method to install the LinOTP server and also the client components on Ubuntu 10.04 LTS (32bit) or 12.04 LTS (64bit).

Note

You can also use an APT repository to install LinOTP on Debian Squeeze. But as the Virtual Appliance is based on Debian Squeeze we recommend to install the Virtual Appliance, which will set up the repositories as needed.

You need to add these two lines to your /etc/apt/sources.list file:

deb http://linotp.org/apt/ubuntu lucid linotp2ce
deb https://<login>:<password>@customers.lsexperts.de/apt/linotp2/ubuntu lucid linotp2ee

The first repository contains all components of the community edition, the second repository contains the additional components of the enterprise edition.

For installing the the enterprise components, you need to specify the credentials you received with your download information. The packages are signed, using this key https://customers.lsexperts.de/download/LinOTP2/LSE LinOTP2 Packaging linotp2@lsexperts.de (0xF86258E5%5C) pub.asc.

Add it to your system:

apt-key add LSE\ LinOTP2\ Packaging\ linotp2@lsexperts.de\ \(0xF86258E5\)\ pub.asc

You need to enable apt to also talk to HTTPS repositories. Therefor you need to install an additional package:

apt-get install apt-transport-https

Now you need to tell apt to trust the root certificate that signed the certificate of the repository. You may download the CA certificate here:

http://www.trustcenter.de/certservices/cacerts/tc_class2_L1_CA_XI.crt

and put it to some directory. Now you need to create a file /etc/apt/apt.conf.d/99linotp2 with the following content:

Acquire::https::CAinfo  "/your/directory/tc_class2_L1_CA_XI.crt";

to tell apt to trust this very CA certificate.

Now you may install the LinOTP server on your machine like this:

apt-get install linotpuseridresolver linotpuseridresolveree linotp linotp-ee

You may also install the LinOTP management clients from these repositories.