{"id":9771,"date":"2021-09-07T17:10:33","date_gmt":"2021-09-07T17:10:33","guid":{"rendered":"https:\/\/linuxways.net\/?p=9771"},"modified":"2021-09-07T17:10:33","modified_gmt":"2021-09-07T17:10:33","slug":"how-to-install-bitwarden-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-bitwarden-on-ubuntu-20-04\/","title":{"rendered":"How to Install Bitwarden on Ubuntu 20.04"},"content":{"rendered":"<p>Keeping track of your passwords can be quite a tedious task. This is especially true when having numerous accounts each with a unique username and password. A common habit that most users have is to jot down usernames and passwords on a notebook or a sticker. While this might come in handy in case you forget the login credentials, it\u2019s considered a risky practice should another party get a hold of the details.<\/p>\n<p>A better approach to managing passwords is to use a password manager. Bitwarden is an opensource and secure password manager that allows you to not only store usernames and passwords but also other personal information such as credit card details, PIN numbers etc. Bitwarden can be installed on a desktop PC and also on mobile applications.<\/p>\n<p>Bitwarden provides both free and premium plans. All Bitwarden plans provide the following core features.<\/p>\n<ol>\n<li>Password generator for generating strong and secure passwords for each of your account logins. This helps mitigate bruteforce attacks.<\/li>\n<li>Two-factor authentication for providing extra security when verifying logins. You can get a One Time Password (OTP) code via email, use an authenticator app such as Google Authenticator, or log in using a YubiKey for the premium version.<\/li>\n<li>Unlimited devices and syncing.<\/li>\n<li>Unlimited vault items.<\/li>\n<li>Password security audits for evaluating the strength of your passwords.<\/li>\n<li>Zero knowledge encryption.<\/li>\n<li>A digital wallet that allows users to store records such as Bank account details, credit card\/debit card details, and safe combinations.<\/li>\n<li>Mobile Apps and browser extensions that help users to autofill passwords during login.<\/li>\n<\/ol>\n<p>In this guide, we will walk you through the installation of Bitwarden on Ubuntu 20.04.<\/p>\n<h2><strong>Step 1: Update the system<\/strong><\/h2>\n<p>Let\u2019s start off by updating the package index as follows.<\/p>\n<pre><strong>$ sudo apt update<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"176\" class=\"wp-image-9772\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-34.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-34.png 805w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-34-300x66.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-34-768x168.png 768w\" sizes=\"auto, (max-width: 805px) 100vw, 805px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>With the package lists up to date, head over to the next step.<\/p>\n<h2><strong>Step 2: Install dependencies <\/strong><\/h2>\n<p>Some dependencies are required for the installation of Bitwarden. So, before we proceed any further install them as shown.<\/p>\n<pre><strong>$ sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common <\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"280\" class=\"wp-image-9773\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-35.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-35.png 805w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-35-300x104.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-35-768x267.png 768w\" sizes=\"auto, (max-width: 805px) 100vw, 805px\" \/><\/strong><\/p>\n<p>With all the essential packages installed, head over to the next step<\/p>\n<h2><strong>Step 3: Install Docker and Docker Compose<\/strong><\/h2>\n<p>We are going to deploy Bitwarden from Docker containers with the help of Docker Compose which is a tool that is used for executing multi-container Docker applications.<\/p>\n<p>But first, let\u2019s Add the Docker GPG key. To do this, first switch to root user and execute:<\/p>\n<pre><strong># curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | apt-key add -<\/strong><\/pre>\n<p>Once done, proceed and append the Docker\u2019s repository to your system.<\/p>\n<pre><strong># add-apt-repository \"deb [arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu $(lsb_release -cs) stable\"<\/strong><\/pre>\n<p>Then update Ubuntu\u2019s package lists once more.<\/p>\n<pre><strong>$ sudo apt update<\/strong><\/pre>\n<p>With the successful update of the package lists, install Docker, Docker compose and other crucial Docker tools as follows.<\/p>\n<pre><strong>$ sudo apt install docker-ce docker-ce-cli containerd.io docker-compose <\/strong><\/pre>\n<p>The command installs all the defined Docker tools, some extra package, libraries and dependencies.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"266\" class=\"wp-image-9774\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-36.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-36.png 804w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-36-300x99.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-36-768x254.png 768w\" sizes=\"auto, (max-width: 804px) 100vw, 804px\" \/><\/p>\n<p>By default, the Docker daemon starts once the installation is complete. You can confirm this as follows.<\/p>\n<pre><strong>$ sudo systemctl status docker<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"270\" class=\"wp-image-9775\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-37.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-37.png 808w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-37-300x100.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-37-768x257.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/p>\n<p>You can go a step further and enable Docker to start on boot time:<\/p>\n<pre><strong>$ sudo systemctl enable docker<\/strong><\/pre>\n<p>You can confirm the version of Docker installed as shown<\/p>\n<pre><strong>$ docker --version<\/strong><\/pre>\n<p>Similarly, you can check Docker Compose version as shown<\/p>\n<pre><strong>$ docker-compose --version<\/strong><\/pre>\n<h2><strong>Step 4: Obtain Bitwarden\u2019s Installation key and ID<\/strong><\/h2>\n<p>The installation of Bitwarden requires you to provide an installation key and ID. To obtain these crucial details, head over to the <a href=\"https:\/\/bitwarden.com\/host\/\">Bitwarden page<\/a> and provide your email address.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1273\" height=\"639\" class=\"wp-image-9776\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-38.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-38.png 1273w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-38-300x151.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-38-1024x514.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-38-768x386.png 768w\" sizes=\"auto, (max-width: 1273px) 100vw, 1273px\" \/><\/p>\n<p>Once you click the \u2018Submit\u2019 button, you will get the following page that contains a unique installation Id and key for each installation. Copy the details to a notepad as you will be required to provide them in the next few steps.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"839\" height=\"502\" class=\"wp-image-9777\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-39.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-39.png 839w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-39-300x179.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-39-768x460.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-39-501x300.png 501w\" sizes=\"auto, (max-width: 839px) 100vw, 839px\" \/><\/p>\n<h2><strong>Step 5: Install Bitwarden<\/strong><\/h2>\n<p>With the installation id and key at hand, download Bitwarden\u2019s installation script using the command shown:<\/p>\n<pre><strong>$ curl -Lso bitwarden.sh https:\/\/go.btwrdn.co\/bw-sh<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"810\" height=\"165\" class=\"wp-image-9778\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-40.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-40.png 810w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-40-300x61.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-40-768x156.png 768w\" sizes=\"auto, (max-width: 810px) 100vw, 810px\" \/><\/p>\n<p>Assign the script execute permissions.<\/p>\n<pre><strong>$ sudo chmod +x bitwarden.sh<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"136\" class=\"wp-image-9779\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-41.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-41.png 805w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-41-300x51.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-41-768x130.png 768w\" sizes=\"auto, (max-width: 805px) 100vw, 805px\" \/><\/strong><\/p>\n<p>Then install Bitwarden password manager.<\/p>\n<pre><strong>$ sudo .\/bitwarden.sh install<\/strong><\/pre>\n<p>You will be taken 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 it for example, <strong>example.com<\/strong>. If you do not java a domain name for your server instance, you can simply provide an IP address.<\/p>\n<p>Next, you will be asked if you want to opt for Let\u2019s Encrypt for the generation of a free SSL certificate. If you provided a domain name, then press <strong>\u2018y\u2019<\/strong> otherwise, press <strong>\u2018n<\/strong>\u2019 since Let\u2019s Encrypt requires an FQDN that is pointed or associated with the server. Then provide an arbitrary name for the database.<\/p>\n<p>The script will start pulling Bitwarden setup containers.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"890\" height=\"531\" class=\"wp-image-9780\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-42.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-42.png 890w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-42-300x179.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-42-768x458.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-42-501x300.png 501w\" sizes=\"auto, (max-width: 890px) 100vw, 890px\" \/><\/strong><\/p>\n<p>Once all the containers have been pulled, you will be prompted for the Bitwarden Installation Id and key. Remember the details you generated from the Bitwarden site in the previous step? Copy and paste them accordingly.<\/p>\n<p>Since we do not yet have an SSL certificate, we will select \u2018<strong>n<\/strong>\u2019 and proceed to generate a self-signed certificate by pressing \u2018<strong>y<\/strong>\u2019.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"618\" class=\"wp-image-9781\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-43.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-43.png 1000w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-43-300x185.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-43-768x475.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<p>The installation will then continue and complete successfully with additional steps printed at the very end.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"999\" height=\"559\" class=\"wp-image-9782\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-44.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-44.png 999w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-44-300x168.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-44-768x430.png 768w\" sizes=\"auto, (max-width: 999px) 100vw, 999px\" \/><\/p>\n<h2><strong>Step 6: Running Bitwarden<\/strong><\/h2>\n<p>To start Bitwarden Docker containers, execute the command:<\/p>\n<pre><strong>$ sudo .\/bitwarden.sh start<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"991\" height=\"554\" class=\"wp-image-9783\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-45.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-45.png 991w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-45-300x168.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-45-768x429.png 768w\" sizes=\"auto, (max-width: 991px) 100vw, 991px\" \/><\/strong><\/p>\n<p>To access the Bitwarden web interface, head over to the URL shown:<\/p>\n<pre><strong>https:\/\/server-ip\/<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"739\" height=\"527\" class=\"wp-image-9784\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-46.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-46.png 739w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-46-300x214.png 300w\" sizes=\"auto, (max-width: 739px) 100vw, 739px\" \/><\/strong><\/p>\n<p>Be sure to create a new account first to begin accessing your vault.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"628\" class=\"wp-image-9786\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-47.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-47.png 798w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-47-300x236.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-47-768x604.png 768w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><\/strong><\/p>\n<p>Then finally, log in with your details to access your vault.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"1142\" height=\"505\" class=\"wp-image-9787\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-48.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-48.png 1142w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-48-300x133.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-48-1024x453.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-48-768x340.png 768w\" sizes=\"auto, (max-width: 1142px) 100vw, 1142px\" \/><\/strong><\/p>\n<p>Congratulations! You can now start saving your passwords and other confidential information in your Bitwarden vault.<\/p>","protected":false},"excerpt":{"rendered":"<p>Keeping track of your passwords can be quite a tedious task. This is especially true when having numerous accounts each with a unique username and password. A common&hellip;<\/p>","protected":false},"author":1,"featured_media":9880,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[518,100],"class_list":["post-9771","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-bitwarden","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/9771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=9771"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/9771\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/9880"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=9771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=9771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=9771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}