-
Notifications
You must be signed in to change notification settings - Fork 34
Installing onto Ubuntu Server environments apart from DigitalOcean
The following notes may be helpful if choosing to install on unsupported environments running Ubuntu Server 20.04 LTS.
Lamassu can only provide technical support for installation on DigitalOcean due to the variables involved in custom server environments.
Run:
sudo -i
apt update && apt upgrade -y
Run ifconfig
to find the adapter MAC address for the adapter you're going to use. E.g. you might see HWaddr 50:9a:4c:1d:19:14
, the 50:9a:4c:1d:19:14
of whatever your system says is your ADAPTER MAC which you have to specify in the next step.
Edit /etc/udev/rules.d/70-persistent-net.rules
to specify ATTR{address}=="ADAPTER MAC"
in the following line:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="ADAPTER MAC", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth0"
Edit /etc/network/interfaces
to point the non-lo interface to eth0
instead of ens3
or similar.
Run:
shutdown -r now
Upon logging back in, run:
sudo -i
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
apt update
apt install -y git ufw nodejs python-minimal build-essential supervisor postgresql libpq-dev
npm config set prefix '/usr'
echo -e "export PATH=/usr/bin:/usr/lib/node_modules/lamassu-server/bin:\$PATH" >> ~/.profile
source ~/.profile
Then download the install script:
wget https://raw.githubusercontent.com/lamassu/lamassu-install/electric-enlil/install
Edit the install script, inserting swapoff -a
between these two lines:
decho "Enabling swap file for install only..."
swapoff -a
fallocate -l 1G /swapfile >> $LOG_FILE 2>&1
Then change all npm
calls in the install file to sudo npm
Run:
bash install