Skip to content

Installing JQM

jackpay edited this page Jan 29, 2020 · 6 revisions

This documentation refers to JQM version 2.2.1

Specific documentation for this version can be found here. https://jqm.readthedocs.io/en/jqm-all-2.2.1

Download JQM

wget https://github.com/enioka/jqm/releases/download/jqm-all-2.2.1/jqm-2.2.1.tar.gz

Unpack into an appropriate location

(e.g. ~/Documents/jqm)

tar xvf jqm-2.2.1.tar.gz

Set JQM global variables

Edit and add these lines to your bash_profile or similar.

export JQM_ROOT='<PATH-TO-JQM>/jqm-2.2.1'

export PATH=JQM_ROOT/bin:$PATH

Configuring JQM to use postgres

  • Open file $JQM_ROOT/conf/resources.xml.
  • Comment out all except the postgres 'resource' configuration.
  • Install the latest postgres JDBC driver.
  1. Download from here https://jdbc.postgresql.org/download.html.
  2. Add JDBC driver to $JQM_ROOT/ext.

Configure postres

  1. Login to postgres as postgres.

psql -U postgres

  1. Run the following:

create database jqm template template1;

create user jqm with password 'jqm';

grant all privileges on database jqm to jqm;

Creating nodes

  • Most operations are communicated to JQM either using the provided jqm.sh script or the Admin console (described below).
  • Nodes are created in JQM using the call ./jqm.sh createnode.
  • To specify the name of the node the global variable JQM_NODE must be set (otherwise a default name is used, which is typically the current user login-name).

export JQM_NODE=<NODE_NAME>

./jqm.sh createnode

Clone this wiki locally