Menu

Tree [ba88ed] master /
 History

HTTPS access


File Date Author Commit
 DEBIAN 2023-10-30 Hugh Barnard Hugh Barnard [ba88ed] new config file
 etc 2023-10-27 Hugh Barnard Hugh Barnard [a395f3] tidy up postinst process
 usr 2023-10-30 Hugh Barnard Hugh Barnard [ba88ed] new config file
 .gitignore 2023-10-09 Hugh Barnard Hugh Barnard [b86cbf] from DO
 README.md 2023-10-18 Hugh Barnard Hugh Barnard [54906b] update read me
 install.sh 2023-10-15 Hugh Barnard Hugh Barnard [31d57d] add test for config.conf in testing

Read Me

Cclite2 October 2023

Debian Package Install

sudo apt install ./cclite2_0.1-8.deb

2. Answer the questions, Y for everything is the fullest and easiest installation

sudo su postgres

/usr/share/cclite2/script/build/create-registry.pl

control-D

4. Modify pg_hba.conf in /etc/postgresql... to give your cclite2 user socket access to the database. This may not be necessary in the current release

5. There are is one install currently, that need manual intervention, package is bit broken so it's separated out

sudo apt install gammu-smsd

this will 'fail' on the systemd part but the binary will be installed. If you don't use SMS payment and SMS balance querying, you don't need this at all. Otherwise the script to start this is in /usr/share/cclite2/script:
As of October 2023 there is also an untested gammu_smsd.service installed into /etc/systemd/system

gammu-smsd --config /etc/cclite2/gammu-smsdrc --pid /var/run/gammu-smsd.pid --daemon

this:
sudo sed -i 's|${CMAKE_INSTALL_FULL_BINDIR}|/usr/bin|g' /lib/systemd/system/gammu-smsd.service
should fix the systemd unit, see: https://askubuntu.com/questions/1260261/how-do-i-remove-a-misbehaving-package-using-either-apt-or-apt-get

6. Run the development server:

sudo morbo -l "https://*:443?cert=/etc/cclite2/ssl/certs/cclite2-self-signed.crt&key=/etc/cclite2/ssl/certs/cclite2-self-signed.key" /usr/share/cclite2/script/cclite2

You should now be able to logon, using manager, with password manager you will be prompted to change the manager password immediately

7. If you choose to use prove -lf for testing be aware that it tears down the database pointed at in t/config.conf.
8. This version now has a direct install script here:

sudo ./install.pl

It will do roughly what the package install will do and is not well tested. It is not working well on Centos either.

9. If you want to experiment with intertrading you will need rabbitmq: https://www.rabbitmq.com/install-debian.html#apt

We've chosen this, because it's stable and supports many of the pub/sub protocols. SOAP and cclite's registry <-> is gone
as being clumsy, hard to debug and P2P only.

The web templates are only in English, French and Spanish(machine translation, so imperfect) until spring 2021, they use Mojolicious EPL
but there's much better separation of template and core, this time.

That's it, for the moment. Watch this space.