This project provides a pre-configured Vagrant environment to run a cryptocurrency miner using cpuminer-multi on a Debian virtual machine.
Before you begin, ensure you have the following software installed on your host machine:
You can customize the mining settings by editing the provision.sh file in the root directory. Open the file and locate the following variables at the top:
# Mining options
ALGORITHM=x17
MINING_POOL_URL=stratum+tcp://yiimp.eu:3777
REVENUE_WALLET_ADDRESS=D5qHR7NsMnxTk3UcMuuwB1AppmcqA2cCt2- ALGORITHM: The mining algorithm to use (e.g.,
x17,scrypt,sha256d). Checkcpuminer-multidocumentation for supported algorithms. - MINING_POOL_URL: The URL of your mining pool (e.g.,
stratum+tcp://pool.example.com:3333). - REVENUE_WALLET_ADDRESS: Your cryptocurrency wallet address where rewards will be sent.
-
Clone the repository:
git clone <repository_url> cd <repository_name>
-
Start the Virtual Machine:
Run the following command to download the base box (Debian), create the VM, and provision it with the miner:
vagrant up
Note: The first time you run this, it may take several minutes to download the VM image and compile the mining software.
-
Mining:
Once the provisioning is complete and the VM is up, the miner will start automatically in the background (configured via
/etc/rc.local).
To check if the miner is running or to monitor its performance:
-
Connect to the VM:
vagrant ssh
-
Check the running process:
You can verify the miner process is active by running:
ps aux | grep cpuminerOr view system resource usage with
top(orhtopif installed):top
Look for the
cpuminerprocess in the list.
To stop the virtual machine and the miner:
vagrant haltTo completely remove the virtual machine:
vagrant destroy