Note that this documentation is for the coming release NetarchiveSuite 7.4
and is still work-in-progress.

For documentation on the released versions, please view the previous versions of the NetarchiveSuite documentation and select the relevant version.

Basic_Umbra_SW_installation_at_KB_DK


How to install Umbra ( manually)

git:
sudo yum install git

python3.6 incl. python-pip:

sudo yum install rh-python36
source /opt/rh/rh-python36/enable
sudo yum install rh-python36-python-pip

rabbitmq incl rabbitmq-management:

Install and Configure
EPEL install (to provide Erlang packages):

RabbitMQ install:

sudo yum install rabbitmq-server

Start RabbitMQ:

# RHEL7:
sudo systemctl enable rabbitmq-server
sudo systemctl start rabbitmq-server
sudo systemctl status rabbitmq-server

Verify RabbitMQ it is listening (on the default port):

sudo ss -tlnp | grep 5672
Enable management web UI:

# enable:
sudo rabbitmq-plugins enable rabbitmq_management

# RHEL7:
sudo systemctl restart rabbitmq-server

Verify management web UI:

sudo rabbitmq-plugins list

Access management web UI:

Go to http://<hostname>:15672/
Default login is: guest/guest.

List users:

sudo rabbitmqctl list_users
Verify login, e.g.:

curl -i -u guest:guest http://localhost:15672/api/whoami
List plugins:

sudo rabbitmq-plugins list


chromium browser:
on RHEL7 with EPEL
sudo yum install chromium

google chrome browser:

create /etc/yum.repos.d/google-chrome.repo:

[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

sudo yum install google-chrome-stable

Create scipt run-google-chrome.sh:

#!/bin/bash

_kill_procs() {
kill -TERM $chromium
wait $chromium
}
# Setup a trap to catch SIGTERM and relay it to child processes
trap _kill_procs SIGTERM

echo Starting google-chrome
echo Running "google-chrome --headless --no-sandbox --remote-debugging-port=9222 $@ &"
google-chrome --headless --no-sandbox --remote-debugging-port=9222 $@ &
chromium=$!

wait $chromium

run-google-chrome.sh
must not fail. Ignor "Lost UI Shared Context" see https://github.com/GoogleChrome/puppeteer/issues/192

The Difference between Google Chrome and Chromium on Linux: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/chromium_browser_vs_google_chrome.md
Ekstra so

sudo yum install xclock firefox

sudo -i
source /opt/rh/rh-python36/enable
pip install git+https://github.com/internetarchive/umbra.git

nohup bash run-google-chrome.sh &

umbra -n 5 --executable /home/test/run-google-chrome.sh --url amqp://guest:guest@localhost:5672/%2f