Since 1.6.7 (at 2012.12.03) site moved to

Afanasy Unix Install

All packages names can slightly vary from one distribution to another, or even does not exists at all. For example on Cent-OS there is no choice whether to install Qt XML module or not, you can to install or not the whole Qt.

  1. Install Required Packages:

    libqt4-core libqt4-gui libqt4-xml libqt4-network libqt4-sql libqt4-sql-psql
  2. Install CGRU and Afanasy Server

    You can download install RPM or deb packages. Or build CGRU and Afanasy yourself.

    • Linux Packages

      See Linux Packages page for description.
      • Download packages from SourceForge and unpack.
      • You need to install cgru and afanasy-server package.
        The simples way is to launch install scripts:
        # ./
        Only on server machine install Afanasy server package:
        # ./
        It is better to install render client on server machine too, to watch its resources.
    • Manual Build

      • Install develop packages.

        There are three ways ( projects / build systems ) to build Afanasy: CMake, QMake, Mxx_ru.
        Choose one, and install.

        Install additional developers packages:
        qt4 - development
        python - development

      • Download CGRU sources.
        $ svn co cgru
        Go to Afanasy sources. Launch a build script.
        $ cd cgru/afanasy/[tag|branch|trunk]/src/project.cmake
        $ ./

      See Setup & Launch page to launch afanasy applications and to use Python module to send jobs.

  3. Postgre SQL

    You don't need to install it on clients. SQL database server is needed for Afanasy server only. It is better to install it on the same host as Afanasy server.

    Database server needed to store jobs, renders, users state. Afanasy reads information from database on start. You can use Afanasy without any database, but server will start with no data. So you can skip this stage if you want just to try Afanasy.

    Database Setup
    • Edit Postgre SQL client authentication configuration file pg_hba.conf.
      Its location depends on Linux distributive. For example:
      Debian, Ubuntu: /etc/postgresql/ [version] /main/pg_hba.conf
      CentOS, Fedora, openSUSE: /var/lib/pgsql/data/pg_hba.conf
      make install:/usr/local/pgsql/data/pg_hba.conf
      Add this line
      local afanasy afadmin password
      Read comments in this file to know what does it mean.
      (If problems with authentication try trust for all methods.)
    • Restart database
    • Create afanasy database and user
      # su - postgres
      $ createdb afanasy
      $ psql afanasy
      CREATE USER afadmin PASSWORD 'AfPassword';
    Create Tables
    • Go into CGRU commands directory:
      $ cd cgru/afanasy/bin
    • Check database connection:
      $ ./afcmd db_check
      Program will output error or print "Database connection is working" if everything is ok.
    • Create required tables:
      $ ./afcmd db_resetall
      This command also delete old tables if they exists.

    Example script for automatic setup:
    There is an example script to install Postgre SQL using apt-get and configure it for Afanasy. It works on Ubuntu, Debian and other debian-like distributives.
    Launch under root:
    # cd cgru/examples/scripts
    # ./

  4. Web Server

    Web server is needed to browse Afanasy SQL database only. So you can skip this stage if you want just to try Afanasy. You don't need to install it on clients. It is better to install it a host with the database.

    If you use Linux packages install afanasy-webvisor package.

    Install additional packages:

    apache2 libapache2-mod-php5 php5 php5-pgsql php5-gd

    The site root directory is located in afanasy/webvisor directory.

Since 1.6.7 (at 2012.12.03) site moved to Project


Libre Graphics World