Litecoin Mining with Ubuntu

Share on:

This is a quick how-to on getting started with Litecoin mining on Ubuntu.

Install AMD Catalyst Display Driver

To use the AMD card for video, download and install the AMD Catalyst Display Driver for Linux.

1$ unzip amd-catalyst-13.12-linux-x86.x86_64.zip
2$ chmod +x amd-catalyst-13.12-linux-x86.x86_64.run
3$ ./amd-catalyst-13.12-linux-x86.x86_64.run

Install AMD OpenCL

Install CGminer

To install CGminer for GPU mining we will need header files from the AMD Display Library (ADL) SDK so download it from the AMD ADL page. You can download CGminer from either Con Koliva’s personal website or Github. Github is used below.

Install CGminer with ADL:

1$ unzip ADL_SDK_6.0.zip -d ADL_SDK_6.0
2$ wget https://github.com/ckolivas/cgminer/archive/v3.7.2.tar.gz -O cgminer-3.7.2.tgz
3$ tar xvfz cgminer-3.7.2.tgz
4$ cp -p ADL_SDK_6.0/include/*.* cgminer-3.7.2/ADL_SDK/
5$ cd cgminer-3.7.2
6$ ./autogen.sh --enable-scrypt --enable-opencl
7$ sudo make install

After autogen, you should see something like the following:

CGminer autogen.sh results

 1------------------------------------------------------------------------
 2cgminer 3.7.2
 3------------------------------------------------------------------------
 4
 5Configuration Options Summary:
 6
 7  libcurl(GBT+getwork).: Enabled: -lcurl  
 8  curses.TUI...........: FOUND: -lncurses
 9  OpenCL...............: FOUND. GPU mining support enabled
10  scrypt...............: Enabled
11  ADL..................: SDK found, GPU monitoring support enabled
12
13  Avalon.ASICs.........: Disabled
14  BFL.ASICs............: Disabled
15  KnC.ASICs............: Disabled
16  BitForce.FPGAs.......: Disabled
17  BitFury.ASICs........: Disabled
18  Hashfast.ASICs.......: Disabled
19  Icarus.ASICs/FPGAs...: Disabled
20  Klondike.ASICs.......: Disabled
21  ModMiner.FPGAs.......: Disabled
22
23Compilation............: make (or gmake)
24  CPPFLAGS.............: 
25  CFLAGS...............: -g -O2
26  LDFLAGS..............:  -lpthread
27  LDADD................: -ldl -lcurl   compat/jansson-2.5/src/.libs/libjansson.a -lpthread -L/opt/AMDAPP/lib/x86_64 -lOpenCL    -lm  -lrt
28
29Installation...........: make install (as root if needed, with 'su' or 'sudo')
30  prefix...............: /usr/local

Create the Shell Script

Create cgminer.sh to set ENV.

1#!/bin/sh
2export DISPLAY=:0
3export GPU_MAX_ALLOC_PERCENT=100
4export GPU_USE_SYNC_OBJECTS=1
5/path/to/cgminer --scrypt --url=stratum+tcp://<fqdn1>:<port1> --userpass=<user1>:<pass1> --url=stratum+tcp://<fqdn2>:<port2> --userpass=<user2>:<pass2> --failover-only --thread-concurrency=22400 --intensity=20 --temp-target 80 --temp-cutoff 85 --gpu-po
6wertune 20 --thread-concurrency 24000 --gpu-engine 1100

Happy Mining!

That’s all there is to it. Happy mining!

comments powered by Disqus