CurveEncoder
Jump to navigation
Jump to search
Curve Encoder Application[edit | edit source]
Install python3[edit | edit source]
This software requires python3.5. Install it:
Ubuntu 12.04, 14.04[edit | edit source]
sudo add-apt-repository ppa:fkrull/deadsnakes sudo apt-get update sudo apt-get install python3.5 python3.5-venv
Ubuntu 16.04[edit | edit source]
Python 3.5 is already installed! Just need a:
sudo apt install python3.5-venv
on the reader (FIDO only)[edit | edit source]
opkg install python3 python3-modules python3-pyvenv
Create python3 venv[edit | edit source]
Next, create a venv for running the software. Read about virtualenv: https://virtualenv.pypa.io/en/stable/
pyvenv-3.5 py3.5-venv source py3.5-venv/bin/activate
On the reader: create the venv in /opt/venv/
cd /opt/ pyvenv-3.5 venv source venv/bin/activate
Install dependencies[edit | edit source]
pip install -r requirements.txt
Check out source code[edit | edit source]
cd /opt/ svn co http://svn.crm.ventureresearch.com/svn/linux/py3apps/curveencoder cd curveencoder
Install systemd startup script[edit | edit source]
cp /opt/curveencoder/curveencoder.service /lib/systemd/system/curveencoder.service cp /opt/curveencoder/config.toml.reader /opt/curveencoder/config.toml systemctl daemon-reload systemctl disable nginx systemctl stop nginx systemctl enable curveencoder systemctl start curveencoder