This tutorial is about downloading and installing Bitwarden server on Ubuntu 20.04. We will do our best to make sure you understand this guide. I hope you will like this blog How to download and install Bitwarden server on Ubuntu 20.04. If your answer is yes, please share after reading this.
Check How to Download and Install Bitwarden Server on Ubuntu 20.04
Bitwarden is an open source password manager. Store confidential information, such as website credentials, in an encrypted safe. The Bitwarden platform offers a variety of client applications, including a web interface, desktop applications, browser extensions, mobile applications, and a CLI.
This article will guide you to install self-hosted Bitwarden on Ubuntu 20.04 server.
Update the system
- Let’s start by updating the package index as follows.
- Once your parcel lists are up to date, go to the next step.
- Some dependencies are required for installing Bitwarden. So before continuing, install them as instructed.
- Once all the essential packages are installed, proceed to the next step
Install Docker and Docker Compose
- We will be deploying Bitwarden from Docker containers using Docker Compose, which is a tool used to run multi-container Docker applications.
- But first, let’s add the Docker GPG key. To do this, first switch to the root user and run:
- # curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add –
- Once done, go ahead and add the Docker repository to your system.
- # add-apt-repository “deb https://download.docker.com/linux/ubuntu $ (lsb_release -cs) stable”
- Then update the Ubuntu package lists once more.
- With the successful update of the package lists, please install Docker, Docker compose and other crucial Docker tools as follows.
- $ sudo apt install docker-ce docker-ce-cli containerd.io docker-compose
- The command installs all defined Docker tools, as well as all additional packages, libraries, and dependencies.
- By default, the Docker daemon starts after the installation is complete. You can confirm it as follows.
- $ sudo systemctl docker status
- You can go one step further and allow Docker to start on startup:
- $ sudo systemctl activate docker
- You can confirm the Docker version installed as shown
- Likewise, you can check the version of Docker Compose as shown
- $ docker-compose –version
Get the installation key and Bitwarden ID
- Installing Bitwarden requires that you provide an installation key and identification. To get these crucial details, go to the Bitwarden page and provide your email address.
- Once you click on the “Submit” button, you will get the following page containing a unique installation ID and key for each installation. Copy the details to a notepad as you will be asked to provide them in the next steps.
- With the installation ID and the key in hand, download the Bitwarden installation script using the command shown:
- $ curl -Lso bitwarden.sh https://go.btwrdn.co/bw-sh
- Assign execute script permissions.
- $ sudo chmod + x bitwarden.sh
- Then install Bitwarden password manager.
- $ sudo ./bitwarden.sh install
- You will be guided through a series of prompts. You will be asked to provide a domain name for your system. Provide a fully qualified domain name if you have one, for example, example.com. If you don’t have a Java domain name for your server instance, you can just provide an IP address.
- You will then be asked if you wish to opt for Let’s Encrypt for the generation of a free SSL certificate. If you provided a domain name, press “y”; otherwise, press ‘n’ because Let’s Encrypt requires an FQDN pointed to or associated with the server. Then provide an arbitrary name for the database.
- The script will start extracting the Bitwarden installation containers.
- After all the containers are removed, you will be prompted to enter the Bitwarden installation ID and key. Do you remember the details you generated on the Bitwarden site in the previous step? Copy and paste them accordingly.
- As we do not have an SSL certificate yet, we will select ‘n’ and proceed to generate a self-signed certificate by pressing ‘y’.
- The installation will continue and complete successfully with additional steps printed at the end.
- To start the Bitwarden Docker containers, run the command:
- $ sudo ./bitwarden.sh start
- To access the Bitwarden web interface, go to the given URL:
- Make sure to create a new account first to start accessing your safe.
- Then, finally log in with your details to access your safe.
Final words: How to download and install Bitwarden server on Ubuntu 20.04
hope you will understand this item How to download and install Bitwarden server on Ubuntu 20.04, if your answer is no, you can request anything through the contact forum section linked to this article. And if your answer is yes, then share this article with your family and friends.