# Wireguard

### Generate QR Code:

1. On `WireGuard Server` install the `qrencode` package:

* Debian:

```bash
sudo apt-get install qrencode
```

* RHEL:

```bash
sudo dnf install qrencode
```

* Arch:

```bash
sudo pacman -Sy qrencode
```

1. Use the `.conf` file to generate the QR code:

```bash
qrencode -t ansiutf8 < peer2/peer2.conf
```

* This will generate a QR code similar to this:&#x20;

1. Add Connection on Android WireGuard Application:&#x20;
2. Scan the QR code:&#x20;
3. Press `OK`:&#x20;
4. Connect to Server:&#x20;
