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.
Install Required Packages:
libqt4-core libqt4-gui libqt4-xml libqt4-network libqt4-sql libqt4-sql-psql
Install CGRU and Afanasy Server
You can download install RPM or deb packages.
Or build CGRU and Afanasy yourself.
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
# ./setup_pgsql.sh
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.
|