Skip to content

Latest commit

 

History

History
187 lines (119 loc) · 6.34 KB

INSTALL.md

File metadata and controls

187 lines (119 loc) · 6.34 KB

Installation

1. Prerequisites

Install the following packages (depending on your distribution):

OS dependencies

This software needs Python, libusb, and libudev along with development files.

You can install them on these distributions as follows:

Debian
$ apt-get install python3-pip python3-dev python3-tk libusb-1.0-0-dev libudev-dev
RedHat
$ yum install python3-pip python3-devel python3-tk libusb-devel libudev-devel \
              gcc redhat-rpm-config
Fedora
$ dnf install python3-pip python3-devel python3-tkinter libusb-devel libudev-devel \
              gcc redhat-rpm-config
OpenSUSE
$ zypper install python-pip python-devel python-tk libusb-1_0-devel libudev-devel

If you are using python3 or your system pip command points to pip3.x (/etc/alternatives/pip -> /usr/bin/pip3.6) you will need to install these dependencies instead:

$ zypper install python3-pip python3-devel python3-tk libusb-1_0-devel libudev-devel
macOS

There are many different options to install python environment on macOS (official, anaconda, ..). Most importantly you need libusb. Probably the easiest way is via homebrew

$ brew install libusb

GPG

If you intend to use GPG make sure you have GPG installed and up to date. This software requires a GPG version >= 2.1.11.

You can verify your installed version by running:

$ gpg2 --version | head -n1
gpg (GnuPG) 2.1.15
  • Follow this installation guide for Debian
  • Install GPG for macOS
  • Install packages for Ubuntu 16.04 here
  • Install packages for Linux Mint 18 here

2. Install the TREZOR agent

  1. Make sure you are running the latest firmware version on your Trezor:
  1. Make sure that your udev rules are configured correctly.

  2. Then, install the latest trezor-agent package:

    $ pip3 install trezor-agent
    

    Or, directly from the latest source code:

    $ git clone https://github.com/romanz/trezor-agent
    $ pip3 install --user -e trezor-agent
    $ pip3 install --user -e trezor-agent/agents/trezor
    

    Or, through Homebrew on macOS:

    $ brew install trezor-agent
    

3. Install the KeepKey agent

  1. Make sure you are running the latest firmware version on your KeepKey:
  1. Make sure that your udev rules are configured correctly. Then, install the latest keepkey-agent package:

    $ pip3 install keepkey_agent
    

    Or, on Mac using Homebrew:

    $ brew install keepkey-agent
    

    Or, directly from the latest source code:

    $ git clone https://github.com/romanz/trezor-agent
    $ pip3 install --user -e trezor-agent/agents/keepkey
    

4. Install the Ledger Nano S agent

  1. Make sure you are running the latest firmware version on your Ledger Nano S:
  1. Make sure that your udev rules are configured correctly.

  2. Then, install the latest ledger-agent package:

    $ pip3 install ledger-agent
    

    Or, directly from the latest source code:

    $ git clone https://github.com/romanz/trezor-agent
    $ pip3 install --user -e trezor-agent
    $ pip3 install --user -e trezor-agent/agents/ledger
    

5. Install the OnlyKey agent

  1. Make sure you are running the latest firmware version on your OnlyKey:
  1. Make sure that your udev rules are configured correctly.

  2. Then, install the latest onlykey-agent package:

    $ pip3 install onlykey-agent
    

    Or, directly from the latest source code:

    $ git clone https://github.com/romanz/trezor-agent
    $ pip3 install --user -e trezor-agent
    $ pip3 install --user -e trezor-agent/agents/onlykey
    

6. Install the Blockstream Jade agent

  1. Make sure you are running the latest firmware version on your Blockstream Jade:
  1. Make sure that your udev rules are configured correctly.

  2. If necessary, ensure the user is added to the dialout group

  3. Then, install the latest jade-agent package:

    $ pip3 install jade-agent
    

    Or, directly from the latest source code:

    $ git clone https://github.com/romanz/trezor-agent
    $ pip3 install --user -e trezor-agent
    $ pip3 install --user -e trezor-agent/agents/jade
    

7. Installation Troubleshooting

If there is an import problem with the installed protobuf package, see this issue for fixing it.

If you can't find the command-line utilities (after running pip install --user), please make sure that ~/.local/bin is on your PATH variable (see a relevant issue).

If you can't find command-line utilities and are on macOS/OSX check ~/Library/Python/2.7/bin and add to PATH if necessary (see a relevant issue).