Skip to content

Installation

Currently openpgp-paper-backup can be installed as a snap or compiled from source.

Snap

Get it from the Snap Store

If you don't yet use Snap, you'll have to first install snapd. Then, run:

$ sudo snap install openpgp-paper-backup

By default the installed snap will not have any permissions to read files from your filesystem. You have to read the private key from a file, so you have to grant openpgp-paper-backup access to your home directory. In snap world that is done via the home interface. To grant openpgp-paper-backup snap access to your home directory, run:

$ snap connect openpgp-paper-backup:home :home

Compiling from source

First of all, install rust. You also have to install:

  • nettle-dev
  • libclang-15-dev
  • libzbar-dev
  • llvm

On Debian/Ubuntu it's enough to run:

$ sudo apt install -y --no-install-recommends build-essential nettle-dev \
  libclang-15-dev libzbar-dev

And use cargo to fetch and compile openpgp-paper-backup:

$ cargo install openpgp-paper-backup
...
   Compiling pretty_env_logger v0.5.0
   Compiling imageproc v0.23.0
   Compiling qrcode v0.13.0
   Compiling openpgp-paper-backup v0.2.3
    Finished release [optimized] target(s) in 1m 40s
  Installing /home/patryk/.cargo/bin/openpgp-paper-backup
   Installed package `openpgp-paper-backup v0.2.3` (executable `openpgp-paper-backup`)

Near the end of the output you can see, where has cargo put the binary.