Debian Codegraph @

docs/Installation.md

raw
1 # Installation Guide
2
3 This document provides detailed instructions on how to install `openvpn-auth-oauth2`.
4
5 ## Installing via Linux Packages
6
7 We provide DEB/RPM packages for Linux distributions. You can download the latest package from our [releases page](https://github.com/jkroepke/openvpn-auth-oauth2/releases/latest).
8
9 ### For Debian based distributions:
10
11 openvpn-auth-oauth2 provides an APT repository for Debian based distributions. You can add the repository to your system and install the package using the following commands:
12
13 ```bash
14 curl -L https://raw.githubusercontent.com/jkroepke/openvpn-auth-oauth2/refs/heads/main/packaging/apt/openvpn-auth-oauth2.sources | sudo tee /etc/apt/sources.list.d/openvpn-auth-oauth2.sources
15 sudo apt update
16 sudo apt install openvpn-auth-oauth2
17 ```
18
19 > [!NOTE]
20 > The APT repository tracks the latest release. To pin a specific version, use
21 > `https://github.com/jkroepke/openvpn-auth-oauth2/releases/download/vX.Y.Z` as
22 > the URI in the sources file.
23
24 > [!NOTE]
25 > Linux AMD64 and ARM64 DEB and RPM packages include the matching stable
26 > [OpenVPN plugin](OpenVPN%20Plugin). The FreeBSD AMD64 plugin is available in
27 > the release archive. Packages and archives for other operating systems and
28 > architectures contain only the `openvpn-auth-oauth2` service.
29
30 **Alternatively, you can install the DEB package manually:**
31
32 1. Download the DEB package from the releases page.
33 2. Open a terminal.
34 3. Navigate to the directory where you downloaded the package.
35 4. Install the package using the following command:
36
37 ```bash
38 sudo dpkg -i <package_file>.deb
39 ```
40
41 Replace `<package_file>` with the name of the downloaded file.
42
43 ### For RedHat based distributions:
44
45 1. Download the RPM package from the releases page.
46 2. Open a terminal.
47 3. Navigate to the directory where you downloaded the package.
48 4. Install the package using the following command:
49
50
51 ```bash
52 sudo yum localinstall <package_file>.rpm
53 ```
54
55 Replace `<package_file>` with the name of the downloaded file.
56
57 ## Manual Installation
58
59 If you prefer to build the binary yourself, follow these steps:
60 1. Ensure you have [Go](https://go.dev/doc/install) and Make installed on your system.
61 2. Download the source code from our [releases page](https://github.com/jkroepke/openvpn-auth-oauth2/releases/latest).
62 3. Open a terminal.
63 4. Navigate to the directory where you downloaded the source code.
64 5. Build the binary using the following command:
65 ```bash
66 make build
67 ```
68 This will create a binary file named openvpn-auth-oauth2.
69 6. Move the `openvpn-auth-oauth2` binary to /usr/bin/ using the following command:
70 ```bash
71 sudo mv openvpn-auth-oauth2 /usr/bin/
72 ```
73
74 7. Verify the installation by checking the version:
75 ```bash
76 openvpn-auth-oauth2 --version
77 ```
78
79 For a first deployment, continue with
80 [Getting Started](Getting%20Started#3-register-the-oidc-application).
81 Use the [Configuration](Configuration) page when you need the complete settings
82 reference.