To install a single instance of KumoReg, skip to Manual Installation below.
Scripts to install a production and training instance of KumoReg and all its requirements on a fresh Ubuntu 18.04 server. X-Y-Z is the version number.
This will install Java, CUPS, MariaDB and overwrite the default configurations.
- Copy kumoreg-X-Y-Z-bundle.tar.gz to the server
- On the server, run:
tar -xzvf kumoreg-X-Y-Z-bundle.tar.gz
cd kumoreg-X-Y-Z
-
Set the database password in:
config/application.properties
config/application-training.properties
and script/database.sql
-
Run
sudo ./install-ubuntu.sh
Kumoreg will be installed in /usr/local/kumoreg
Environment | Port | Service Name / DB user | Database Name | Configuration file |
---|---|---|---|---|
Production | 8080 | kumoreg | kumoreg | /usr/local/kumoreg/application.properties |
Training | 8081 | kumoregtraining | kumoreg_training | /usr/local/kumoreg/application-training.properties |
CUPS | 631 |
Services will be configured to start on boot via SystemD, which also handles logging.
- Go to KumoReg configuration, below.
(Assumes init.d based server)
-
Installation
- Create directory
sudo mkdir /usr/local/kumoreg/
- Build .jar file and copy it to /usr/local/kumoreg/
- Create symlink with
sudo ln -s /usr/local/kumoreg/KumoReg-x.x.x.jar /usr/local/kumoreg/kumoreg.jar
- Create symlink in /etc/init.d
sudo ln -s /usr/local/kumoreg/kumoreg.jar /etc/init.d/kumoreg
- Create directory
-
Securing the application
- Create a user to run the application
adduser kumoreg -r -s /usr/sbin/nologin
- Set KumoReg-x.x.x.jar to be owned by the new user
sudo chown kumoreg:kumoreg /usr/local/kumoreg/KumoReg-*.jar
- Make the .jar file read+execute only
sudo chmod 500 /usr/local/kumoreg/KumoReg-*.jar
- Create a user to run the application
-
Configuration
- Place application.properties file in /usr/local/kumoreg/
- Configure database settings in application.properties
- If printing via printers installed on the server, set kumoreg.printing.enablePrintingFromServer=true in application.properties
- Configure paths for staff data import in application.properties
- Make application.properties read only:
sudo chmod 444 /usr/local/kumoreg/application.properties
- Start service:
sudo service kumoreg start
- Browse to http://servername:8080/
- Log in as admin / password
- Load base data from Utilities > Load Base Data
- If necessary:
- Set up printers in CUPS at https://servername:631 or user the
addprinter
script - Configure Roles under Administration > Roles
- Configure Users under Administration > Users
- Configure Badge Types under Administration > Badge Types
- Map printers and computers under Administration > Computers
- Set up printers in CUPS at https://servername:631 or user the
- Copy any badge resources (background PDFs and fonts) to /usr/local/kumoreg/badgeResource
- Set up staff integration script to write to inbox path specified above