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:
- A Debian Latest installed and running
- Root or sudo access to the server
- Basic familiarity with the command line
Installation
Open up a terminal window on your Debian Latest.
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
- Download and install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Clone the Vaultwarden repository:
git clone https://github.com/dani-garcia/vaultwarden.git
- Enter the project directory:
cd vaultwarden
- Build the project:
cargo build --release
- Create a new user for Vaultwarden:
sudo adduser --system --group --home /var/lib/vaultwarden --no-create-home --shell /usr/sbin/nologin vaultwarden
- 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
- 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.