Go to file
2021-11-17 14:09:49 +03:00
diem-node.service init: libra instructions 2021-11-17 14:09:49 +03:00
libra-monitor.service init: libra instructions 2021-11-17 14:09:49 +03:00
README.md init: libra instructions 2021-11-17 14:09:49 +03:00
tower.service init: libra instructions 2021-11-17 14:09:49 +03:00

Setup

# ---------------------------
# 1. Environment setup (Ubuntu 20.04)
# ---------------------------

# install deps
sudo apt install tmux git make jq --yes

# download latest release
curl -sL https://api.github.com/repos/OLSF/libra/releases/latest | jq -r '.assets[].browser_download_url' | wget -i -

# make binaries executable
chmod +x ...

# extract web-monitor
tar -xf web-monitor.tar.gz --directory ~/.0L/web-monitor/

# add to .bashrc
export PATH=$HOME/libra:$PATH
source ~/.bashrc

# ---------------------------
# 2. Onboarding
# ---------------------------

# create blockchain account
onboard keygen

# mine genesis proof
onboard val -u $IP
mkdir init-backup && cp -r ~/.0L/* ~/init-backup/

# ---------------------------
# 3. Diem Node
# ---------------------------

# create systemd service and copy contents
sudo nano /etc/systemd/system/diem-node.service
sudo systemctl daemon-reload
sudo systemctl start diem-node.service
sudo systemctl enable diem-node.service

# ---------------------------
# 4. Tower
# ---------------------------

# create systemd service and copy content
sudo nano /etc/systemd/user/tower.service
sudo systemctl daemon-reload
systemctl --user start tower.service
systemctl --user enable tower.service

Debug

tail -n 100 -f ~/logs/node.log
tail -n 100 -f ~/logs/tower.log