1.2. Installation of binaries on Ubuntu

This section will guide you through installation of pre-compiled binaries on Ubuntu.

Before you start, make sure that all system requirements are met, see System requirements.

You can install the binaries in two ways:

  • download and run our installation script that will take care of everything that needs to be done, or
  • you can follow the installation steps one-by-one manually. The steps basically describe what the script does.


During installation, you will be prompted about Postfix configuration and MS core fonts license agreement.


Remember to set the timezone in PostgreSQL to UTC.

1.2.1. Installation script

To install the FRED and associated software with the installation script, follow this procedure:

# Switch to root
sudo su -
# Download the script
wget https://fred.nic.cz/files/fred/fred-ubuntu-install.sh
# Execute the script
. fred-ubuntu-install.sh

What steps the script takes is explained in the following section.

1.2.2. Installation steps

This section explains the individual steps that are taken by the installation script to install software required for the operation of the FRED.

  1. Switch to root before you begin

    sudo su -
  2. Enable the add-apt-repository command

    apt-get install software-properties-common
  3. Add required repositories

    add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe multiverse"
    add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-updates universe multiverse"
    add-apt-repository "http://archive.nic.cz/ubuntu/"
  4. Add the CZ.NIC signing key to apt and update apt index

    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1C0200016A9AC5C6
    apt-get update
  5. Install the Postfix mail server

    apt-get install postfix
  6. Install the FRED package

    apt-get install fred
  7. Install the database schema of the FRED

    The fred-dbmanager installs table schemas and fills enumeration tables; it does NOT initialize the system with basic data – the latter is described in the System initialization section.

    su - postgres -c "/usr/sbin/fred-dbmanager install"
  8. Enable FRED sites in UWSGI

    ln -s /etc/uwsgi/apps-available/fred-rdap.ini /etc/uwsgi/apps-enabled/
    ln -s /etc/uwsgi/apps-available/fred-webwhois.ini /etc/uwsgi/apps-enabled/
    service uwsgi restart
  9. Enable FRED sites in Apache

    a2ensite 02-fred-mod-eppd-apache.conf
    a2ensite 02-fred-mod-whoisd-apache.conf
    a2enconf fred-rdap.conf
    a2enconf fred-webwhois.conf
  10. Replace mpm-event with mpm-prefork in Apache and restart


    This is a workaround for Ubuntu 16.04.

    The mod-whoisd module is not compatible with the mpm-event Apache scheme that is installed by default, so it must be disabled and replaced with mpm-prefork.

    a2dismod mpm_event
    a2enmod mpm_prefork
    service apache2 restart
  11. Start the FRED services

    service fred-rifd start
    service fred-adifd start
    service fred-pifd start
    service fred-logd start
    service fred-msgd start
    service fred-rsifd start
    service fred-pyfred start
    service fred-webadmin start
  12. Finished. You can test the installation now.


Before you start using the system, you must initialize it.