Generating Wireguard QR codes for fast mobile deployments

Originally published at:

If you have been following along on my Gain Flexibility & Increase Privacy with Wireguard VPN “mini-course”, you’ll notice that there are a few areas that we need apply configurations in order for our devices to get connected. Typing all of this in manually on mobile can be a massive pain, especially if you are…

Hi Jay,
Excellent guide on setting up WireGuide. However, on ‘qrencode -t ansiutf8 < /etc/wireguard/clients/BlackViewA80Pro.conf’ (having used BlackViewA80Pro for all the mobile usage in this section), I got ‘bash: qrencode -t ansiutf8 < /etc/wireguard/clients/BlackViewA80Pro.conf: Permission denied’.
I’ve tried preceding the command with sudo and also with ./, but both gave the same. Any ideas? I’m actually using Xubuntu 20.04 but I don’t know of any difference in Terminal command between that and Ubuntu 20.04.

Thanks for the compliments!

That is very strange qrencode, especially if you already ran it with sudo.

I wonder if it has something to do with the redirection in Bash?

Basically, try switching so you become root then try running the command without sudo.

Hopefully that works!

11 posts were split to a new topic: How do I unset a peer in Wireguard?