How To Install CGMiner In Linux To Mine Litecoins
You may’ve heard of mining Litecoins in Linux is more fruitful than Windows. In fact, this is true. Linux has many advantages over Windows when it comes to USB Flash Drive Install (No HDD Required), Less hardware requirements (i.e. RAM), Can be administrated remotely and last but not least it’s free and secure of malware attacks.
Linux has it’s drawbacks too, for example no support for GPU Overclocking and hard to understand for newbies. If you are a Linux newbie and trying to set up your mining rig, just follow the step-by-step instructions as they’re written below.
Instructions To Install CGMiner in Linux
Step 1. Make sure you have installed AMD catalyst drivers, if you don’t the follow these instructions first (How To Install AMD ATI Drivers In Ubuntu Linux) and then proceed to Step 2.
Step 2. Open terminal and copy/paste/execute following commands.
- Download CGMiner from official source (You can always check the latest version here).
- Unzip it to a directory with following command.
tar jxvf cgminer-3.3.1-x86_64-built.tar.bz2
- If you got libcurl4 error, install the curl lib
sudo apt-get install curl
- Now check if CGMiner detects all of your GPUs properly or not.
Step 3. That’s it your CGMiner is ready, now we just need to execute a simple command to mine Litecoins (Altcoins).
- Launch your terminal and enter to the CGMiner directory with following command.
- Now it’s time to execute the final command as per your hardware. I used following command on my Sapphire 7950 GPU using 21712 thread concurrency and 18 Intensity. You can change these parameters according to your requirements.
- Replace -u and -p with your own username and password.
./cgminer --scrypt -o http://coinotron.com:3334 -u btcpedia.1 -p lm3524lm --thread-concurrency 21712 -I 18 -w 256 -g 1
There is a mining hardware comparison on the Litecoin wiki where you can find various configuration settings for various GPU’s.