Sebelum membahas cara install XMRig CPU Miner kita perlu mengetahui XMRig itu sendiri. XMRig adalah perangkat lunak penambangan yang ditulis dalam bahasa pemrograman C++. Ini adalah perangkat lunak sumber terbuka yang tersedia untuk diunduh dari repositori resmi GitHub. Untuk tutorial ini, kami akan menggunakan server Ubuntu 20.04. Jika Anda menggunakan desktop Ubuntu 20.04. Jika Anda terhubung ke server Ubuntu 20.04 dari Windows, Anda dapat menggunakan Putty untuk menyambung melalui SSH. Pastikan untuk masuk dengan akun pengguna root.
Siapkan Ubuntu 20.04 untuk Menginstal XMRig CPU Miner

Sebelum memulai proses instalasi XMRig di mesin Ubuntu 20.04, langkah awal yang perlu dilakukan adalah melakukan beberapa pemeliharaan awal serta menginstal beberapa dependensi. Oleh karena itu, masuklah ke mesin Anda dan eksekusi perintah berikut untuk memperbarui cache apt.
Jalankan perintah berikut ini :
apt update
apt upgrade
Setelah itu jalankan perintah berikut ini :
apt-get install git build-essential cmake automake libtool autoconf
Jika sudah selesai kita sudah siap untuk melakukan instalasi XMRig pada Ubuntu 20.04.
Install XMRig CPU Miner on Ubuntu 20.04
Kita akan mendownload penambang langsung dari repositori resmi GitHub. Untuk melakukan ini, kita dapat menggunakan perintah git clone. Mari kita lakukan itu sekarang.
git clone https://github.com/xmrig/xmrig.git
Buat direktori build dan masuk ke direktori scripts
mkdir xmrig/build && cd xmrig/scripts
Jalankan instali dan masuk ke direktori build sebelumnya
./build_deps.sh && cd ../build
Install XMRig CPU Miner di Ubuntu 20.04
cmake .. -DXMRIG_DEPS=scripts/deps
make -j$(nproc)
Proses kedua perintah tersebut akan memakan waktu lebih lama untuk diselesaikan. Setelah selesai, Anda akan siap untuk menambang Monero di Ubuntu 20.04.
Mulai menambang Monero dengan XMRig CPU Miner di Ubuntu 20.04
Jika Anda telah berhasil menyelesaikan instruksi di atas, sekarang Anda telah siap untuk menambang XMR pada mesin Ubuntu 20.04 atau Ubuntu 18.04 Anda. Ada dua metode yang dapat Anda gunakan untuk menggunakan penambang.
Tidak disarankan untuk menggunakan baris perintah secara langsung. Kami akan meneruskan argumen langsung dari baris perintah dengan satu perintah. Di bawah ini adalah perintah yang harus digunakan.
/root/xmrig/build/./xmrig -a cryptonight -o stratum+tcp://pool.supportxmr.com:5555 -u MoneroAddress -p MinerIdentifier:Email -t 1
Perintah di atas akan mulai menambang Monero di supportxmr.com menggunakan 1 CPU. Anda perlu mengubah MoneroAddress, MinerIdentifier, Email, dan jumlah thread Anda dengan nilai -t di bagian akhir sesuai kebutuhan Anda.
Metode kedua, yang lebih disukai, melibatkan penggunaan file konfigurasi JSON. Dalam metode ini, konfigurasi penambang disimpan dalam file JSON. Mari kita buat file konfigurasi ini di dalam direktori build.
nano /root/xmrig/build/config.json
Gunakanlah wizard konfigurasi untuk membuat konfigurasi penambang XMRig Anda. Setelah menghasilkan konfigurasi, tempelkan keluarannya ke dalam file config.json. Hasilnya seharusnya mirip dengan ini:
{
“autosave”: true,
“cpu”: true,
“opencl”: false,
“cuda”: false,
“pools”: [
{
“url”: “pool.supportxmr.com:443”,
“user”: “4A5Zv5vpNcG4Tk7pF6wRHha6jZEgoF9UgFv49qijdHxeLSLYCWyCbHZA6sqBiWRSwcBcnBrJuEWxjYgtwJAQnzcT3BDvq8m”,
“pass”: “test”,
“keepalive”: true,
“tls”: true
}
]
}
Sekarang, untuk menutup file tersebut, tekanlah tombol Ctrl + x. Kemudian, gunakanlah perintah berikut untuk memulai penambang dan mulai menambang Monero di Ubuntu 20.04.
/root/xmrig/build/./xmrig
Happy Mining…
I was recommended this website by my cousin I am not sure whether this post is written by him as nobody else know such detailed about my difficulty You are wonderful Thanks
helloI like your writing very so much proportion we keep up a correspondence extra approximately your post on AOL I need an expert in this space to unravel my problem May be that is you Taking a look forward to see you
I am not sure where youre getting your info but good topic I needs to spend some time learning much more or understanding more Thanks for magnificent info I was looking for this information for my mission
You appear to be able to read my thoughts. It’s as though you authored the book on this subject or something. You seem to know so much about it. I think a few graphics could help to emphasise the point a little bit more, but other than that, this is a terrific blog, and I will surely be back.
Fantastic site Lots of helpful information here I am sending it to some friends ans additionally sharing in delicious And of course thanks for your effort
I loved as much as youll receive carried out right here The sketch is attractive your authored material stylish nonetheless you command get bought an nervousness over that you wish be delivering the following unwell unquestionably come more formerly again as exactly the same nearly a lot often inside case you shield this hike
Obrigado, estou procurando informações sobre esse tópico há algum tempo e a sua é a melhor que descobri até agora. Mas e em relação aos resultados financeiros? Você tem certeza sobre o fornecimento
Its like you read my mind You appear to know so much about this like you wrote the book in it or something I think that you can do with a few pics to drive the message home a little bit but instead of that this is excellent blog A fantastic read Ill certainly be back
Thank you for the good writeup It in fact was a amusement account it Look advanced to far added agreeable from you However how could we communicate
Não tenho certeza de onde você está conseguindo suas informações, mas é um bom tópico. Preciso passar algum tempo aprendendo muito mais ou entendendo mais. Obrigado pelas informações magníficas. Eu estava procurando essas informações para minha missão
Wonderful beat I wish to apprentice while you amend your web site how could i subscribe for a blog web site The account aided me a acceptable deal I had been a little bit acquainted of this your broadcast provided bright clear idea
Hello my loved one I want to say that this post is amazing great written and include almost all significant infos I would like to look extra posts like this
Thanks I have just been looking for information about this subject for a long time and yours is the best Ive discovered till now However what in regards to the bottom line Are you certain in regards to the supply
Just wish to say your article is as surprising The clearness in your post is just cool and i could assume youre an expert on this subject Fine with your permission allow me to grab your RSS feed to keep updated with forthcoming post Thanks a million and please keep up the enjoyable work
I loved as much as youll receive carried out right here The sketch is tasteful your authored material stylish nonetheless you command get bought an nervousness over that you wish be delivering the following unwell unquestionably come more formerly again since exactly the same nearly a lot often inside case you shield this hike
certainly like your website but you need to take a look at the spelling on quite a few of your posts Many of them are rife with spelling problems and I find it very troublesome to inform the reality nevertheless I will definitely come back again