Skip to content
Follow
CMS Ubuntu Linux

How to Install Bitwarden on Ubuntu Linux

Richard
Written by
Richard
Oct 4, 2022 Updated Jul 11, 2026 2 min read
How to Enable or Disable Microsoft Defender Cloud Protection
How to Enable or Disable Microsoft Defender Cloud Protection

Protecting your online accounts starts with a dedicated password manager on Ubuntu Linux.

⚡ Quick Answer

Install Bitwarden on Ubuntu by creating a dedicated user, downloading the official installation script, and running it with `./bitwarden.sh install`. After installation, start the services using `docker compose up -d`.

Introduction

Bitwarden is a free password manager that keeps all your passwords safe and encrypted in one place. Managing online accounts across all devices happens seamlessly here. Running a self-hosted password manager keeps private data under personal control on dedicated hardware rather than relying on a third-party cloud service.

Why use a self-hosted password manager? Private data stays under personal control on local hardware instead of depending on a third-party cloud provider.

Once the setup finishes, a private, secure password vault will be accessible from any device.

Bitwarden vs. Vaultwarden

Choosing between the official Bitwarden and the unofficial Vaultwarden is necessary when building a private server. Official Bitwarden provides an enterprise-grade feature set, though it demands heavier system resources. Vaultwarden offers an unofficial, lightweight alternative written in Rust that runs efficiently on modest home hardware.

  • 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

Installing Bitwarden on Ubuntu Linux works best using Docker, a platform that runs applications inside isolated containers to simplify setup. Creating a dedicated user account first ensures proper security isolation by granting only the required Docker permissions.

This follows a security practice called the principle of least privilege. Granting user accounts only the minimum necessary permissions keeps systems secure against potential threats.

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

Next, grab your installation key from: Bitwarden installation key

Switching to the new user account allows downloading the official installation script:

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

Execute the installation script to proceed:

💻Code
./bitwarden.sh install

During the setup, the script requests a domain name and database configuration. Securing the deployment requires a valid SSL/TLS certificate (Secure Sockets Layer/Transport Layer Security, which encrypts web traffic). Obtaining a certificate works through Let's Encrypt with Certbot or by routing traffic behind a reverse proxy like Nginx Proxy Manager.

Bitwarden admin portal interface running on an Ubuntu Linux system
ubuntu linux bitwarden admin portal

Running the Service

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

💻Code
docker compose up -d

The containers will initialize, making the vault accessible through a web browser. Creating an administrator account completes the setup and lets credential storage begin.

Main Bitwarden dashboard interface installed on an Ubuntu Linux server
ubuntu linux bitwarden dashboard

Conclusion

Hosting a personal password manager grants complete authority over login credentials. Selecting either official Bitwarden or lightweight Vaultwarden establishes a major milestone in digital privacy.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips 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.

📚 Related Tutorials

How to Install sysPass Password Manager on Ubuntu
CMS How to Install sysPass Password Manager on Ubuntu
How to Install Docker Ubuntu: Terminal Commands
Ubuntu Linux How to Install Docker Ubuntu: Terminal Commands
How to Create a Self-Signed SSL Certificate on Ubuntu 24.04
Ubuntu Linux How to Create a Self-Signed SSL Certificate on Ubuntu 24.04
How to Install GNOME Desktop on Ubuntu 24.04
Ubuntu Linux How to Install GNOME Desktop on Ubuntu 24.04

No comments yet — be the first to share your thoughts!

Leave a Comment

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