> For the complete documentation index, see [llms.txt](https://docs.pritunl.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pritunl.com/kb/vpn/client/flatpak.md).

# Flatpak

Pritunl Client Flatpak installation instructions

A Flatpak is available for the Pritunl Client directly from the Pritunl repository. This can be installed with the commands below.

```shellscript
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --user --if-not-exists pritunl https://repo.pritunl.com/stable/flatpak/pritunl.flatpakrepo
flatpak install --user pritunl com.pritunl.Client
```

To start the Flatpak client use the icon from the applications menu or run the command below.

```shellscript
flatpak run com.pritunl.Client
```

### Device Authentication

To enable device authentication use the commands below to provide TPM access to the Flatpak.

```shellscript
flatpak override --user --device=all com.pritunl.Client
sudo tee /etc/udev/rules.d/70-pritunl-tpm.rules << 'EOF'
KERNEL=="tpmrm[0-9]*", SUBSYSTEM=="tpmrm", TAG+="uaccess"
EOF
sudo udevadm control --reload
sudo udevadm trigger --subsystem-match=tpmrm
flatpak kill com.pritunl.Client
```

This can be removed with the commands below.

```shellscript
flatpak override --user --nodevice=all com.pritunl.Client
sudo rm /etc/udev/rules.d/70-pritunl-tpm.rules
sudo udevadm control --reload
sudo setfacl -b /dev/tpmrm0
```

### Terminal Interface

The terminal interface can be run from the Flatpak using the command below.

```shellscript
flatpak run --command=pritunl-client com.pritunl.Client
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pritunl.com/kb/vpn/client/flatpak.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
