From 49f422021aa430f224c167758bc770a72f0fb0fa Mon Sep 17 00:00:00 2001 From: efficks Date: Fri, 7 Jul 2023 10:08:08 -0400 Subject: [PATCH] Instruction for WSL Add instruction to make it works on WSL2 and Ubuntu 22.04 --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 42c5a5b..c2e215a 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ To add or fix support for a new operating system, look for the case statements i Using BlackBox on Windows ========================= -BlackBox can be used with Cygwin or MinGW. +BlackBox can be used with Cygwin, MinGW or WSL2. ### Protect the line endings @@ -207,6 +207,15 @@ Development: - unknown (if you develop Blackbox under MinGW, please let us know if any additional packages are required to run `make test`) +### WSL2 + +If you get the following error in WSL2, you can try to setup your environment with the following instructions (Tested with Ubuntu 22.04 on WSL2): + +- Install [Gpg4win](https://www.gpg4win.org/) (Tested with version 4.1.0) +- Import your private key in Gpg4win (you can use Kleopatra on your Windows host if you wish). +- Edit the file `~/.gnupg/gpg-agent.conf` on WSL and add the following line: `pinentry-program "/mnt/c/Program Files (x86)/GnuPG/bin/pinentry-basic.exe"` +- Restart gpg agent on your linux system: `gpg-connect-agent reloadagent /bye` + How is the encryption done? ===========================