How to install Xmrig on Linux? - LinuxForDevices (2024)

XMRig is an optimized, high performing, open source, cross-platform RandomX, KawPow, CryptoNight and GhostRider unified CPU/GPU miner for Monero and CrytoNote coins and a RandomX benchmark. It is an open source software so we can either download the binaries to use the miner or we can compile our own from its source. Both the binaries and source can be found on the officialGitHub repository for Windows, Linux, macOS, and FreeBSD. Mining backends CPU (x86/x64/ARMv7/ARMv8) OpenCL for AMD GPUs, CUDA for NVIDIA GPUs via external CUDA plugin. Xmrig is a popular choice for Monero mining. The standard fee of the application is 1% of mined coins. The fee can be increased or completely turned off.

What is Crypto Mining

Bitcoin, Monero and several other cryptocurrencies use mining to generate new coins and verify transactions. This involves many computers around the world working together to check and keep the blockchains safe, which are virtual records of cryptocurrency transactions. Computers on the network receive new coins in return for contributing their processing power. It’s a virtuous circle: the miners maintain and secure the blockchain, the blockchain awards them coins, the coins provide an incentive for the miners to maintain the blockchain.

Few notes before using Xmrig

Before we dive into the installation process, let’s first take a look at some of the things you will have to consider for installing and using Xmrig on our Linux PC to attain an optimal performance.

  • Crypto mining can be a financial activity.
  • Mining requires you to have a decent PC as well as a powerful GPU.
  • A Major hurdle for crypto mining is power consumption, so check the expenditure to earning ratio.
  • GPU (Graphics Card) is required for a higher hash rate.
  • Crypto mining reward is backed by a decentralized network.

Make sure to keep these considerations before proceeding with the installation.

In this module, we will see how to install Xmrig on our Linux PC.

Installing Xmrig

here are two ways through which you can install Xmrig on our Linux PC. We will discuss all methods one by one.

  • Downloading from Xmrig official website
  • Using Snap

Let’s see each method one by one.

Method 1: Downloading from Xmrig official website

Open your browser and search for Xmrig website. And click on Download button as indicated below.

How to install Xmrig on Linux? - LinuxForDevices (1)

Select a right Tab according to your Operating System among Windows, Ubuntu, Linux, FreeBSD. We here only look for Ubuntu and Linux (in general).

Ubuntu

For now, Select Ubuntu tab for Ubuntu OS. For other Linux distributions, skip this Ubuntu section. Under this Ubuntu tab, click on one of three available options among 20.04 Focal Fossa, 18.04 Bionic Beaver or 16.04 Xenial Xerus to proceed to download.

How to install Xmrig on Linux? - LinuxForDevices (2)

Clicking on download option for 20.04 Focal Fossa, assuming you have Ubuntu 20.04 Focal Fossa OS.

How to install Xmrig on Linux? - LinuxForDevices (3)

After downloading the above file, we have to decompress it. Open your Terminal, and run the below command:

cd Downloads/tar -zxvf xmrig-6.21.1-focal-x64.tar.gz
How to install Xmrig on Linux? - LinuxForDevices (4)

After this, skip to the XMRIG setup section at the bottom.

For other Linux distributions

Select the Linux tab if you are using any other Linux distro.

How to install Xmrig on Linux? - LinuxForDevices (5)

There are two options for download:

  • Generic: This will utilize both CPU and GPU. So if you have a GPU is installed, download this option if you want to utilize your CPU as well as GPU at some point of time.
  • Static: Static will not work for GPUs, whether it is installed or not. Static only works with the CPU. Download this option, if you want just CPU mining or Generic does not work for you.

We’re going to use the Generic one for demonstration purposes. After downloading the above file, we have to decompress it. Just open a fresh Terminal tab, and run the below command:

cd Download/tar -zxvf xmrig*.tar.gz
How to install Xmrig on Linux? - LinuxForDevices (6)

After this, go to Xmrig setup section below at last.

Method 2: Using Snap

If you don’t have installed snap on your Linux PC, follow this guide and install using the commands according to your OS. For Debian, follow below given command:

sudo apt updatesudo apt install snapdsudo snap install core
How to install Xmrig on Linux? - LinuxForDevices (7)

Now, Install Xmrig using snap:

sudo snap install xmrig
How to install Xmrig on Linux? - LinuxForDevices (8)

Now, we have successfully installed Xmrig using snap on our PC. But we can not use to mine crypto before setting it up properly.

Setting up Xmrig

Let’s see how to set up Xmrig to be used for crypto mining.

After the installation is complete, we need to create a configuration file config.json so that xmrig can mine crypto. We can use wizard feature from xmrig website to create our config.json file and download it. You can also use this getmonera page or xmrig doc page for more help.

Then, open decompressed directory and replace already available config.json file with you own newly downloaded config.json file.

How to install Xmrig on Linux? - LinuxForDevices (9)

Open a fresh Terminal tab, and run the below command:

cd Downloads/cd xmrig-6.21.1/./xmrig
How to install Xmrig on Linux? - LinuxForDevices (10)

Now, we are successfully able to run xmrig to mine the Monero coin. Crypto mining is associated with finance, so please make config.json file correctly.

Wrapping Up

In this module, we discussed Xmrig which is mostly used for mining Monero coin, and how to install it on our Linux system. We installed Xmrig on our Linux in two different ways, one way by downloading a zip file of Xmrig from their official website, secondly using snap.

We hope this article helped you to get you started in the mining journey.

Also Read

  • What is a Crypto Exchange?
  • How to Invest in Crypto?
  • Ethereum vs. Lower Value Cryptocurrencies: A Comprehensive Comparison
How to install Xmrig on Linux? - LinuxForDevices (2024)
Top Articles
Thermo Fisher Scientific hiring Formulation Technician II in High Point, North Carolina, United States | LinkedIn
15 Hot Online Marketplaces Beyond Craigslist for Selling Your Stuff - From Frugal to Free
Spasa Parish
Rentals for rent in Maastricht
159R Bus Schedule Pdf
Sallisaw Bin Store
Black Adam Showtimes Near Maya Cinemas Delano
5daysON | Hoofddorp (70089000)
Espn Transfer Portal Basketball
Pollen Levels Richmond
11 Best Sites Like The Chive For Funny Pictures and Memes
Things to do in Wichita Falls on weekends 12-15 September
Momokun Leaked Controversy - Champion Magazine - Online Magazine
‘An affront to the memories of British sailors’: the lies that sank Hollywood’s sub thriller U-571
Tyreek Hill admits some regrets but calls for officer who restrained him to be fired | CNN
Haverhill, MA Obituaries | Driscoll Funeral Home and Cremation Service
Ems Isd Skyward Family Access
Sauce 423405
Elektrische Arbeit W (Kilowattstunden kWh Strompreis Berechnen Berechnung)
Omni Id Portal Waconia
Kellifans.com
Banned in NYC: Airbnb One Year Later
Four-Legged Friday: Meet Tuscaloosa's Adoptable All-Stars Cub & Pickle
Model Center Jasmin
Ice Dodo Unblocked 76
Is Slatt Offensive
Labcorp Locations Near Me
Storm Prediction Center Convective Outlook
Experience the Convenience of Po Box 790010 St Louis Mo
Fungal Symbiote Terraria
modelo julia - PLAYBOARD
Abby's Caribbean Cafe
Joanna Gaines Reveals Who Bought the 'Fixer Upper' Lake House and Her Favorite Features of the Milestone Project
Tri-State Dog Racing Results
Trade Chart Dave Richard
Lincoln Financial Field Section 110
Free Stuff Craigslist Roanoke Va
Stellaris Resolution
Wi Dept Of Regulation & Licensing
Pick N Pull Near Me [Locator Map + Guide + FAQ]
Horseheads Schooltool
Crystal Westbrooks Nipple
Ice Hockey Dboard
Über 60 Prozent Rabatt auf E-Bikes: Aldi reduziert sämtliche Pedelecs stark im Preis - nur noch für kurze Zeit
Wie blocke ich einen Bot aus Boardman/USA - sellerforum.de
Craigslist Pets Inland Empire
Infinity Pool Showtimes Near Maya Cinemas Bakersfield
Hooda Math—Games, Features, and Benefits — Mashup Math
How To Use Price Chopper Points At Quiktrip
Maria Butina Bikini
Busted Newspaper Zapata Tx
Latest Posts
Article information

Author: Lilliana Bartoletti

Last Updated:

Views: 5919

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Lilliana Bartoletti

Birthday: 1999-11-18

Address: 58866 Tricia Spurs, North Melvinberg, HI 91346-3774

Phone: +50616620367928

Job: Real-Estate Liaison

Hobby: Graffiti, Astronomy, Handball, Magic, Origami, Fashion, Foreign language learning

Introduction: My name is Lilliana Bartoletti, I am a adventurous, pleasant, shiny, beautiful, handsome, zealous, tasty person who loves writing and wants to share my knowledge and understanding with you.