Colman Step-by-Step Guide 2.0.2
Loading...
Searching...
No Matches
Multi-user operation: server and clients

If several workstations are to work with the same collection at the same time, the database lives on a server machine (for example a Raspberry Pi). The server colman_rest_server provides the collection on the network; the workstations run colman_rest_client, which has the same user interface as the single-user version. The Colman app for Android connects to this server as well.

Starting the server

When started for the first time with a database file that does not exist yet, the server creates the collection and asks for the administrator password:

colman_rest_server --db /srv/colman/school.col --port 8080

On all later starts the same command opens the existing collection. An encrypted collection additionally needs the database password (--key-file or the environment variable COLMAN_DB_KEY).

Warning:
Outside a trusted local network the server must use TLS (--cert and --key); otherwise passwords are transmitted unencrypted.

Logging in at a workstation

Start colman_rest_client. The login page automatically offers servers found on the local network; otherwise enter the server address (e.g. http://server:8080) manually. Log in with your username and password – the first time as admin with the password chosen when the server was started. The server address is remembered for the next start.

Working at the same time

Each workstation regularly asks the server for changes made by other workstations and refreshes its lists automatically. You can set the interval in the program settings under poll interval (REST client) (default: 10 seconds). If another workstation lends an item in the meantime, the displayed available count decreases accordingly.

Tip:
For centrally managed user accounts the server can accept logins via an OpenID Connect provider (e.g. Authentik). The setup and all server options are described in the project README.