Monero is an open-source, decentralized virtual currency. It is currently traded on major virtual currency exchanges with the ticker XMR. Its Market Cap ranks 9th among all virtual currencies, higher than high-circulation currencies such as Ethereum Classic (ETC). Currently, each XMR is worth approximately $110. Monero wallet: https://hitbtc.com/. After registration, you will get the Monero wallet address in the background. There are many Monero mining pools. The official website http://moneropools.com/ lists many mining pools. You can choose the mining pool you want to join. I chose xmr.nanopool.org. 1. Tutorial on installing Monero mining under CentOS 7 init yum -y install centos-release-scl cmake3 hwloc-devel libmicrohttpd-devel openssl-devel yum -y install devtoolset-4-gcc* scl enable devtoolset-4 bash replace cmake yum -y remove cmake wget https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz tar zxf cmake-3.7.2.tar.gz cd cmake-3.7.2 ./bootstrap make && make install export PATH=$PATH:/usr/local/bin/ install git clone https://github.com/fireice-uk/xmr-stak-cpu xmr-stak cd xmr-stak cmake . make install 2. Tutorial on installing and mining Monero in Ubuntu <br />Upgrade and initialization add-apt-repository ppa:ubuntu-toolchain-r/test apt update apt install gcc-5 g++-5 make update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1 --slave /usr/bin/g++ g++ /usr/bin/g++-5 curl -L http://www.cmake.org/files/v3.4/cmake-3.4.1.tar.gz | tar -xvzf - -C /tmp/ cd /tmp/cmake-3.4.1/ && ./configure && make && sudo make install && cd - update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force apt install libmicrohttpd-dev libssl-dev libhwloc-dev Install git clone https://github.com/fireice-uk/xmr-stak-cpu xmr-stak cd xmr-stak cmake . make install 3. Tutorial on installing Monero mining on Debian echo "deb http://ftp.us.debian.org/debian unstable main contrib non-free" >> /etc/apt/sources.list.d/unstable.list apt-get update apt-get install -t unstable gcc-5 g++-5 make update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1 --slave /usr/bin/g++ g++ /usr/bin/g++-5 curl -L http://www.cmake.org/files/v3.4/cmake-3.4.1.tar.gz | tar -xvzf - -C /tmp/ cd /tmp/cmake-3.4.1/ && ./configure && make && make install && cd - update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force apt install libmicrohttpd-dev libssl-dev libhwloc-dev git clone https://github.com/fireice-uk/xmr-stak-cpu xmr-stak cd xmr-stak cmake . make install 4. Install minergate in UBUNTU16.04 1. Register at the mining pool (withdrawal from their pool is only 0.1 XMR. And the mining machines are basically one-click packages and simple GUI. Easy to operate.): https://minergate.com/ 2. Mining machine download address: https://cn.minergate.com/download/deb-cli 3. Install the mining machine with one click : curl -L -o minergate-cli-release.deb https://cn.minergate.com/download/deb-cli && dpkg -i minergate-cli-release.deb 4. Idle mining: screen -S mine minergate-cli -user YOUR-EMAIL -bcn 2 -fcn+xmr 3 You can set different cores to mine different ores at the same time. If you do not fill in the number of cores, all cores will be used by default. YOUR-EMAI: Your registered email address -bcn 2: Use 2 cores to mine BCN -fcn+xmr 3: use 3 cores to mine FCN+XMR V. Related issues 1. Change the donation ratio Edit the file donate-level.h, find constexpr double fDevDonationLevel, change the corresponding value, and recompile. 2. Edit xmr-stak/bin/config.txt, fill in your own wallet address, mining pool address, Payment ID and other information and fill in the CPU configuration information (fine-tunable), then execute ./xmr-stak-cpu to automatically start mining. The main changes are as follows: a. Lines 25 and 26 “cpu_threads_conf” : null, to: “cpu_threads_conf” : [ { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 5 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 },
], Change it according to your CPU. b. “wallet_address”: Change to your own wallet address c. "pool_address": Change the mining pool depending on the situation d、"httpd_port" : 0, Change to other ports to view mining status in real time 3. After installation and setup, start mining screen -S mine ./xmr-stak-cpu Execute under xmr-stak/bin/. 4. Solution to MEMORY ALLOC FAILED: mmap failed sysctl -w vm.nr_hugepages=128 Then edit the file /etc/security/limits.conf and add the following two lines before or before the second to last line: soft memlock 262144 hard memlock 262144 or echo "* soft memlock 262144" >> /etc/security/limits.conf echo "* hard memlock 262144" >> /etc/security/limits.conf Then reboot or log out and log back in. 5. About donations Edit the donate-level.h file under xmr-stak and change constexpr double fDevDonationLevel = 2.0 / 100.0; Change to constexpr double fDevDonationLevel = 0.5 / 100.0; Other ratios can also be used. 6. Official download of monero client (available for various systems) https://getmonero.org/downloads/ https://github.com/fireice-uk/xmr-stak-cpu 7. My configuration file "cpu_threads_conf" : [ { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 5 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 }, ], "use_slow_memory" : "warn", "nicehash_nonce" : false, "aes_override" : null, "use_tls" : false, "tls_secure_algo" : true, "tls_fingerprint" : "", "pool_address" : "xmr-eu1.nanopool.org:14444", "wallet_address" : "42Y3G8N9XXNQs1XNQeTBHTNot1iEBpHcT2EkoCQMnaEJT2N2jg7TbKYjXqrT3anyZ22j7DEE74GkbVcQFyH2nNiC3depW2J", "pool_password" : "", "call_timeout" : 10, "retry_time" : 10, "giveup_limit" : 0, "verbose_level" : 3, "h_print_time" : 60, "daemon_mode" : true, "output_file" : "", "httpd_port" : 1024, "prefer_ipv4" : true, 8. Fill in the Payment ID and wallet address: Generate Payment ID: openssl rand -hex 32 The format for filling in the wallet address is: Wallet Address.Payment ID 10. XMR transaction address https://hitbtc.com/exchange/XMR-to-BTC via: https://qing.su/article/129.html, http://www.hostloc.com/space-uid-3598.html, http://www.hostloc.com/thread-406398-1-1.html |