sudo apt install openjdk-17-jdk-headless
clj -T:build clean
clj -T:build prep
clj -T:build uber
java -jar devhub.jar
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
The TCP
action works out of the box.
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
works out of the box. The used library is: