Is BitNinja compatible with AlmaLinux 9?

You are here:
Estimated reading time: 1 min
As of the moment, BitNinja does not have an official repository for AlmaLinux 8 and 9. However, we do have a workaround.

Dependency

Run these commands to install dependencies, this is required to be able to start BitNinja from CLI:

yum install -y initscripts
yum install libxcrypt-compat

If the installation is successful, the following files will be populated with the necessary functions.

ls -la /etc/rc.d/init.d/
ls -la /etc/init.d/
Systemd implementation is coming soon. (2023-01-30. )

Repository

Issue the following command to set up the BitNinja repository:

rpm -Uvh http://rpm.bitninja.io/1.0/noarch/bitninja-repo-1.0-1.noarch.rpm

After that, you have to modify the repo file as the following (if you don’t have nano use your preferred text editor):

nano /etc/yum.repos.d/BitNinja.repo

There you need to alter the ‘baseurl’

baseurl=http://rpm.bitninja.io/$releasever/$basearch

to

baseurl=http://rpm.bitninja.io/8/$basearch

Installation

If it is the first time you are installing BitNinja, follow these steps:

yum install bitninja
bitninja-config --set license_key=[You can find your license key on the dashboard +Add New menu]

Then you can start BitNinja with the following command:

service bitninja start
If you see an error like this after making these steps:
/etc/init.d/bitninja: line 22: /etc/init.d/functions: No such file or directory
Starting BitNinja: /etc/init.d/bitninja: line 41: daemon: command not found

You can fix it with symlinking with the following commands:

ln -s /etc/rc.d/init.d/functions /etc/init.d/functions
ln -s /etc/init.d/bitninja /etc/rc.d/init.d/bitninja

Was this article helpful?
It was not helpful
Views: 413