Under the independent server Ubuntu system, use CPU to mine XMR coins

888u

Last update at :2024-05-17,Edit by888u

It has been introduced before, as follows: 1. MinerGate: a mining station suitable for Windows, Mac, Ubuntu, Fedora, etc. 2. Use a dedicated server to mine Monero3 and install Litecoin mining on CentOS 7

Under the Ubuntu system, mining efficiency is the highest. Below is the tutorial.

1. Obtain wallet and Payment-ID 1. Obtain Monero wallet for wallet: https://hitbtc.com/. After registration, obtain the Monero wallet address in the background.

After entering, go down and find XMR Monero

The QR code or the string of characters is the wallet address

2. Obtain Payment-ID

a. Native generation

openssl rand -hex 32

b. To view online, enter https://xmr.nanopool.org/ and paste your wallet address in the upper right corner

Payment-ID will appear, as well as your mining status

3. Set the minimum withdrawal to 0.3XMR

2. Install the mining program under SSH. Assume that it is in the /root directory. 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

Installation

git clone https://github.com/fireice-uk/xmr-stak-cpu xmr-stak cd xmr-stak cmake. make install

3. Set the CPU, wallet, and Payment-ID1. Set the CPU, wallet, and Payment-ID in /root/xmr-stak/bin/config.txt. You can also replace it with the following files. a. Modify the CPU information: cpu_threads_conf part, it is recommended that 50% of the CPU core number b, wallet, Payment-ID wallet_address. c. Change pool_address to one closest to your server. d. Change httpd_port to your favorite port, and then use IP:port to check the operation status

"cpu_threads_conf" : [ { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 }, { "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" : "wallet address.Payment-ID", "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,

2. For the donation ratio, edit the donate-level.h file under xmr-stak and change constexpr double fDevDonationLevel = 2.0 / 100.0; to constexpr double fDevDonationLevel = 0.5 / 100.0; you can also change it to other ratios.

4. Start mining and enter the /root/xmr-stak/bin directory and run

screen -S mine ./xmr-stak-cpu

You can start mining in the background.

5. Related knowledge 1. The CPU is set up with 4 cores and 8 threads. Marking 1 core and 2 threads 0, 2, 4, and 6 means the first thread of the 4 cores, that is, each core draws one thread 0123. That is, only the 4 threads of the first 2 cores are used, and the 4 threads of the last 2 cores are not used. (I don’t agree with writing this way) You need to test this to see whether 8 threads from 0 to 7 are used together, or only one thread per core is used. It is said that there are many hyper-threaded CPUs, and running multiple threads together is not as fast as running with a single thread

via: https://qing.su/article/129.html, http://www.hostloc.com/space-uid-3598.html, http://www.hostloc.com/thread-406398 -1-1.html、http://www.hostloc.com/thread-411645-1-2.html

Recommended site searches: virtual host rental, domain name registration inquiry and filing inquiry network, domain name query, registration-free space, virtual host application, Ministry of Industry and Information Technology website registration system, Dongguan server rental, Hong Kong server rental, cloud virtual host,

Under the independent server Ubuntu system, use CPU to mine XMR coins

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码