Skip to content

Instantly share code, notes, and snippets.

@alexbosworth
Last active March 6, 2019 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexbosworth/6d5c4b5c87c614d40a4bdbd857f87622 to your computer and use it in GitHub Desktop.
Save alexbosworth/6d5c4b5c87c614d40a4bdbd857f87622 to your computer and use it in GitHub Desktop.

Tools for LND Instance

Emacs

Install Emacs

sudo apt update && sudo apt upgrade -y && sudo apt install -y emacs
emacs
// Quit
sudo chown -R ubuntu ~/.emacs.d

Authentication

Add SSH keys for access, put #name as a hint towards which key is which

emacs ~/.ssh/authorized_keys

Setup File Descriptors Limit

sudo emacs /etc/sysctl.conf

fs.file-max=512000

// save
sudo reboot

Setup Disk

lsblk
// You will get the volume name appearing as something like nvme1n1
sudo file -s /dev/nvme1n1
// should show "/dev/nvme1n1: data" meaning empty
sudo mkfs -t ext4 /dev/nvme1n1
// This may take a second
sudo mkdir /blockchain
sudo mount /dev/nvme1n1 /blockchain/
cd /blockchain
df -h .
// should show available space in the volume
sudo cp /etc/fstab /etc/fstab.bak
// copy fstab before editing
sudo emacs /etc/fstab
// Create entry:
/dev/nvme1n1 /blockchain ext4 defaults,nofail 0 0
// Save, test entry
sudo mount -a
// should show no errors
sudo chown `whoami` /blockchain
// taken ownership of the volume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment