Categories
User Guides Documentation exacqVision Server Categories Products

Uninstalling Software on Linux (Ubuntu)

In certain circumstances, such as a broken or mis-configured software package, it may be necessary to uninstall the ExacqVision Server, Client or Web Service software.

On Linux (Ubuntu) this can be accomplished via the Synaptic Package Manager. But if that is not installed or you are unsure how to find or use this, an uninstall can be completed through the Terminal.

  1. Open Terminal by pressing CTRL+ALT+T.<br><br>
  2. Type in the command below for the program you want to uninstall:
    • Server: sudo apt remove edvrserver
    • Client: sudo apt remove edvrclient
    • Web Service: sudo apt remove webservice<br><br>

NOTE: The apt command is a higher level package manager. If you wish to use a lower-level package manager with more options, or are using Ubuntu 14.04 or earlier, use apt-get instead of apt.

NOTE: If using apt-get adding the purge parameter forces removal of program configuration files. An example use with removal of the server application is:
sudo apt-get remove --purge edvrserver

<br>

Categories
User Guides Documentation exacqVision Server Categories Products

Downgrading Software on Ubuntu/Linux OS

Ubuntu/Linux uses the ‘gdebi’ package installer to run .DEB packages. This will automatically check if you are attempting to install an older package than is already installed and warn you if a newer version is already installed. If you choose to downgrade the version of your ExacqVision Server, Client, or Web Service software you will need to perform this from the Terminal.

<br>

If you don’t already have the installer for the previous version you want to change to, you may locate these on our Legacy Downloads page.

  1. Copy the installer of your desired software version to the Desktop.<br><br>
  2. Open Terminal by pressing CTRL+ALT+T.<br><br>
  3. Type the following:
    sudo dpkg -i /pathtofile/filename

    In the place of pathtofile, enter the file path and in the place of filename enter the name of your installer file.
    • An example line would look like: 
      sudo dpkg -i /home/admin/Desktop/exacqVisionServer-8.4.2.111542.deb<br><br>
  4. Press Enter and ‘dpkg’ will perform the install of the previous version, replacing the later version.

<br>

Categories
exacqVision Webservice Linux exacqVision Webservice Windows exacqVision Webservice Windows x64 exacqVision Webservice Linux x64 User Guides Documentation exacqVision Webservice Categories Products

Configuring Nginx or Apache as a Web Service Gateway

Description

The 9.0 release of the web service has replaced Apache with an in-house developed web frontend (WFE) for handling API requests. Certain users may wish to configure a gateway web server to enforce custom policies.

The following provides users with a reference for configuring either Nginx or Apache as a gateway. Additionally, it describes various undocumented settings in the new frontend configuration should the user need to modify them.

<br>

Gateway Configuration

The following sections explain how to set up Nginx or Apache to proxy requests to the web service. For the purposes of this guide, it is assumed the gateway server will be installed on the same machine as the web service and the service is listening on port 8080. The gateway must use a different listening port number than the ExacqVision Web Service.

Note: You may wish to backup the existing host files if they exist.

<br>

Nginx

Edit the virtual hosts file, located in:

Windows:
C:\nginx\conf\sites-available\default

Linux:
/etc/nginx/sites-available/default

with the following configuration:

server {
    listen 80 default_server;
    server_name localhost;

    location / {
        proxy_pass http://127.0.0.1:8080;
    }
}

<br>

Apache

NOTE: The installation directory for Apache on Windows will vary based on how it was installed.

  1. Run the OS-specific command to enable the necessary modules for Apache.

Windows:
Ensure the following lines in <apache install directory>\conf\httpd.conf are UNcommented; they do NOT begin with a ‘#‘.

  • LoadModule proxy_module modules/mod_proxy.so
  • LoadModule proxy_http_module modules/mod_proxy_http.so
  • LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  • LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so<br>

Linux:
Open Terminal, by pressing CTRL+ALT+T and run the following commands:

  • sudo a2enmod proxy
  • sudo a2enmod proxy_http
  • sudo a2enmod proxy_balancer
  • sudo a2enmod lbmethod_byrequests<br><br>
  1. Edit the virtual hosts file with the following configuration:

    <VirtualHost *:80>
        ProxyPreserveHost On

        ProxyPass / http://127.0.0.1:8080/
        ProxyPassReverse / http://127.0.0.1:8080/
    </VirtualHost>

NOTE: You MUST have the ‘/’ at the end of each address, unlike Nginx.<br><br>

  1. Apache and Nginx will require restart before they can accommodate proxy requests.

<br>

Modifying the Web Frontend (WFE) configuration

The configuration for WFE contains several options that are omitted by default. These options can be used to place additional constraints on the web service if necessary.

The configuration file, which is stored as JSON, is located at:

Windows:
C:\ProgramData\Webservice\conf\wfe.json

Linux:
/etc/webservice/wfe.json

If you wish to restrict the service to listen for HTTP requests on a particular NIC, you can do so by specifying the NIC’s address using the webserver.address key:

{
    "webserver": {
        "listen": 8080,
        "address": 192.168.1.115,
        [...]
    }
}

NOTE: If the target is an IPv6 address, you MUST enclose the address in square brackets [ ].

<br>

The same can be done for HTTPS requests with the webserver.tls.address key:

{
    "webserver": {
        "listen": 8080,
        "tls": {
            "listen": 443,
            "address": [fe80::...],
            [...]
        }
    }
}

<br>

The way the web service handles HTTP requests when HTTPS is configured can be controlled with the webserver.tls.httpPolicy key:

{
    "webserver": {
        "listen": 8080,
        "tls": {
            "listen": 443,
            "httpPolicy": (redirect|disable),
            [...]
        }
    }
}

The key can be one of the following values:

  • redirect” will cause HTTP traffic to be redirected to HTTPS
  • disable” will reject any requests not sent over HTTPS

NOTE: This key will only take effect if SSL is configured.

<br>