Skip to content

Onboarding:Linux:All

elbywan edited this page Oct 25, 2022 · 1 revision

Node.js

You should install a Node version manager, because you will regularly need to switch between node versions with Live. Some recommand NVM, others recommand N

You need to install Yarn, a node packet manager used by Live. npm install --global yarn

To be able to use executable installed from yarn, you will need to modify pour $PATH variable (more info) :

  • Open your .bashrc with your favorite editor, ex: nano ~/.bashrc
  • Add this line to the end of it : export PATH="$PATH:$(yarn global bin)"

Code editor

The code editor used by the majority of developers in the Ledger Live team is Visual Studio Code. You can install it using this guide : https://code.visualstudio.com/docs/setup/linux

As an alternative, you can install Webstorm or VSCodium.

Ledger Live

Ubuntu/Debian requirements

First, you need to install theses packages :

  • libudev and libusb to communicate with the devices on your system, in our case the Nano.
  • ruby and ruby-dev to install Bundler.

sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev ruby-dev ruby

Then you need to install bundler, that will be used to install gem packages

sudo gem install bundler

Udev Rules

You need to set up udev rules :

Go see: ledger support doc

Or directly do: wget -q -O - https://raw.githubusercontent.com/LedgerHQ/udev-rules/master/add_udev_rules.sh | sudo bash

Metro watcher limits

Linux uses the inotify package to observe filesystem events, individual files or directories.

Since React / Angular hot-reloads and recompiles files on save it needs to keep track of all project's files. Increasing the inotify watch limit should hide the warning messages.

# insert the new value into the system config
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
​
# check that the new value was applied
cat /proc/sys/fs/inotify/max_user_watches
Clone this wiki locally