In this tutorial I will explain how to load the Ledger app I made for LTO Network onto your Ledger Nano S.
While the Ledger app is being reviewed by the Ledger team, I thought that it would be funny to explain how to install it in a manual way. I have prepared a virtual machine with all toolchain, cross-compiling, libraries, repositories and more stuff ready to load the LTO Network app without any effort. I believe that everybody will be able to follow this guide without problems.
Prerequisites: Having a Ledger Nano S updated to the latest version, with enough available space to install an extra app and placed in the main menu.
1. Download and import the VM
As I said before, I have everything packed in a virtual machine. You need to download my VM image and import it:
– In this guide we will be using Oracle VirtualBox to manage the VM. It’s free and you can download it here.
– Download my VM (4,5GB) from Drive here.
Once you have VirtualBox installed and my VM downloaded, we will import the VM with VirtualBox:
Open VirtualBox > File > Import appliances
Select the downloaded virtual machine called LTO_Ledger_Nano_S_Installer.ova and the program will ask you to edit the import options:
You may need to change the CPU number and/or the RAM depending on your computer. Putting the half of what your system has is a good approach.
Every time the VM is started will ask for an user and password, which is as follows:
If the message “Failed to attach the USB device Ledger Nano S” pops up, it means that your PC is already using the device. Close all programs that may be using it, like browsers or desktop apps and try again. You can also try to plug and unplug your Ledger, reboot the VM or even reboot your PC due to background apps that may be using it. This is like a fight where all programs want to attach this device. You need to be fast.
This is how it looks when your device has been captured by the VM, notice the State: Captured and the left tick:
2. Install the Ledger app (easy way)
Once you have the Ledger device correctly connected with the VM, we will move on how to install the LTO Network unofficial app onto your device.
Open the Linux Terminal, which is placed on the bottom left, next to Firefox.
Write the following command:
With that command, we moved to the ledger-app-lto directory, which is pointing to my Github repository with the cross-compiled sources.
2. Install the Ledger app (pro way)
I add this method just in case somebody wants to know what we have done or how to compile itself the app.
Update my Github repo:
Remove the compiled app:
Cross-compile the app (should be fast):
Load onto the Ledger:
Delete app from Ledger:
Run CLI app (remember to move from the main menu to LTO Network app on Ledger):