Serverspace Black Friday
BM
October 30, 2022
Updated October 30, 2022

How to install Bitwarden on Linux Ubuntu 20.04 server

Ubuntu VPS

What is Bitwarden

Bitwarden is a password manager with client support for most operating systems (Windows, Linux, MacOS). This software is distributed with open source code and gives users the ability to choose to store passwords both on the company's servers and to deploy their own Bitwarden server to store passwords. One of the features of Bitwarden are applications of different formats, web version, browser extension, desktop applications, and mobile applications.

Preparing the system for installation

To install the password manager, you need to update the system's packages.

sudo apt update && apt upgrade

Install the Apache and Curl packages.

sudo apt install apache2 curl -y

1Bit

Next you need to install Docker, but before that, let's install the dependencies.

sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y

2Bit

Add gpg keys from Docker.

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

3Bit

Add repository of docker to your system.

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"

4Bit

Installing Docker

sudo apt install docker-ce docker-ce-cli containerd.io docker-compose

After installing Docker, you need to add a user to the "docker" group.

sudo usermod -aG docker *username*

5Bit

Installing Bitwarden

The next step will require asking for a hosting ID and key to install.

Go to the BitWarden website, enter your admin email, and get the information you need.

6Bit

Note: The ID and key must be kept in a safe place.

 

Load Bitwarden code.

curl -Lso bitwarden.sh https://go.btwrdn.co/bw-sh

7Bit

To install BitWarden you will need a normal script that you can open by running the command below.

cat bitwarden.sh

BitWarden uses preinstalled configs, so after installing it you can check its functionality at once and after installing it you can configure it in the way you need.

The script needs to be made executable.

8Bit

Use the command below to check the rights granted.

9Bit

Install BitWarden using the installation script.

sudo ./bitwarden.sh install

10Bit

Enter the required data following the installation.

13.1Bit

Wait for BitWarden to install.

14Bit

When the installation is complete, you are required to enter the installation ID and key that we received earlier.

15Bit

Do you have ssl keys? If you don't have them, it can be added later.

16Bit

Do you want to use self-signed ssl certificates ?

17Bit

The installation was successful.

18Bit

Starting Bitwarden

You need to configure the config before running it. Set it up with any text editor.

nano ./bwdata/config.yml

To avoid problems with the web interface, change the port of your choice.

In this publication we disabled ssl certificate support by putting "false" to the ssl line.

19Bit

Note: If you have trouble starting the system, change the port in the docker config to the same port you use for Bitwarden.

nano ./bwdata/docker/docker-compose.yml

The password manager is started thanks to the command.

sudo ./bitwarden.sh start

The first time you run it, you will need to wait for a while for Bitwarden to create everything you need for it to work.

20Bit

After a successful start, you will see a message that the web interface is ready.

21Bit

Go to the web interface using the ip address of your server.

23.1Bit

When creating a user, note that the password linked to the account is the main key to access all passwords, and you can leave a hint for it not to be forgotten.

Conclusion

With this publication you will easily install Bitwarden and get it up and running for your needs.

 

 

 

Vote:
5 out of 5
Аverage rating : 5
Rated by: 1
1101 CT Amsterdam The Netherlands, Herikerbergweg 292
+31 20 262-58-98
700 300
ITGLOBAL.COM NL
700 300
We use cookies to make your experience on the Serverspace better. By continuing to browse our website, you agree to our
Use of Cookies and Privacy Policy.