Ensure that the machine you wish to install Bitwarden on has the following:
Before performing the install I personally like to remove any packages I don't use and disable SELinux.
Update all packages:
yum update -y
Remove firewalld:
yum remove firewalld -y
Flush iptables:
iptables -F
Disable SELinux:
setenforce 0
Disabled SELinux inside the startup config:
nano /etc/selinux/config
Before Edit:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
After Edit:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
Install some packages we might need:
yum install curl mlocate wget -y
Reboot to apply every change:
reboot
Ensure you are in the root directory:
cd /root
Pull through the installer and make it executable:
curl -s -o bitwarden.sh \
https://raw.githubusercontent.com/bitwarden/core/master/scripts/bitwarden.sh \
&& chmod +x bitwarden.sh
Install Bitwarden:
./bitwarden.sh install
./bitwarden.sh start
./bitwarden.sh updatedb