2. Installing DynFi on Ubuntu¶
Installing DynFi on Premise in Ubuntu consist of a few easy steps.
Please make sure you have Java >= 8 installed in your system and MongoDB >= 3.4 available (can also be installed in your system).
2.1.1. Checking Java¶
In your Command Line Interface (CLI) or “terminal” run the following:
The expected output might look like this (yours might be different):
openjdk version "1.8.0_131" OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11) OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
If systems responds with something similar to:
bash: /usr/bin/java: No such file or directory
it means that Java is not installed in your system.
There are many ways to install Java 8 in your operating system. One of them is to install OpenJDK:
sudo apt-get install openjdk-8-jre-headless
2.1.2. Checking MongoDB¶
To run DynFi requires MongoDB as well. It can be installed on the same machine where DynFi runs or it can be on another host available in your network.
If you would like to install MongoDB on your host, you can follow this tutorial.
You can connect to your MongoDB to check its version like this:
mongo --eval "db.version()"
Make sure that the line
MongoDB server version shows at least version 3.4. The output might look like this:
MongoDB shell version v3.4.6 connecting to: mongodb://127.0.0.1:27017 MongoDB server version: 3.4.6 3.4.6
2.2. Installing DynFi using APT repository¶
Once you have Java 8 working in your system and MongoDB accessible in your network (installed at the shame host for example), you can install DynFi using these simple commands:
wget -q -O - http://archive.dynfi.com/dynfi.gpg | sudo apt-key add - echo "deb http://archive.dynfi.com/ubuntu `lsb_release -cs` main" | sudo tee /etc/apt/sources.list.d/dynfi.list sudo apt-get update sudo apt-get install -y dynfi
During the installation you will see a configuration wizard which will guide you through creating default config file
/etc/dynfi.conf with basic settings. (Refer to Configuration for more details.)
Selecting <Save> button will finish the installation process and start DynFi at selected IP and port.
If you do not see the wizard, then you do not have Java >= 8 installed properly.
Now you can configure your DynFi if needed (see Configuration chapter) and enjoy your DynFi (see First steps with DynFi chapter). In case of need for some troubleshooting you can read the Logs chapter.
2.3. Upgrading DynFi¶
If you have installed DynFi using the above procedure, it will be upgraded along with any other packages when you decide to update your Operating System.
If you wish to upgrade DynFi only, this is possible with:
sudo apt-get update && sudo apt-get install -y dynfi