Server Installation

  1. Start with a clean Ubuntu 18 LTS Server install

  2. Git the lerc files in /opt/:

    cd /opt && sudo -E git clone https://github.com/IntegralDefense/lerc.git
    
  3. Create lerc user:

    sudo adduser lerc
    
  4. Give the lerc user sudo:

    sudo adduser lerc sudo
    
  5. Give lerc full access to /opt/lerc:

    cd /opt && sudo chown -R lerc:lerc lerc
    
  6. Become the lerc user:

    sudo su lerc
    
  7. Run the install script:

    cd /opt/lerc/lerc_server && installer/source_install
    
  8. Chose to either change the default LERC Client group/company name or use the ‘default’ name:

    Do you wish specify the default client group/company name? The default is 'default'.
    1) Yes
    2) No
    
  9. Either supply a password for the MySQL DB or let the install script generate one:

    Generate random password for LERC DB user or supply your own?
    1) Generate
    2) Supply
    
  10. Decide how you want to run the LERC server:

    Running the LERC Server with one interface or two? Choose one if you don't know what you want.
     -- One Interface: Both the LERC clients and analysts (control API) will access this server on the same interface.
     -- Two Interfaces: LERC Clients and analysts (control API) will access their features via different interfaces.
    Choose which interface configuration you want:
    1) One
    2) Two
    

After that completes your LERC server should be running and ready. As part of the installation, LERC Client and LERC Control certificates were generated and placed in the following locations.

Client:

/opt/lerc/lerc_server/ssl/client/

Control:

/opt/lerc/lerc_server/ssl/admin/

These certificate files, and the /opt/lerc/lerc_server/ssl/ca-chain.cert.pem will be needed to configure the LERC Control and LERC Clients.

As an additional security measure, you can safely remove the lerc user from the sudoers file after installation.

LERClient Setup

If you want to build your own client version, feel free. Otherwise, there is a LERC.zip file included in the project repo that contains everything you need to start.

Download the LERC.zip file and extract it. Then, copy the client certificats that were generated by the server installation into that same directory. Next, edit the config.txt file so that the ‘serverurls’ variable reflects your LERC server. For example:

serverurls: https://3.214.24.217/

Run lerc.exe and tail -f /opt/lerc/lerc_server/logs/server.log to see the client fetch.