CMS Ubuntu Linux

How to Install Bitwarden on Ubuntu Linux

Richard
Written by
Richard
Oct 4, 2022 Updated Apr 18, 2026 2 min read

This article explains how to install a password manager on your Ubuntu Linux system. Keeping your passwords safe is vital for your digital security.

Introduction

Bitwarden is an open-source tool that stores your passwords in a secure, encrypted vault. You can use it on your computer, phone, and tablet.

Why use a self-hosted password manager? It keeps your private data under your control on your own hardware rather than relying on a third-party cloud service.

What happens when done? You will have a private, secure password vault that you can access from any device.

Bitwarden vs. Vaultwarden

You have two main choices for hosting:

  • Official Bitwarden: This is the enterprise-grade version. It is very powerful but requires more system resources to run.
  • Vaultwarden: This is an unofficial, lightweight version written in Rust. It is highly recommended for home-lab users because it uses very little memory and CPU power.

Install Bitwarden on Ubuntu Linux

We will use Docker to run this service. If you do not have Docker yet, follow this guide to set it up: How to install Docker on Ubuntu Linux

First, we create a dedicated user for security. We only give it permission to use Docker, following the principle of least privilege.

🐧Bash / Shell
sudo useradd -G docker -s /bin/bash -m -d /opt/bitwarden bitwarden
sudo passwd bitwarden
sudo chown -R bitwarden: /opt/bitwarden

Next, get your installation key here: Bitwarden installation key

Now, switch to your new user and download the official installation script:

🐧Bash / Shell
su - bitwarden
curl -Lso bitwarden.sh https://go.btwrdn.co/bw-sh
chmod +x bitwarden.sh

Start the installation:

💻Code
./bitwarden.sh install

During the setup, the script will ask for your domain name and database settings. For a secure setup, we highly recommend using a valid SSL/TLS certificate. You can obtain one easily using Let’s Encrypt with Certbot or by placing your server behind a reverse proxy like Nginx Proxy Manager.

Bitwarden admin portal interface running on an Ubuntu Linux system

Running the Service

Once the installation finishes, start the services using the Docker Compose V2 plugin command:

💻Code
docker compose up -d

What happens when done? The containers will initialize, and your vault will be accessible through your web browser. You can then create your admin account and start saving your passwords.

Main Bitwarden dashboard interface installed on an Ubuntu Linux server

Conclusion

By hosting your own password manager, you gain full control over your credentials. Whether you choose the official Bitwarden or the lightweight Vaultwarden, you have taken a major step toward better online privacy.

Was this guide helpful?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, the owner and lead writer at Geek Rewind, is a tech enthusiast passionate about simplifying complex IT topics. His years of hands-on experience in system administration and enterprise IT operations have honed his ability to provide practical insights and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

Leave a Reply

Your email address will not be published. Required fields are marked *

Exit mobile version