Nuxeo Platform

Installed at 10.1.1.11. Running on Debian 9. Not actually in use.

Setup

The setup is based on the 1, 2, 3.

apt install gnupg
wget -q -O- http://apt.nuxeo.org/nuxeo.key | apt-key add -
echo "deb http://apt.nuxeo.org/ $(lsb_release -cs) fasttracks" >> /etc/apt/sources.list.d/nuxeo.list
apt update
apt install nuxeo exiftool
# In the package configuration wizard, set:
# - Bind address: 0.0.0.0
# - Listening port for HTTP: 8080
# - Backend database: Autoconfigure PostgreSQL

Open http://10.1.1.11:8080/nuxeo/ in the browser to go through the startup wizard. Set:

  • HTTP Proxy Type: None
  • Directory Type: Default (Database)
  • SMTP Settings
    • SMTP Server Host Name: smtp.eu.mailgun.org
    • SMTP Port: 587
    • SMTP Authentication: With authentication
    • SMTP Login: dms@mail.altpeter.me
    • SMTP Password: <pw>
  • User interface: Nuxeo Web UI
  • Additional addons: Digital Asset Management, Drive, Live Connect, Template Rendering, Nuxeo Spreadsheet

After the wizard is done, login using Administrator:Administrator. Immediately go into the User Settings and Profile and change the default password. Then, under Administration and Users & Groups, create a new user and use that from then on.

Using the + button, create a workspace.

EML Previewer module

Install the EML Previewer module 1:

apt install xvfb wkhtmltopdf

# Copy file from below.
nano /usr/local/bin/wkhtmltopdf
chmod +x /usr/local/bin/wkhtmltopdf

cd /usr/local/bin/
wget "https://github.com/nickrussler/eml-to-pdf-converter/releases/download/2.0.1/emailconverter-2.0.1-all.jar"
chmod 755 emailconverter-2.0.1-all.jar

# Copy file from below.
nano /usr/local/bin/eml2pdf.sh

Updates

TODO: https://doc.nuxeo.com/nxdoc/upgrading-the-nuxeo-platform/

Files

/usr/local/bin/wkhtmltopdf

#!/bin/bash
xvfb-run -a --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf -q $*

/usr/local/bin/eml2pdf.sh

#!/bin/sh -x

LOG="/var/log/nuxeo/eml2pdf.log"
echo "LOG = '${LOG}'" | tee -a "${LOG}"

PWD=`pwd`
echo "PWD = '${PWD}'" | tee -a "${LOG}"
PWD=`realpath "${PWD}"`
echo "PWD = '${PWD}'" | tee -a "${LOG}"

BIN=`realpath "$0"`
echo "BIN = '${BIN}'" | tee -a "${LOG}"

DIR=`dirname "${BIN}"`
echo "DIR = '${DIR}'" | tee -a "${LOG}"

JAR="${DIR}/emailconverter-2.0.1-all.jar"
echo "JAR = '${JAR}'" | tee -a "${LOG}"

SOURCE="$1"
echo "SOURCE = '${SOURCE}'" | tee -a "${LOG}"
ls -l "${SOURCE}" | tee -a "${LOG}"

TARGET="$2"
echo "TARGET = '${TARGET}'" | tee -a "${LOG}"
ls -l "${TARGET}" | tee -a "${LOG}"

java -jar "${JAR}" -o "${TARGET}" "${SOURCE}" | tee -a "${LOG}"

ls -l "${SOURCE}" | tee -a "${LOG}"
ls -l "${TARGET}" | tee -a "${LOG}"