Xmrig Config

Xmrig Configuration Documentation for Monero Mining

This documentation provides a detailed explanation of how your system is configured for mining Monero using xmrig. It includes descriptions of both the systemd service file and the configuration specifics.

Systemd Service File

Overview

The systemd service file orchestrates the execution of xmrig in a tmux session. This setup ensures that the miner runs continuously, even if the terminal or user logs out, by leveraging tmux's capabilities.

File Details

[Unit]
Description=Xmrig

[Service]
User=poslop
Type=forking
ExecStart=/usr/bin/tmux new -s xmrig -d 'sudo /usr/bin/xmrig/xmrig'
RemainAfterExit=true
ExecStop=tmux send-keys -t xmrig C-c

[Install]
WantedBy=multi-user.target

Explanation

Xmrig Configuration

Config File Location

The configuration for xmrig is stored in:

/usr/bin/xmrig/config.json

This JSON file contains various settings specific to your mining operation, such as algorithm type, pool information, and performance tuning parameters.

Connection Details

Summary

This configuration ensures that xmrig runs effectively in a dedicated tmux session under the user poslop, connected securely to your chosen mining pool. The systemd service management provides robustness and automatic recovery on boot or after logouts.

This setup is optimized for continuous Monero mining operations, leveraging both system-level services and network configurations for secure, efficient operation.

Ai generated by Phi4

Revision #2
Created 2025-02-19 20:03:15 UTC by poslop
Updated 2025-02-19 20:05:10 UTC by poslop