Installation
Before you install the software, make sure you meet the following requirements:
- you have at least a few GB of storage for the data. 
- your networking environment does not block TCP connections between components. 
The installation procedure covers the server and the agents.
Server
The server binary is distributed as both deb and rpm packages. First of all, you need to download the server installation package for your platform and architecture. If you want to serve the workstation application from the Flopsar server, download flopsar-workstation.zip file too. For Debian based distributions you can install it by executing the following command:
# dpkg -i flopsar-server-<VER>.<arch>.debFor Red Hat based distributions you can install it by executing one of the following commands:
# rpm -ih flopsar-server-<VER>.<arch>.rpm
# zypper install flopsar-server-<VER>.<arch>.rpm
# yum install flopsar-server-<VER>.<arch>.rpmIn both cases, the installation procedure performs the following operations:
- installs - flopsar-serverbinary
- creates a - flopsaruser, which is used to run the server
- adds a - flopsar- systemdservice
- creates a global configuration at - /etc/flopsar
Environment Installation
When the server is installed, next you need to create a new Flopsar environment where the data will be stored. You have two options at your disposal, either bundled environment or separated one.
Copy flopsar-workstation.zip to your destination machine. Now, you need to create a new Flopsar environment by executing the following command:
$ flopsar-server create --app flopsar-workstation.zip <server_home>where <server_home> is a path to the location where the server home directory will be created. If the command executes successfully, it will create a new directory at the specified path. 
You need to create a new Flopsar environment by executing the following command:
$ flopsar-server create <server_home>where <server_home> is a path to the location where the server home directory will be created. If the command executes successfully, it will create a new directory at the specified path. 
Note, since the workstation application is not served from the Flopsar server in this case, you need to download the flopsar-workstation.zip file and install it on your own web server. 
For example, in nginx web server you should add the following location sections to your server configuration:
server {
  .....
  location / {
    try_files $uri $uri/ =404;
  }
  location /api/ {
    proxy_pass http://localhost:9443;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
  }
 
  ....
}The example above assumes that the Flopsar server listens to requests on localhost:9443 socket address and the Flopsar server has its ssl.enable configuration option value set to false. Obviously, you should adjust the proxy_pass option to your own needs according to the server configuration.
If you start the server using systemd, note that it will run it as flopsar user by default. Make sure this user has read/write permissions to the environment directory.
Server Configuration
The server stores its configuration globally in /etc/flopsar/settings.yml file. You must edit this file to make at least two changes. The first one is required and you must accept the EULA by setting option eula: true otherwise, you will not be able to run the server. The second one is to set the data option, which points to you environment directory.
Running the Server
Finally, you can start the server by executing the following command:
# systemctl start flopsarIf you installed the workstation application bundled with the Flopsar Server, then you can access the application at the address specified at the server configuration. If you installed the workstation application outside the Flopsar server, you can access it at the address specified in your web server configuration. In either case, you should be able to access the workstation application login page at the address: https://<YOUR_IP>:9443

Quick Sample Installation
This section presents a sample, quick installation of the Flopsar server. First download the installation package along with the workstation application. Next, execute the following command:
$ sudo dpkg -i flopsar-server-5.0.0.amd64.debor if you use rpm package:
$ sudo rpm -i flopsar-server-5.0.0.x86_64.rpmNext, let's create a new Flopsar environment at /opt directory:
$ sudo flopsar-server create --app flopsar-workstation.zip /opt/flopsarIf the environment has been created successfully, the following output should be displayed:
 Creating a new Flopsar Server environment...
 Unpacking Flopsar Workstation application...
 Flopsar Server environment created successfully.Next, change the ownership of the environment directory to flopsar user:
$ sudo chown -R flopsar /opt/flopsarNext, open the /etc/flopsar/settings.yml file:
eula: false
data: /change/me
agent:
  server_ip: 0.0.0.0
  server_port: 9000
ui:
  server_ip: 0.0.0.0
  server_port: 9443
ssl:
  enable: true
  cert: ssl/server.crt
  key: ssl/server.pem
logger:
  max_size: 50.00 MiB
  max_files: 5
archive:
  enable: false
  policy: purge
  start_at: 03:00:00.0
  retention: 3days
and make changes in both eula and data options (line nr 1 and 2):
eula: true
data: /opt/flopsar
agent:
  server_ip: 0.0.0.0
  server_port: 9000
ui:
  server_ip: 0.0.0.0
  server_port: 9443
ssl:
  enable: true
  cert: ssl/server.crt
  key: ssl/server.pem
logger:
  max_size: 50.00 MiB
  max_files: 5
archive:
  enable: false
  policy: purge
  start_at: 03:00:00.0
  retention: 3days
And finally, start the server:
$ sudo systemctl start flopsarNow, you should be able to access the workstation application at https://localhost:9443
Agent
To install the agent, follow carefully the instructions below:
- select the agent library file for your platform and architecture. 
- copy the agent library to your server machine. 
- create a directory (we call this directory a Flopsar home directory) and - extsubdirectory for the agent data.
- configure the agent. 
- optionally put all your agent plugins into the - extdirectory.
- restart your application. 
Last updated
