How to install Vaultwarden on Debian Latest?

In this tutorial, we will show you how to install Vaultwarden, a secure and open source password manager, on Debian Latest.

Requirements

You should have the following:

Installation

  1. Open up a terminal window on your Debian Latest.

  2. Install the required dependencies:

sudo apt update
sudo apt install curl git cmake pkg-config libssl-dev zlib1g-dev libpq-dev libsqlite3-dev build-essential
  1. Download and install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  1. Clone the Vaultwarden repository:
git clone https://github.com/dani-garcia/vaultwarden.git
  1. Enter the project directory:
cd vaultwarden
  1. Build the project:
cargo build --release
  1. Create a new user for Vaultwarden:
sudo adduser --system --group --home /var/lib/vaultwarden --no-create-home --shell /usr/sbin/nologin vaultwarden
  1. Install the binary files:
sudo install -Dm755 /path/to/vaultwarden/target/release/bitwarden_rs /usr/local/bin/vaultwarden
sudo install -Dm644 ./contrib/vaultwarden.service /etc/systemd/system/vaultwarden.service
sudo systemctl daemon-reload
  1. Start and enable the Vaultwarden service:
sudo systemctl start vaultwarden
sudo systemctl enable vaultwarden

Conclusion

Vaultwarden has now been successfully installed on your Debian Latest server. You can now access the password manager by navigating to the IP address or domain name of your server using a web browser.

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!