Deploying DynFi for Ubuntu 18.04 LTS

Deploying DynFi for Ubuntu 18.04 LTS


This blog post will show you how to get DynFi® running on Ubuntu Server 18.0.4 LTS in less than ten minutes !

You will need to have a basic knowledge of Linux / FreeBSD operating system and CLI (command line interface) and that should do the trick !

In order to go very fast, you can simply copy / paste the highlighted text to your favourite KVM with Linux Ubuntu 18 installed !


1.1. First install Java™ Runtime Environment ver. 11 or above

We have followed the classic install described here :

root@dynfi:~# apt install openjdk-11-jre
Setting up openjdk-11-jre:amd64...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

1.2. Second MongoDB 3.4 or >

It is recommended to follow the steps provided here :

This will get your Mongodb up and running in minutes on Ubuntu 14, 16 or 18. 


1.2.1. Download the gpg key of the repo:

root@dynfi:~# sudo apt-key adv --keyserver hkp:// --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
Executing: /tmp/tmp.3RE24n9pSg/ --keyserver
gpg: requesting key A15703C6 from hkp server
gpg: key A15703C6: public key "MongoDB 3.4 Release Signing Key <>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)


1.2.2. Create a list file for MongoDB:

root@dynfi:~# echo "deb [ arch=amd64 ] bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
deb [ arch=amd64,arm64 ] bionic/mongodb-org/4.0 multiverse


1.2.3. Reload local package database:

root@dynfi:~# apt-get update
Hit:1 bionic InRelease
Hit:2 bionic-updates InRelease             
Get:13 bionic-security/universe DEP-11 64x64 Icons [75,1 kB]
Fetched 367 kB in 1s (290 kB/s)              
Reading package lists... Done


1.2.4. Install the MongoDB packages:

root@dynfi:~# apt-get install -y mongodb-org
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
The following NEW packages will be installed:
mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 66,9 MB of archives.
Setting up mongodb-org-mongos (4.10) ...
Setting up mongodb-org-tools (4.10) ...
Setting up mongodb-org (4.10) ...


1.2.5. Start MongoDB

root@ccm-dc-dynfi:~# sudo service mongod start


1.2.6. Verify that MongoDB has started successfully:


root@dynfi:~# cat /var/log/mongodb/mongod.log
2017-11-08T13:01:28.651-0200 I CONTROL  [initandlisten] MongoDB starting : pid=17314 port=27017 dbpath=/var/lib/mongodb 64-bit host=ccm-dc-dynfi
2017-11-08T13:01:28.651-0200 I CONTROL  [initandlisten] db version v3.4.10
2017-11-08T13:01:28.651-0200 I CONTROL  [initandlisten] git version: 078f28920cb24de0dd479b5ea6c66c644f6326e9
2017-11-08T13:01:28.651-0200 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016
2017-11-08T13:01:28.651-0200 I CONTROL  [initandlisten] allocator: tcmalloc
2017-11-08T13:01:28.651-0200 I CONTROL  [initandlisten] modules: none
2017-11-08T13:01:28.651-0200 I CONTROL  [initandlisten] build environment:
2017-11-08T13:01:28.651-0200 I CONTROL  [initandlisten]     distmod: ubuntu1604
2017-11-08T13:01:28.651-0200 I CONTROL  [initandlisten]     distarch: x86_64
2017-11-08T13:01:28.651-0200 I CONTROL  [initandlisten]     target_arch: x86_64
2017-11-08T13:01:28.913-0200 I INDEX    [initandlisten]      building index using bulk method; build may temporarily use up to 500 megabytes of RAM
2017-11-08T13:01:28.915-0200 I INDEX    [initandlisten] build index done.  scanned 0 total records. 0 secs
2017-11-08T13:01:28.915-0200 I COMMAND  [initandlisten] setting featureCompatibilityVersion to 3.4
2017-11-08T13:01:28.915-0200 I NETWORK  [thread1] waiting for connections on port 27017@


1.2.7. Restart MongoDB:

This is optional - and just for verificaition purposes (can be skipped).

root@dynfi:~# sudo service mongod stop
root@dynfi:~# sudo service mongod restart 
root@dynfi:~# systemctl status mongod
● mongod.service - High-performance, schema-free document-oriented database
Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: 
Active: active (running) since Qua 2017-11-08 13:04:22 BRST; 12s ago
Main PID: 17341 (mongod)
CGroup: /system.slice/mongod.service
└─17341 /usr/bin/mongod --config /etc/mongod.conf

Nov 08 13:04:22 dynfi systemd[1]: Started High-performance, schema-free d@


1.2.8. Enable MongoDB at boot:

If you plan to keep DynFi installed on this server (and we hope you do !), you'll want to have the MongoDB auto-start upon boot !

root@dynfi:~# systemctl enable mongod.service
Created symlink from /etc/systemd/system/ to /lib/systemd/system/mongod.service.@


2. Finally install DynFi:

2.1. Download gpg key

This key is needed in order to access our apt repository

root@dynfi:~# wget
--2017-11-08 20:03:09--
Resolving (
Connecting to (||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1181 (1,2K) [application/octet-stream]
Saving to: ‘dynfi.gpg’

dynfi.gpg                               100%[=============================================================================>]   1,15K  --.-KB/s    in 0s      

2017-11-08 20:03:10 (155 MB/s) - ‘dynfi.gpg’ saved [1181/1181]


2.2. Adding gpg key locally.

root@dynfi:~# apt-key add dynfi.gpg


2.3. Adding DynFi repository to sources.list

root@dynfi:~# echo "deb bionic main" > /etc/apt/sources.list.d/dynfi.list


2.4. Update your repository with DynFi sources:

root@dynfi:~# apt update
Hit:1 xenial InRelease
Get:2 xenial-updates InRelease [102 kB]
Get:3 xenial-backports InRelease [102 kB]                                   
Get:4 xenial-security InRelease [102 kB]                                      
Ign:5 xenial/mongodb-org/3.4 InRelease                                                      
Hit:6 xenial/mongodb-org/3.4 Release                                                        
Get:7 xenial-updates/main amd64 Packages [652 kB]                                
Get:8 xenial-updates/main i386 Packages [617 kB]                                          
Get:10 xenial-updates/main Translation-en [273 kB]                                                                
Get:11 xenial-updates/main amd64 DEP-11 Metadata [308 kB]                                                     
Get:12 xenial-updates/main DEP-11 64x64 Icons [213 kB]                                                          
Get:13 xenial-updates/universe amd64 Packages [544 kB]                                                    
Get:14 xenial-updates/universe i386 Packages [517 kB]                                           
Get:15 xenial-updates/universe Translation-en [221 kB]               
Get:16 xenial-updates/universe amd64 DEP-11 Metadata [174 kB]                 
Get:17 xenial-updates/universe DEP-11 64x64 Icons [245 kB]                      
Get:18 xenial InRelease [4.892 B]                                              
Fetched 4.350 kB in 1s (2.743 kB/s)                    
Reading package lists... Done
Building dependency tree       
Reading state information... Done
7 packages can be upgraded. Run 'apt list --upgradable' to see them.


2.5. Install DynFi:

root@dynfi:~# apt install dynfi
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 40,4 MB of archives.
After this operation, 44,3 MB of additional disk space will be used.
Get:1 xenial/main amd64 dynfi all 17.2.1 [40,4 MB]
Fetched 40,4 MB in 41s (982 kB/s)                                                                                                     

Preconfiguring packages ...
Skipping preconfiguration
Selecting previously unselected package dynfi.
(Reading database ... 249529 files and directories currently installed.)
Preparing to unpack .../archives/dynfi_17.2.1_all.deb ...
Unpacking dynfi (17.2.1) ...
Setting up dynfi (17.2.1) ...
Configuring DynFi
Config file not found
Created symlink from /etc/systemd/system/ to /lib/systemd/system/dynfi.service.


Check that DynFi is correctly enabled:

root@dynfi:~# systemctl status dynfi
● dynfi.service - DynFi Service
   Loaded: loaded (/lib/systemd/system/dynfi.service; enabled; vendor preset: enabled)
   Active: active (running) since Qua 2017-11-08 20:47:18 BRST; 1min 56s ago
  Process: 22681 ExecStartPre=/bin/chown -R nobody:nogroup /run/dynfi/ (code=exited, status=0/SUCCESS)
  Process: 22678 ExecStartPre=/bin/mkdir /run/dynfi (code=exited, status=0/SUCCESS)
 Main PID: 22684 (java)
   CGroup: /system.slice/dynfi.service
           └─22684 java -jar /usr/share/dynfi/lib/dynfi-17.2.1-all.jar --pid-file=/run/dynfi/

Nov 08 20:47:26 dynfi dynfi[22684]: INFO: LoggerImplFactory set to org.mongodb.morphia.logging.jdk.JDKLoggerFactory
Nov 08 20:47:27 dynfi dynfi[22684]: Nov 08, 2017 8:47:27 PM org.mongodb.morphia.mapping.MappedField discoverType
Nov 08 20:47:27 dynfi dynfi[22684]: WARNING: Parameterized types are treated as untyped Objects. See field 'params' on class
Nov 08 20:47:30 dynfi dynfi[22684]: Nov 08, 2017 8:47:30 PM org.glassfish.grizzly.http.server.NetworkListener start
Nov 08 20:47:30 dynfi dynfi[22684]: INFO: Started listener bound to [localhost:9090]
Nov 08 20:47:30 dynfi dynfi[22684]: Nov 08, 2017 8:47:30 PM org.glassfish.grizzly.http.server.HttpServer start
Nov 08 20:47:30 dynfi dynfi[22684]: INFO: [HttpServer] Started.
Nov 08 20:47:30 dynfi dynfi[22684]: Press Ctrl + C to quit the server
Nov 08 20:47:30 dynfi dynfi[22684]: Running with PID 22684
Nov 08 20:47:30 dynfi dynfi[22684]: The URL is: https://localhost:9090


Add DynFi as a startus service :

root@dynfi:~# systemctl enable dynfi


Do some final tuning in the config file /etc/dynfi.conf :

  • Changing the IP of the host
  • verifying ports
  • … 


Restart service once done and you should now be up and running !

root@dynfi:~# systemctl restart dynfi

You should now be able to access your DynFi service using your favourite (and up to date !) browser.

Default port is 9090 (unless you have updated It on the config file), so URL should look something like : http://your.local.ip:9090


2.6. Optional configuration of Nginx to redirect to DynFi services:

You can simply use Nginx to redirect all incoming http & https requests to point to DynFi Manager. 

First you need to install the nginx server.
You can then copy / paste the configuration below (please change the name of the server and IPs). 

Make sure you generate your own SSL certificate or use let's encrypt if you use SSL (highly recommended). 


This setup will allow you to redirect all your requests to the DynFi Manager (to be deployed in /etc/nginx/sites-available/dynfi and simlinked to /etc/nginx/sites-enabled/dynfi ).


server {
        listen 80 default_server;
        listen [::]:80 default_server;
        return 301 https://$server_name$request_uri;

server {
        listen 443 ssl http2 default_server;
        listen [::]:443 ssl http2 default_server;

        location /config.js {
                sub_filter '' 'https://$host';
                sub_filter_types "*";

        location / {

        ssl_dhparam /etc/ssl/certs/dhparam.pem;

        ssl_certificate /etc/ssl/dynfi/bundle.crt;
        ssl_certificate_key /etc/ssl/dynfi/;



About the Author


[url= tok likes free[/url] TikTok is an application that has tik tok followers free replaced - in 2017, was bought for a billion dollars by the owner of TikTok, the Chinese company Bytedance. ... TikTok can be described as a assimilation of Snapchat and Spotify. Users make brusque recordings infected in the manner of well-liked music. According to the tik tok free fans 2020 lawsuit, TikTok likes free is to comprehensive data that can be used to identify, profile and track users in the united States. The Chinese company ByteDance, which owns the application, which is well-liked especially in the middle of teenagers, would plus from these activities, because the obtained data can be used, along with others, for digital advertising targeting purposes. CNet pointed out that the stroke against TikTok is option involve adjoining this application, which has already been downloaded on top of 1.5 billion get older worldwide (data from November 2019). The application is with bodily watched by the US military, which is to audit it in terms of reachable threats to US national security. Is Tik Tok a spy app? This is what the hackers of the Anonymous outfit say. ... Anonymous claims that free tik tok coins TikTok is truly malware subsequent to the primary task of collecting painful sensation addict counsel and passing it on to Chinese unsigned services. TikTok has not yet addressed the tik tok hack 2020 allegations made by no human Anonymous. He since expressed his own doubts roughly the security of the Chinese application, in the midst of others the US government, which banned US troops from using TikTok for distress of confidentiality. KW: TIKTOK Followers Hack Without Verification SEPTEMBER 2020 TIKTOK Hack To Watch Any Movies For Free SEPTEMBER 2020

User login