{"id":11575,"date":"2022-02-22T19:36:23","date_gmt":"2022-02-22T16:36:23","guid":{"rendered":"https:\/\/kifarunix.com\/?p=11575"},"modified":"2024-03-09T09:35:56","modified_gmt":"2024-03-09T06:35:56","slug":"install-bitwarden-password-manager-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-bitwarden-password-manager-on-ubuntu-22-04\/","title":{"rendered":"Install Bitwarden Password Manager on Ubuntu 22.04"},"content":{"rendered":"\n<p>In this tutorial, you will learn how to install Bitwarden password manager on Ubuntu 22.04.&nbsp;<a href=\"https:\/\/bitwarden.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bitwarden<\/a>&nbsp;is an&nbsp;<em>\u201copen-source password manager which provides an easiest and safest way for individuals to store, share and secure sensitive data\u201d<\/em>. Follow through to learn how to install Bitwarden on Ubuntu 22.04.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#install-bitwarden-password-manager-on-ubuntu-22-04\">Install Bitwarden Password Manager on Ubuntu 22.04<\/a><ul><li><a href=\"#minimum-system-requirements\">Minimum System Requirements<\/a><\/li><li><a href=\"#run-system-update\">Run System Update<\/a><\/li><li><a href=\"#set-system-domain-name\">Set System Domain Name<\/a><\/li><li><a href=\"#install-docker-and-docker-compose-on-ubuntu-22-04\">Install Docker and Docker Compose on Ubuntu 22.04<\/a><ul><li><a href=\"#install-docker-ce-on-ubuntu-22-04\">Install Docker CE on Ubuntu 22.04<\/a><\/li><li><a href=\"#install-docker-compose-on-ubuntu-22-04\">Install Docker Compose on Ubuntu 22.04<\/a><\/li><\/ul><\/li><li><a href=\"#create-bitwarden-deployment-user\">Create Bitwarden Deployment User<\/a><\/li><li><a href=\"#install-bitwarden-password-manager\">Install Bitwarden Password Manager<\/a><ul><li><a href=\"#obtain-bitwarden-hosting-installation-id-and-key\">Obtain Bitwarden Hosting Installation ID and Key<\/a><\/li><li><a href=\"#download-bitwarden-installation-script\">Download Bitwarden Installation Script<\/a><\/li><\/ul><\/li><li><a href=\"#running-bitwarden-on-ubuntu-22-04\">Running Bitwarden on Ubuntu 22.04<\/a><\/li><li><a href=\"#accessing-bitwarden-web-interface\">Accessing Bitwarden Web Interface<\/a><\/li><li><a href=\"#verifying-self-hosted-bitwarden-email\">Verifying Self-hosted Bitwarden Email<\/a><ul><li><a href=\"#check-postfix-configuration\">Check Postfix Configuration<\/a><\/li><\/ul><\/li><li><a href=\"#reference\">Reference<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"install-bitwarden-password-manager-on-ubuntu-22-04\">Install Bitwarden Password Manager on Ubuntu 22.04<\/h2>\n\n\n\n<p>Bitwarden is available for individual and organizational use in both free and paid plans.<\/p>\n\n\n\n<p>In this tutorial, we will be learning how to install and setup free version of Bitwarden for individual use.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"minimum-system-requirements\">Minimum System Requirements<\/h3>\n\n\n\n<p>Below are the minimum recommended system requirements that your system should meet to run Bitwarden;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Processor: x64, 2 GHz dual core<\/li>\n\n\n\n<li>Memory: 4 GB RAM (system memory)<\/li>\n\n\n\n<li>Storage: 25 GB<\/li>\n\n\n\n<li>Docker: Engine 19+ and Compose 1.24+<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"run-system-update\">Run System Update<\/h3>\n\n\n\n<p>Ensure that your system package cache is up-to-date.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"set-system-domain-name\">Set System Domain Name<\/h3>\n\n\n\n<p>Bitwarden requires a system domain name while being installed. Therefore, set your system FQDN as follows. Be sure to replace the domain accordingly.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo hostnamectl set-hostname passman.kifarunix-demo.com<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-docker-and-docker-compose-on-ubuntu-22-04\">Install Docker and Docker Compose on Ubuntu 22.04<\/h3>\n\n\n\n<p>Bitwarden is deployed using Docker containers through the use of Docker compose.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-docker-ce-on-ubuntu-22-04\"><a href=\"#install-docker-ce-on-ubuntu-22-04\">Install Docker CE on Ubuntu 22.04<\/a><\/h4>\n\n\n\n<p>In this tutorial, we are using the community Docker edition. Thus, run the command below to install Docker CE on Ubuntu 22.04;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo gpg --dearmor -o \/etc\/apt\/trusted.gpg.d\/docker-ce.gpg<\/code><\/pre>\n\n\n\n<p>Using Focal Fossa repos at the moment;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"deb &#91;arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu focal stable\" | sudo tee \/etc\/apt\/sources.list.d\/docker-ce.list<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install docker-ce docker-ce-cli containerd.io -y<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl enable --now docker<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-docker-compose-on-ubuntu-22-04\">Install Docker Compose on Ubuntu 22.04<\/h4>\n\n\n\n<p>Execute the command below to install the current (as of this writing) release of Docker compose;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo curl -sL \"https:\/\/github.com\/docker\/compose\/releases\/download\/1.29.2\/docker-compose-$(uname -s)-$(uname -m)\" -o \/usr\/local\/bin\/docker-compose<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chmod +x \/usr\/local\/bin\/docker-compose<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-bitwarden-deployment-user\">Create Bitwarden Deployment User<\/h3>\n\n\n\n<p>As much as this is not necessary, it is recommended that you create a separate user that will be used for the deployment of Bitwarden on Ubuntu 22.04;<\/p>\n\n\n\n<p>Hence;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo useradd -G docker,sudo -s \/bin\/bash -m -d \/opt\/bitwarden bitwarden<\/code><\/pre>\n\n\n\n<p>Create the users directory and set proper ownership;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;&#91; -d \/opt\/bitwarden ]] || sudo mkdir \/opt\/bitwarden\nsudo chown -R bitwarden: \/opt\/bitwarden<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-bitwarden-password-manager\">Install Bitwarden Password Manager<\/h3>\n\n\n\n<p>Once the above procedures are done, you can now install Bitwarden password manager.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"obtain-bitwarden-hosting-installation-id-and-key\">Obtain Bitwarden Hosting Installation ID and Key<\/h4>\n\n\n\n<p id=\"bitwarden-install-id-n-key\">Navigate to&nbsp;<a href=\"https:\/\/bitwarden.com\/host\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bitwarden hosting page<\/a>&nbsp;and provide your email ID to get the hosting <strong>installation ID<\/strong> and key.<\/p>\n\n\n\n<p>Once you enter your email ID, click submit. Such a page is loaded.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-installation-key-id.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1861\" height=\"647\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-installation-key-id.png\" alt=\"Install Bitwarden password manager on Ubuntu 22.04\" class=\"wp-image-11680\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-installation-key-id.png?v=1645528730 1861w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-installation-key-id-768x267.png?v=1645528730 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-installation-key-id-1536x534.png?v=1645528730 1536w\" sizes=\"(max-width: 1861px) 100vw, 1861px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>Keep the installation ID and Key as we will need it later in the installation.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"download-bitwarden-installation-script\">Download Bitwarden Installation Script<\/h4>\n\n\n\n<p>Switch to Bitwarden user created above;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo su - bitwarden<\/code><\/pre>\n\n\n\n<p>Run the command below to download the Bitwarden installation script.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install curl<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -Lso bitwarden.sh https:\/\/go.btwrdn.co\/bw-sh<\/code><\/pre>\n\n\n\n<p>Make the script executable;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod +x bitwarden.sh<\/code><\/pre>\n\n\n\n<p>Next, install Bitwarden password manager;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo .\/bitwarden.sh install<\/code><\/pre>\n\n\n\n<p>When the script runs, you are prompted to;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Set your system hostname.<\/li>\n\n\n\n<li>Choose whether to use Let&#8217;s Encrypt for SSL certificates if your domain is publicly registered<\/li>\n\n\n\n<li>Provide the database name for your Bitwarden instance.<\/li>\n\n\n\n<li>Provide installation ID generated above.<\/li>\n\n\n\n<li>Provide Bitwarden installation key generated above.<\/li>\n\n\n\n<li>Confirm if you have an SSL cert or not<\/li>\n\n\n\n<li>If you dont have an SSL cert, then use self-signed certs. Note the warning on using self-signed SSL certs.<\/li>\n<\/ul>\n\n\n\n<pre class=\"scroll-box\"><code>\n _     _ _                         _            \n| |__ (_) |___      ____ _ _ __ __| | ___ _ __  \n| '_ \\| | __\\ \\ \/\\ \/ \/ _` | '__\/ _` |\/ _ \\ '_ \\ \n| |_) | | |_ \\ V  V \/ (_| | | | (_| |  __\/ | | |\n|_.__\/|_|\\__| \\_\/\\_\/ \\__,_|_|  \\__,_|\\___|_| |_|\n\nOpen source password management solutions\nCopyright 2015-2022, 8bit Solutions LLC\nhttps:\/\/bitwarden.com, https:\/\/github.com\/bitwarden\n\n===================================================\n\nbitwarden.sh version 1.46.2\nDocker version 20.10.12, build e91ed57\ndocker-compose version 1.29.2, build 5becea4c\n\n(!) Enter the domain name for your Bitwarden instance (ex. bitwarden.example.com): passman.kifarunix-demo.com\n\n(!) Do you want to use Let's Encrypt to generate a free SSL certificate? (y\/n): n\n\n(!) Enter the database name for your Bitwarden instance (ex. vault): bitpassdb\n\n1.46.2: Pulling from bitwarden\/setup\n6552179c3509: Pull complete \n21e1bc814f94: Pull complete \na66d6e2c6505: Pull complete \n1468e0fc777d: Pull complete \n52220ccf12d8: Pull complete \n274037baa1dc: Pull complete \ncd6708d3da5c: Pull complete \nb96cf08d1413: Pull complete \n12f9a402a6ab: Pull complete \nbeab38d582a0: Pull complete \nDigest: sha256:47ab15e658ba482e31ed8d3c1ab6f7555d7be7a63de56cd74aa5920a01d8203c\nStatus: Downloaded newer image for bitwarden\/setup:1.46.2\ndocker.io\/bitwarden\/setup:1.46.2\n\n(!) Enter your installation id (get at https:\/\/bitwarden.com\/host): 8e1...da274\n\n(!) Enter your installation key: lP...kNUd\n\n(!) Do you have a SSL certificate to use? (y\/n): n\n\n(!) Do you want to generate a self-signed SSL certificate? (y\/n): y\n\nGenerating self signed SSL certificate.\nGenerating a RSA private key\n.............++++\n.........++++\nwriting new private key to '\/bitwarden\/ssl\/self\/passman.kifarunix-demo.com\/private.key'\n-----\nGenerating key for IdentityServer.\nGenerating a RSA private key\n.......................................++++\n.............................++++\nwriting new private key to 'identity.key'\n-----\n\n!!!!!!!!!! WARNING !!!!!!!!!!\nYou are using an untrusted SSL certificate. This certificate will not be \ntrusted by Bitwarden client applications. You must add this certificate to \nthe trusted store on each device or else you will receive errors when trying \nto connect to your installation.\n\nBuilding nginx config.\nBuilding docker environment files.\nBuilding docker environment override files.\nBuilding FIDO U2F app id.\nBuilding docker-compose.yml.\n\nInstallation complete\n\nIf you need to make additional configuration changes, you can modify\nthe settings in `.\/bwdata\/config.yml` and then run:\n`.\/bitwarden.sh rebuild` or `.\/bitwarden.sh update`\n\nNext steps, run:\n`.\/bitwarden.sh start`\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"running-bitwarden-on-ubuntu-22-04\">Running Bitwarden on Ubuntu 22.04<\/h3>\n\n\n\n<p>You can now start Bitwarden Docker containers;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo .\/bitwarden.sh start<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\n...\nCreating bitwarden-identity      ... done\nCreating bitwarden-icons         ... done\nCreating bitwarden-notifications ... done\nCreating bitwarden-attachments   ... done\nCreating bitwarden-mssql         ... done\nCreating bitwarden-sso           ... done\nCreating bitwarden-api           ... done\nCreating bitwarden-web           ... done\nCreating bitwarden-events        ... done\nCreating bitwarden-admin         ... done\nCreating bitwarden-nginx         ... done\n1.46.2: Pulling from bitwarden\/setup\nDigest: sha256:47ab15e658ba482e31ed8d3c1ab6f7555d7be7a63de56cd74aa5920a01d8203c\nStatus: Image is up to date for bitwarden\/setup:1.46.2\ndocker.io\/bitwarden\/setup:1.46.2\n\n\nBitwarden is up and running!\n===================================================\n\nvisit https:\/\/passman.kifarunix-demo.com\nto update, run `.\/bitwarden.sh updateself` and then `.\/bitwarden.sh update\n<\/code><\/pre>\n\n\n\n<p>To check Bitwarden containers;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker ps<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\nCONTAINER ID   IMAGE                            COMMAND            CREATED         STATUS                     PORTS                                                                                    NAMES\n6b2b7a18d417   bitwarden\/nginx:1.46.2           \"\/entrypoint.sh\"   8 minutes ago   Up 8 minutes (healthy)     80\/tcp, 0.0.0.0:80->8080\/tcp, :::80->8080\/tcp, 0.0.0.0:443->8443\/tcp, :::443->8443\/tcp   bitwarden-nginx\nbec9b762e4fe   bitwarden\/admin:1.46.2           \"\/entrypoint.sh\"   9 minutes ago   Up 8 minutes (unhealthy)   5000\/tcp                                                                                 bitwarden-admin\nf8e6dd8a1b4a   bitwarden\/api:1.46.2             \"\/entrypoint.sh\"   9 minutes ago   Up 8 minutes (healthy)     5000\/tcp                                                                                 bitwarden-api\nea2b527ea0ef   bitwarden\/web:2.26.1             \"\/entrypoint.sh\"   9 minutes ago   Up 8 minutes (healthy)                                                                                              bitwarden-web\n22ace70438f2   bitwarden\/sso:1.46.2             \"\/entrypoint.sh\"   9 minutes ago   Up 8 minutes (unhealthy)   5000\/tcp                                                                                 bitwarden-sso\n2b7c3b31500c   bitwarden\/attachments:1.46.2     \"\/entrypoint.sh\"   9 minutes ago   Up 8 minutes (healthy)                                                                                              bitwarden-attachments\na2e1fc239c42   bitwarden\/events:1.46.2          \"\/entrypoint.sh\"   9 minutes ago   Up 8 minutes (healthy)     5000\/tcp                                                                                 bitwarden-events\nc710843e8a3f   bitwarden\/mssql:1.46.2           \"\/entrypoint.sh\"   9 minutes ago   Up 8 minutes (unhealthy)                                                                                            bitwarden-mssql\n58d523eff765   bitwarden\/notifications:1.46.2   \"\/entrypoint.sh\"   9 minutes ago   Up 8 minutes (healthy)     5000\/tcp                                                                                 bitwarden-notifications\n3457ed97d3f8   bitwarden\/icons:1.46.2           \"\/entrypoint.sh\"   9 minutes ago   Up 8 minutes (healthy)     5000\/tcp                                                                                 bitwarden-icons\n8d7ec7b820ab   bitwarden\/identity:1.46.2        \"\/entrypoint.sh\"   9 minutes ago   Up 8 minutes (healthy)     5000\/tcp                                                                                 bitwarden-identity\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"accessing-bitwarden-web-interface\">Accessing Bitwarden Web Interface<\/h3>\n\n\n\n<p>The installation of Bitwarden is now complete. You can access the web interface using the&nbsp;<code><strong>https:\/\/bitwarden-server-fqdn<\/strong><\/code>. Replace the&nbsp;<strong><code>bitwarden-server-fqdn<\/code><\/strong>&nbsp;with your system fully qualified domain name provided during the setup process.<\/p>\n\n\n\n<p>Ensure that from the workstation you are accessing Bitwarden from can resolve the Bitwarden hostname. Otherwise use the hosts file if you do not have DNS.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-ui.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1082\" height=\"711\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-ui.png\" alt=\"Install Bitwarden password manager on Ubuntu 22.04\" class=\"wp-image-11679\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-ui.png?v=1645528672 1082w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-ui-768x505.png?v=1645528672 768w\" sizes=\"(max-width: 1082px) 100vw, 1082px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>Create a new account to access your Bitwarden secure vault by clicking&nbsp;<strong>Create Account<\/strong>.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-create-acc.png\" class=\"td-modal-image\"><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1089\" height=\"885\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-create-acc.png\" alt=\"Install Bitwarden password manager on Ubuntu 22.04\" class=\"wp-image-11681\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-create-acc.png?v=1645529918 1089w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-create-acc-768x624.png?v=1645529918 768w\" sizes=\"(max-width: 1089px) 100vw, 1089px\" \/><\/figure><\/div><\/a><\/div>\n\n\n\n<p>Once you have created an account, login to your Bitwarden vault.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-dashboard.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1307\" height=\"783\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-dashboard.png\" alt=\"Install Bitwarden password manager on Ubuntu 22.04\" class=\"wp-image-11682\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-dashboard.png?v=1645529964 1307w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitwarden-dashboard-768x460.png?v=1645529964 768w\" sizes=\"(max-width: 1307px) 100vw, 1307px\" \/><\/figure><\/a><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"verifying-self-hosted-bitwarden-email\">Verifying Self-hosted Bitwarden Email<\/h3>\n\n\n\n<p>In order to verify Self-hosted Bitwarden email, we are going to use local Postfix relay via Gmail SMTP. Therefore, install and configure Postfix to use Gmail SMTP relay by following the guide below;<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/configure-postfix-to-use-gmail-smtp-on-ubuntu-20-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">Configure Postfix to Use Gmail SMTP on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p>Next, configure Postfix to allow Bitwarden docker containers to sent emails through it. How I did this, i just greped the docker IP addresses;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ip add | grep 172.<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>    inet <strong>172.17.0.1\/16<\/strong> brd 172.17.255.255 scope global docker0\n    inet <strong>172.18.0.1\/16<\/strong> brd 172.18.255.255 scope global br-675f01731daf\n    inet <strong>172.19.0.1\/16<\/strong> brd 172.19.255.255 scope global br-5a213c833ae2<\/code><\/pre>\n\n\n\n<p>Then, edit postfix main conf and add the Bitwarden docker container networks to <strong>mynetworks<\/strong> parameter.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo vim \/etc\/postfix\/main.cf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>...\nmydestination = $myhostname, bitwarden.kifarunix-demo.com, localhost.kifarunix-demo.com, , localhost\nrelayhost = &#91;smtp.gmail.com]:587\n<strong>mynetworks = 127.0.0.0\/8 172.17.0.0\/16 172.18.0.0\/16 172.19.0.0\/16 &#91;::ffff:127.0.0.0]\/104 &#91;::1]\/128\n<\/strong>mailbox_size_limit = 0\nrecipient_delimiter = +\n...<\/code><\/pre>\n\n\n\n<p>Save and exit the file.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"check-postfix-configuration\">Check Postfix Configuration<\/h4>\n\n\n\n<p>Run the&nbsp;<code>postfix check<\/code>&nbsp;command to check the Postfix configuration for any error. Any error should printed on the output.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo postfix check<\/code><\/pre>\n\n\n\n<p>Restart postfix;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart postfix<\/code><\/pre>\n\n\n\n<p>Next, configure Postfix SMTP mail server IP address and Port settings by editing the environment settings file,&nbsp;<code><strong>.\/bwdata\/env\/global.override.env<\/strong><\/code>. The file is on the home directory of the user with which you ran the installations, in this setup is bitwarden user created above.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo vim .\/bwdata\/env\/global.override.env<\/code><\/pre>\n\n\n\n<p>In our setup, we are using Postfix on the localhost, hence only the lines, highlighted we used.<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>\n...\nglobalSettings__mail__replyToEmail=no-reply@kifarunix-demo.com\n<strong>globalSettings__mail__smtp__host=192.168.57.43\nglobalSettings__mail__smtp__port=25<\/strong>\nglobalSettings__mail__smtp__ssl=false\nglobalSettings__mail__smtp__username=<strong>REPLACE<\/strong>\nglobalSettings__mail__smtp__password=<strong>REPLACE<\/strong>\n....\n<\/code><\/pre>\n\n\n\n<p>Save and exit the file.<\/p>\n\n\n\n<p>Restart Bitwarden Services;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo .\/bitwarden.sh restart<\/code><\/pre>\n\n\n\n<p>Once the services start, go back to the web interface and sent the verification mail.<\/p>\n\n\n\n<p>Once you have verified the email, the <strong>verify email notification<\/strong> on the dashboard should now be gone.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitward-password-manager.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1321\" height=\"702\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitward-password-manager.png\" alt=\"\" class=\"wp-image-11683\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitward-password-manager.png?v=1645547365 1321w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/bitward-password-manager-768x408.png?v=1645547365 768w\" sizes=\"(max-width: 1321px) 100vw, 1321px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>And that is how easy it is to install Bitwarden password manager on Ubuntu. You can now safely store your passwords in your safe vault. Enjoy.<\/p>\n\n\n\n<p>Read more on <a href=\"https:\/\/bitwarden.com\/help\/getting-started-webvault\/\" target=\"_blank\" rel=\"noreferrer noopener\">Getting Started with Bitwarden<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"reference\">Reference<\/h3>\n\n\n\n<p><a href=\"https:\/\/bitwarden.com\/help\/article\/install-on-premise\/#tldr\" target=\"_blank\" rel=\"noreferrer noopener\">Installing and Deploying Bitwarden<\/a><\/p>\n\n\n\n<p>Other Tutorials<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-passbolt-password-manager-on-rocky-linux-8\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Passbolt Password Manager on Rocky Linux 8<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/configure-openldap-password-expiry-email-notification\/\" target=\"_blank\" rel=\"noreferrer noopener\">Configure OpenLDAP Password Expiry Email Notification<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to install Bitwarden password manager on Ubuntu 22.04.&nbsp;Bitwarden&nbsp;is an&nbsp;\u201copen-source password manager which provides an easiest and safest way<\/p>\n","protected":false},"author":1,"featured_media":11580,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,34],"tags":[4628,2063,4626,4627],"class_list":["post-11575","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-security","tag-bitwarden-password-manager","tag-install-bitwarden-ubuntu","tag-install-bitwarden-ubuntu-22-04","tag-ubuntu-22-04-bitwarden-installation","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/11575"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=11575"}],"version-history":[{"count":7,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/11575\/revisions"}],"predecessor-version":[{"id":20399,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/11575\/revisions\/20399"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/11580"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=11575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=11575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=11575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}