在Ubuntu 20.04 LTS Focal Fossa上安装Bitwarden
步骤1.首先,通过apt
在终端中运行以下命令来确保所有系统软件包都是最新的。
sudo apt update
sudo apt upgrade
步骤2.安装必需的依赖项。
我们需要在您的服务器中安装一些依赖项:
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
步骤3.安装Docker。
Bitwarden将使用一系列Docker容器部署并在您的计算机上运行。Bitwarden将与Docker社区(免费)和企业版同样出色地工作:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
接下来,使用以下命令添加Docker存储库:
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
完成后,使用以下命令安装Docker和Docker Compose:
sudo apt install docker-ce docker-ce-cli containerd.io docker-compose
步骤4.在Ubuntu 20.04上安装Bitwarden Password Manager。
现在,我们从其官方网站下载Bitwarden安装脚本:
curl -Lso bitwarden.sh https://go.btwrdn.co/bw-sh chmod +x bitwarden.sh
在安装Bitwarden之前,您需要输入您的电子邮件ID,然后单击“提交”。这样的页面已加载。
之后,使用以下命令启动Bitwarden安装:
./bitwarden.sh install
输入系统主机名:
_ _ _ _ | |__ (_) |___ ____ _ _ __ __| | ___ _ __ | '_ \| | __\ \ /\ / / _` | '__/ _` |/ _ \ '_ \ | |_) | | |_ \ V V / (_| | | | (_| | __/ | | | |_.__/|_|\__| \_/\_/ \__,_|_| \__,_|\___|_| |_| Open source password management solutions Copyright 2015-2020, 8bit Solutions LLC https://bitwarden.com, https://github.com/bitwarden =================================================== Docker version 19.03.12, build 48a66213fe docker-compose version 1.25.0, build unknown (!) Enter the domain name for your Bitwarden instance (ex. bitwarden.example.com): 192.168.77.21 (!) Do you want to use Let's Encrypt to generate a free SSL certificate? (y/n): n 1.36.1: Pulling from bitwarden/setup 6ec8c9369e08: Pull complete fe8522826504: Pull complete 658bf4619169: Pull complete 0392978bbc2e: Pull complete 33dd02257803: Pull complete 2a69859c8164: Pull complete d68079cd71ee: Pull complete 7c08df4e94b0: Pull complete 653a8af878c4: Pull complete d252f877c4a2: Pull complete Digest: sha256:5b2c43b46c03da54aecc6d19098b0pengen019725kimpoif29 Status: Downloaded newer image for bitwarden/setup:1.36.1 docker.io/bitwarden/setup:1.36.1 (!) Enter your installation id (get at https://bitwarden.com/host): bmwe46325e-f0e7-47cf-9667-ac0f008645b9 (!) Enter your installation key: tloMmeilanamariaSC5 (!) Do you have a SSL certificate to use? (y/n): n (!) Do you want to generate a self-signed SSL certificate? (y/n): y Generating self signed SSL certificate. Generating a RSA private key ........................++++ ..................++++ writing new private key to '/bitwarden/ssl/self/69.87.216.49/private.key' ----- Generating key for IdentityServer. Generating a RSA private key .........++++ .......................++++ writing new private key to 'identity.key' ----- !!!!!!!!!! WARNING !!!!!!!!!! You are using an untrusted SSL certificate. This certificate will not be trusted by Bitwarden client applications. You must add this certificate to the trusted store on each device or else you will receive errors when trying to connect to your installation. Building nginx config. Building docker environment files. Building docker environment override files. Building FIDO U2F app id. Building docker-compose.yml. Installation complete If you need to make additional configuration changes, you can modify the settings in `./bwdata/config.yml` and then run: `./bitwarden.sh rebuild` or `./bitwarden.sh update` Next steps, run: `./bitwarden.sh start`
安装完成后,使用以下命令启动Bitwarden服务:
./bitwarden.sh start
步骤5.访问Bitwarden Web界面。
现在,您可以使用URL访问Web界面Bitwarden 。您应该看到Bitwarden登录屏幕:http://your-server-ip
恭喜你!您已成功安装Bitwarden。感谢您使用本教程在Ubuntu 20.04 Focal Fossa上安装Bitwarden Password Manager。有关其他帮助或有用信息,我们建议您检查Bitwarden官方网站。
原创文章,作者:校长,如若转载,请注明出处:https://www.yundongfang.com/Yun41330.html