From a96234ce508d5a2240e30b8518f3402a42df416c Mon Sep 17 00:00:00 2001 From: Massimo Bernava Date: Fri, 21 May 2021 20:06:44 +0200 Subject: [PATCH] Update README.md --- README.md | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 52 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 55501c9..e1bd231 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,58 @@ ## Installation -## Server - -sudo apt install git cmake lua5.1 liblua5.1-0-dev libssl-dev libcurl4-openssl-dev libsqlite3-dev libmicrohttpd-dev libjson-c-dev libenet-dev +## Server Linux + +Install the required libraries: +```bash +sudo apt install git cmake libluajit-5.1-dev libssl-dev libcurl4-openssl-dev libjson-c-dev libmicrohttpd-dev libsqlite3-dev libzmq3-dev libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev libopencv-dev +``` + +Optional install nosql ejdb2 database: +```bash +sudo apt-get install software-properties-common +sudo add-apt-repository ppa:adamansky/ejdb2 +sudo apt-get install ejdb2 +``` + +Install Tensorflow Lite: +```bash +git clone https://github.com/tensorflow/tensorflow.git tensorflow_src +mkdir tflite_build +cd tflite_build +cmake ../tensorflow_src/tensorflow/lite/c -DTFLITE_ENABLE_GPU=ON +cmake --build . -j +``` + +Clone repository and use cmake: +```bash +git clone https://github.com/massimobernava/proteo.git +cd proteo/server +mkdir build +cd build +cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl .. +make +``` + +Update config.json: +```json +{ "version":"0.1", + "basedir":"/usr/local/etc/Proteo/", + "baseurl":"YOUR_LOCAL_IP", + "port":8888,"master":1,"ssl":0, + "server_key":"01234567890123456789012345678901", + "client_key":"01234567890123456789012345678901", + "ssl_key":"", + "ssl_cert":"", + "admin_enabled":1,"plugins":["proteo","admin","edit","deepcrimson","deepindigo"], + "servers":[] +} +``` +Install it as a service: +```bash +chmod +x ./install.sh +sudo ./install.sh +``` ## Client