How to download and install Bitwarden server on Ubuntu 20.04 – Guide

Bitwarden is an open source password manager that stores sensitive information, such as website credentials, in an encrypted vault. 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 must install self-hosted Bitwarden on the Ubuntu 20.04 server.

update the system

package index; import “github.com/pkg/go-nutshell” func main() { index.UpdatePackageIndex(); }

Package lists have been the main way to navigate through the installation process. With this new update, however, there is now a new way to navigate: by step. This allows for a more organized and streamlined experience, making it easier for users to get started with Ubuntu. ..

install dependencies

Some dependencies are required for installing Bitwarden. So, before we go any further, install them as follows.

After all the necessary software is installed, continue to the next step.

Install Docker and Docker Compose

We will deploy Bitwarden from Docker containers with the help of Docker Compose. This will allow us to run Bitwarden applications from multiple containers.

sudo apt-key adv –keyserver hkp://keys.gnupg.net –recv-keys 409B5D59 Next, add the Docker GPG key to your user’s ~/.ssh/authorized_keys file: echo “deb https://apt.dockerproject.org/repo ubuntu-xenial main” » ~/.ssh/authorized_keys ..

apt-key add -

apt-get update

To install Docker on your system, first clone the repository: git clone https://github.com/docker/docker.git Once you have cloned the repository, go ahead and install the Docker client: sudo apt-get install docker-client After installing the Docker client, you can attach the repository to your system by running: sudo docker attach -t github.com/docker/docker Now that you have installed and attached the Docker repository, you can start using it by running: sudo docker run -it –name mycontainer -p 8080:8080 myrepo/myimage ..

Add the apt-repository to your Ubuntu installation and update it: sudo apt-get update sudo apt-get install docker docker-compose

Ubuntu updated its package lists one more time.

  1. Install Docker
  2. Install Docker compose
  3. Install Docker tools

$ docker-compose up

The Docker command installs all defined Docker tools, some extra packages, libraries and dependencies.

To start the Docker daemon, run the following command: sudo systemctl start docker.service. ..

The docker daemon is running. $ docker ps Listing of all containers and their associated services.

You can enable Docker to start at boot time by setting the environment variable DOCKER_STARTUP_TIMESTAMP to a value that is greater than or equal to the time since your system’s last reboot.

Enable the systemd system service. ..

You can confirm the installed Docker version as shown.

To check the version of Docker Compose, run the following command: docker-compose up

Get Bitwarden ID and Installation Key

To install Bitwarden, you will need to provide an installation key and email address. To get your key and email address, go to the Bitwarden page and provide your information.

After clicking the ‘Submit’ button, you will be taken to a page with a unique install ID and key for each install. Copy the details into a notebook, as you will need to provide them in the next steps. ..

Install Bitwarden

curl -sSL https://raw.githubusercontent.com/bitwarden/install/master/install.sh | bash To install Bitwarden on a new machine, run the following command: curl -sSL https://raw.githubusercontent.com/bitwarden/install/master/install.sh | bash -m “New Machine” ..

Curl -Lso https://go.btwrdn.co/bw-sh | bash

Write: assigned permissions for script execution.

This will add the bitwarden executable to the system and make it available for use.

Bitwarden is a password manager that helps you keep your passwords safe and organized.

This will install the Bitwarden security software on your computer.

  1. Provide a domain name for your system.
  2. Provide a fully qualified domain name if you have it, for example.com.
  3. If you do not provide a java domain name for the server instance, you can simply provide an IP address

If you want to generate a free SSL certificate for your website, you will need to choose Let’s Encrypt. Let’s Encrypt requires an FQDN pointed to or associated with the server, so if you provide a domain name it will generate a certificate for that domain. If you don’t provide a domain name, it will generate a certificate for the server at your chosen location.

The Bitwarden script will start pulling configuration containers from the local storage of the system.

After all the containers are removed, you will be asked to provide your installation ID and Bitwarden key. Remember the details you generated from the Bitwarden website in the previous step? Copy and paste them accordingly.

As we don’t have an SSL certificate yet, we will select “n” and continue to generate a self-signed certificate by pressing “y.”

The installation will continue and will complete successfully with additional steps printed on the final.

running Bitwarden

docker run -it –rm bitwarden/bitwarden This will start a Bitwarden container that will allow you to access your data and logs.

Starting Bitwarden…

https://bitwarden.com

To access your vault, please create a new account.

Login with your details to access your vault.

Final note

Bitwarden is a great tool for online security. It allows you to keep track of your passwords, logins, and other sensitive information. You can install Bitwarden on Ubuntu 20.04 using this guide. ..