Skip to content
Snippets Groups Projects
Select Git revision
  • f8e54d5b582dcd0ef89a489ef8a9a0aacf08d12b
  • master default protected
  • vxi
  • 0.16.467
  • 0.16.462
  • 0.16.460
  • 0.16.457
  • 0.16.455
  • 0.16.413
  • 0.16.0
  • 0.15.1
  • 0.15.0
  • 0.14.0
  • 0.13.0
14 results

INSTALL.md

Blame
  • Installation

    sudo apt install openjdk-17-jdk-headless

    Standalone version

    tools.deps and tools.build

    clj -T:build clean
    clj -T:build prep
    clj -T:build uber
    java -jar devhub.jar

    systemd

    cd /path/to/devhub
    sudo mkdir /usr/local/share/devhub
    sudo cp devhub.jar /usr/local/share/devhub

    Note:

    Problem: fatal: unsafe repository ('/path/to/repo' is owned by someone else)

    Services (e.g. scripts to be executed with EXECUTE like git log) that need to run under a specific user account (refered to as <user> below):

    add the line User=<user> below the [Service] section of devhub.service.

    sudo cp devhub.service  /etc/systemd/system/
    
    sudo systemctl enable devhub.service
    sudo systemctl start devhub.service

    Check status of devhub service by:

    sudo systemctl status devhub.service
    
    
    ## ● devhub.service - Device Hub Server
    ##      Loaded: loaded (/etc/systemd/system/devhub.service; enabled; vendor preset: enabled)
    ##      Active: active (running) since Sun 2021-06-13 14:59:59 CEST; 8s ago
    ##    Main PID: 579285 (java)
    ##       Tasks: 34 (limit: 8942)
    ##      Memory: 383.6M
    ##      CGroup: /system.slice/devhub.service
    ##              └─579285 /usr/bin/java -Xmx1024M -Xms1024M -jar devhub.jar nogui
    ##
    ## Jun 13 15:00:03 aleph java[579285]:                     \ \
    ## Jun 13 15:00:03 aleph java[579285]:                      > \
    ## Jun 13 15:00:03 aleph java[579285]:                     / ^ \
    ## Jun 13 15:00:03 aleph java[579285]:                    /_/ \_\
    ## Jun 13 15:00:03 aleph java[579285]:      _                  _               _
    ## Jun 13 15:00:03 aleph java[579285]:   __| |   ___  __   __ | |__    _   _  | |__
    ## Jun 13 15:00:03 aleph java[579285]:  / _` |  / _ \ \ \ / / | '_ \  | | | | | '_ \
    ## Jun 13 15:00:03 aleph java[579285]: | (_| | |  __/  \ V /  | | | | | |_| | | |_) |
    ## Jun 13 15:00:03 aleph java[579285]:  \__,_|  \___|   \_/   |_| |_|  \__,_| |_.__/
    ## Jun 13 15:00:03 aleph java[579285]:

    If javascript or Python pre- or postprocessing is needed copy the js and py folder under ./resources to /usr/local/share/devhub.

    sudo cp -r resources /usr/local/share/devhub

    devel install notes

    tcp

    The TCP action works out of the box.

    vxi11

    Use ant (in case ant is missing: sudo apt install ant) to build the jvxi11 jar:

    cd resources
    git clone https://github.com/wactbprot/jvxi11.git
    cd jvxi11
    ant compile
    ant jar

    org/epics/pvioc/pdrv/vxi11/package-tree

    modbus

    modbus works out of the box. The used library is:

    jlibmodbus