OS requirements :
Recommended versions are Debian 9 and Debian 8 (if you are on Debian 7 you will need to add the testing repo in /etc/apt/sources.list)
Starting from Datafari 4.1, Datafari does not embed its own Java component. You need to have a Java JRE 8 (or JDK 8) installed on your environment (and you need to set the JAVA_HOME variable for all users and have the java executable in the PATH). To set it, we recommend to set it in /etc/profile :
Code Block |
---|
# For example if you want OpenJDK JRE 8
apt-get install openjdk-8-jre
# Set Java Home
nano /etc/profile
#in the file add the line :
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
# Load the file
source /etc/profile |
For now, Java 8 is the only version of Java supported by Datafari
Debian/Ubuntu environment : requires unzip, sudo, libc6-dev, jq, lsof
Code Block |
---|
apt-get install curl debconf unzip sudo libc6-dev jq lsof netcat -y |
Datafari needs Python v 2.7.x. !! If you have only Python v3, please install Python2 (for Ubuntu 16.04 for example, install the package python-minimal)
Code Block |
---|
apt-get install python -y |
Needs a user member of the sudo group to start Datafari (or can be root user) :
Code Block |
---|
visudo
# add the line below root ALL=(ALL:ALL) ALL
your_user ALL=NOPASSWD: ALL |
Make sure that the machine is always uptodate (in particular for the email alerts scheduler), by enabling:
Code Block |
---|
ntpdate 0.fr.pool.ntp.org |
Set the locale setting (in the example with fr_FR but can be replaced with your locale) :
Code Block |
---|
apt-get install locales
locale-gen fr_FR.UTF-8
dpkg-reconfigure locales |
If you still have an error like "perl: warning: Setting locale failed."
Do the additionnal steps :
check the sshd configuration :
Code Block |
---|
nano /etc/ssh/sshd_config |
and comment the line :
Code Block |
---|
#AcceptEnv LANG LC_* |
Then relaunch the sshd service :
Code Block |
---|
/etc/init.d/ssh restart |
Add the locale variables to .bashrc configuration file :
Add the lines :
Code Block |
---|
export LC_ALL="fr_FR.UTF-8"
export LANG="fr_FR.UTF-8"
export LANGUAGE="fr_FR.UTF-8" |
For PostgreSQL :
PostgreSQL needs to have the variables LANG and LC_* set. To check them, launch the command :
If LC_ALL and LC_TYPE are not filled, enter this (for English language):
Code Block |
---|
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
|
You can also add the line to /etc/profile then.
For OS X users : if you obtain the message : Cannot set LC_CTYPE to default locale: No such file or directory when you launch locale command, it might be because your terminal automatically sets environment variables when you log in from Mac to a Linux server : see https://askubuntu.com/a/778672. To turn if off, uncheck the checkbox here :
In iTerm it's in the profile -> Terminal tab.
In Terminal, it's in the Terminal -> Preferences -> Profiles -> Advanced tab
Increase Open Files limit configuration
For Debian, change the setting in /etc/security/limits.conf
:
Code Block |
---|
root soft nofile 100000
root hard nofile 100000
* soft nofile 100000
* hard nofile 100000
root soft nproc 100000
root hard nproc 100000
* soft nproc 100000
* hard nproc 100000 |
Then reboot the machine to enable those parameters
Set the timezone if needeed :
Check the local zonetime that matches your region in /usr/share/zoneinfo. Then create a symlink from /etc/localtime (example here with Paris time) :
Code Block |
---|
sudo rm /etc/localtime
sudo ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime |
For Redhat/Centos :