{"id":984,"date":"2021-02-14T00:02:36","date_gmt":"2021-02-14T00:02:36","guid":{"rendered":"http:\/\/bullyrooks.com\/?p=984"},"modified":"2021-02-14T00:02:36","modified_gmt":"2021-02-14T00:02:36","slug":"installing-bitwarden","status":"publish","type":"post","link":"https:\/\/bullyrooks.com\/index.php\/2021\/02\/14\/installing-bitwarden\/","title":{"rendered":"Installing Bitwarden"},"content":{"rendered":"\n<p>Bitwarden is an opensource password manager that allows you to centralize your password management and use your password database to automatically populate login forms on web pages or mobile applications.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing the Application via Docker<\/h2>\n\n\n\n<p>I&#8217;m going to be generally following directions <a href=\"https:\/\/bitwarden.com\/help\/article\/install-on-premise\/\">here<\/a> and <a href=\"https:\/\/hometechblogger.com\/how-to-install-bitwarden-with-docker-and-synology\/\">here<\/a>.<\/p>\n\n\n\n<p>First thing you need to do is SSH into your NAS.  Change over to your docker location <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/volume1\/docker<\/code><\/pre>\n\n\n\n<p>Install bitwarden with these commands<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo curl -Lso bitwarden.sh https:\/\/go.btwrdn.co\/bw-sh &amp;&amp; chmod +x bitwarden.sh<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo .\/bitwarden.sh install<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Configuration<\/h2>\n\n\n\n<p>You&#8217;ll need a host id and key from bitwarden.  You can obtain them <a href=\"https:\/\/bitwarden.com\/host\">here<\/a>.<\/p>\n\n\n\n<p>During the install you will have to specify some configuration<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Enter the domain name for your Bitwarden instance:\n${your domain} (I used bitwarden.bullyrooks.com)\n\nDo you want to use Let\u2019s Encrypt to generate a free SSL certificate? (y\/n):\n\nno (we're going to use the synology certificate manager)\n\nEnter your installation id:\n\nEnter your installation key:\nCopy and paste the values you got from the link above\n\nDo you have a SSL certificate to use? (y\/n):\n\nno\n\nDo you want to generate a self-signed SSL certificate? (y\/n):\nno<\/code><\/pre>\n\n\n\n<p>We just need to change the ports that bitwarden is going to use. Inside docker you should now have a <code>\/bwdata<\/code> directory.  Edit the <code>config.yml<\/code> file inside that directory with nano or vi<\/p>\n\n\n\n<p>Change the http and https port values<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Docker compose file port mapping for HTTP. Leave empty to remove the port mapping.\n# Learn more: https:\/\/docs.docker.com\/compose\/compose-file\/#ports\nhttp_port: 9190\n#\n# Docker compose file port mapping for HTTPS. Leave empty to remove the port mapping.\n# Learn more: https:\/\/docs.docker.com\/compose\/compose-file\/#ports\nhttps_port:\n<\/code><\/pre>\n\n\n\n<p>save and update bitwarden quickly before we start up<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo .\/bitwarden rebuild<\/code><\/pre>\n\n\n\n<p>According to hometechblogger you may need to create some directories as well<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir bwdata\/core\nmkdir bwdata\/core\/attachments\nmkdir bwdata\/ca-certificates\nmkdir bwdata\/logs\nmkdir bwdata\/logs\/admin\nmkdir bwdata\/logs\/api\nmkdir bwdata\/logs\/events\nmkdir bwdata\/logs\/identity\nmkdir bwdata\/logs\/mssql\nmkdir bwdata\/logs\/nginx\nmkdir bwdata\/logs\/icons\nmkdir bwdata\/logs\/notifications\nmkdir bwdata\/mssql\nmkdir bwdata\/mssql\/data\nmkdir bwdata\/mssql\/backups<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Starting Bitwarden<\/h2>\n\n\n\n<p>Start up bitwarden to complete the install<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/bitwarden.sh start<\/code><\/pre>\n\n\n\n<p>you will also want to update the database (which you can do after Bitwarden starts)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/bitwarden.sh updatedb<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<div class=\"entry-summary\">\nBitwarden is an opensource password manager that allows you to centralize your&hellip;\n<\/div>\n<div class=\"link-more\"><a href=\"https:\/\/bullyrooks.com\/index.php\/2021\/02\/14\/installing-bitwarden\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &ldquo;Installing Bitwarden&rdquo;<\/span>&hellip;<\/a><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,36],"tags":[129,5,128,127,6],"course":[126],"class_list":["post-984","post","type-post","status-publish","format-standard","hentry","category-home-networking","category-synology","tag-bitwarden","tag-docker","tag-password-management","tag-security","tag-synology","course-bitwarden-password-manager","entry"],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":988,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/02\/14\/synology-configuration-for-bitwarden\/","url_meta":{"origin":984,"position":0},"title":"Synology Configuration for Bitwarden","author":"Bullyrook","date":"February 14, 2021","format":false,"excerpt":"We need to do a few things to synology to allow access to bitwarden outside of our network. Add a Reverse Proxy Entry If you haven't set up the reverse proxy yet, follow the instructions here. My configuration looks like this You'll also need to add an entry in your\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/02\/image-56.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":992,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/02\/14\/setup-your-bitwarden-clients\/","url_meta":{"origin":984,"position":1},"title":"Setup Your Bitwarden Clients","author":"Bullyrook","date":"February 14, 2021","format":false,"excerpt":"Now that you've got bitwarden installed and running we're going to configure the clients to connect to it. I'll also cover migrating passwords from Lastpass to Bitwarden. Creating a User You'll need to have SSL setup correctly before you can create a user. This is straightforward though, just go to\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/bullyrooks.com\/index.php\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/02\/image-57.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":549,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/01\/25\/installing-portainer-in-docker-on-synology\/","url_meta":{"origin":984,"position":2},"title":"Installing Portainer in Docker on Synology","author":"Bullyrook","date":"January 25, 2021","format":false,"excerpt":"Although we can install and run docker containers directly in the synology docker package, I recommend installing portainer as a docker management tool. Portainer has a nice web based user interface, which means that you can access it directly via the browser instead of logging into the synology DSM and\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/Screen-Shot-2021-01-23-at-6.00.11-PM.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":703,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/01\/28\/installing-jackett\/","url_meta":{"origin":984,"position":3},"title":"Installing Jackett","author":"Bullyrook","date":"January 28, 2021","format":false,"excerpt":"Jackett is a database for bittorrent indexers. This allows you to refer to internal resources when configuring radarr and sonarr, which then get mapped to external API. It makes it really easy to add more bittorrent indexers to expand the breadth of your searches. Running Jackett Container The docker project\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-79.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1001,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/02\/21\/setup-and-install-nextcloud-on-synology\/","url_meta":{"origin":984,"position":4},"title":"Setup and Install NextCloud On Synology","author":"Bullyrook","date":"February 21, 2021","format":false,"excerpt":"NextCloud is a file storage and sharing system. It can be compared to dropbox or google drive. The difference here is that you're using your NAS, so you'll get as much space as you can support without paying for additional storage. NextCloud also offers multi-platform compatibility via a web application\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":643,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/01\/27\/prepare-synology-for-media-components\/","url_meta":{"origin":984,"position":5},"title":"Prepare Synology for Media Components","author":"Bullyrook","date":"January 27, 2021","format":false,"excerpt":"We'll need to do a little setup on Synology first in order to create the appropriate user account and directory structure. Create the Media Components User Account Get into the DSM on the NAS. Open Control Panel and select User Create a new user that docker will run your media\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-39.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/posts\/984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/comments?post=984"}],"version-history":[{"count":2,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/posts\/984\/revisions"}],"predecessor-version":[{"id":986,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/posts\/984\/revisions\/986"}],"wp:attachment":[{"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/media?parent=984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/categories?post=984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/tags?post=984"},{"taxonomy":"course","embeddable":true,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/course?post=984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}