Monero XMR Mining Operation
This guide will walk you through setting up Database 4 Everything (Db4E) on your system, from installing dependencies to launching the application.
Db4E is certified for Debian 12 “Bookworm” and works best on a clean, minimal installation.
We recommend the NetInst ISO with only the following option selected during setup:
Db4E should also run on other modern Linux distributions with minimal changes.
Before installing Db4E, make sure the following packages are installed:
sudo apt-get install gnupg curl libhwloc15 python3.11-venv libzmq5 pip
gnupg
, curl
— for installing MongoDBlibhwloc15
— required by XMRigpython3.11-venv
, pip
— for Python virtual environment and installing Db4Elibzmq5
— required by P2PoolPro Tip: For security and isolation, we recommend creating a dedicated Linux user for Db4E (e.g., db4e
). This step is optional, but considered a best practice.
MongoDB is not included in Debian’s default repositories. See the Installing MongoDB page for full instructions on setting up the official MongoDB Community Edition repository and installing the database.
Db4E is distributed as a PyPI package. It’s recommended to install it inside a virtual environment:
python3 -m venv db4e
. db4e/bin/activate
Once your virtual environment is activated:
pip install db4e
Launch Db4E from your virtual environment:
db4e
On first launch, you’ll be guided through the Initial Install screen.
You’ll be asked to provide:
Once you click Proceed, Db4E will perform an environment setup using elevated privileges via sudo
.
The db4e-initial-setup.sh
script performs the following:
/etc/sudoers.d/db4e
) to allow system control of Monero, P2Pool, and XMRig without prompting for a password/etc/systemd/system/
root
and sets the suid
bit so it can access CPU MSRs (model-specific registers) for optimized performanceFor the Initial Install to complete successfully, your user must be able to execute sudo
commands without being prompted for a password.
If you’re using the default Debian sudo configuration:
%sudo ALL=(ALL:ALL) ALL
You must temporarily change it to:
%sudo ALL=(ALL:ALL) NOPASSWD: ALL
⚠️ Important: After completing the Initial Install, you can safely revert this change.
To launch the application from your virtual environment:
db4e
Db4E will start in terminal UI (TUI) mode. If setup was successful, you’ll see the main dashboard interface.
The current release sets up the core environment and provides a functional TUI interface.
Coming soon:
Stay tuned — these features are actively in development.
In the meantime, you can follow updates on the Blog or join the discussion on GitHub Discussions.