Installing Vaultwarden on Fedora Server Latest

In this tutorial, we will explain the steps needed to install Vaultwarden on a Fedora Server latest version. Vaultwarden is a free and open-source password manager that is compatible with Bitwarden clients.

Prerequisites

Step 1 - Install Dependencies

Before we begin the installation of Vaultwarden, we need to install some dependencies that are necessary for the installation.

Open a terminal window and run the following command:

sudo dnf install -y gcc cmake make openssl-devel sqlite-devel

Step 2 - Install Rust

Vaultwarden is written in Rust programming language, so we need to install Rust on our system.

Run the following command to install Rust:

curl https://sh.rustup.rs -sSf | sh

Press 1 and Enter when prompted to install Rust.

Step 3 - Clone the Vaultwarden Repository

Next, we need to clone the Vaultwarden repository:

git clone https://github.com/dani-garcia/vaultwarden.git

Change to the cloned directory:

cd vaultwarden

Step 4 - Build Vaultwarden

To build Vaultwarden, run the following command:

cargo build --features sqlite --release

Step 5 - Setup a Systemd Service

To run Vaultwarden as a daemon, we need to create a systemd service.

Run the following command to create a systemd service file:

sudo nano /etc/systemd/system/vaultwarden.service

Add the following content to the file:

[Unit]
Description=Vaultwarden Service
After=syslog.target network.target

[Service]
# ExecStart= is the full path to vaultwarden binary
ExecStart=/path/to/vaultwarden/binary --listen 127.0.0.1:8200
User=vaultwarden
Group=vaultwarden
Restart=always
StandardError=syslog
StandardOutput=syslog

[Install]
WantedBy=multi-user.target

Replace /path/to/vaultwarden/binary with the full path to the Vaultwarden binary file.

Change the User and Group to a non-root user who has permission to access the Vaultwarden directory.

Save and close the file.

Reload systemd to read the new service file:

sudo systemctl daemon-reload

Step 6 - Start and Enable the Service

Now that the service is created, we need to start it and enable it to start on boot.

Run the following command to start the service:

sudo systemctl start vaultwarden

To check the status of the service, run:

sudo systemctl status vaultwarden

The output should show the status of the service as active.

Run the following command to enable the service at boot:

sudo systemctl enable vaultwarden

Step 7 - Configure Firewall

By default, Vaultwarden listens on port 8200. If you have an active firewall, you need to allow traffic to this port.

Run the following command to open port 8200 in the firewall:

sudo firewall-cmd --add-port=8200/tcp --permanent

Reload the firewall for the changes to take effect:

sudo systemctl reload firewalld

Conclusion

Congratulations! You have successfully installed and set up Vaultwarden on your Fedora Server Latest version, and it's now available to use.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!