Author Topic: [GUIDE] Headless ATI/AMD Scrypt Middlecoin GPU Mining Tutorial  (Read 3067 times)

0 Members and 1 Guest are viewing this topic.

Offline Delinquency

  • Sr. Member
  • ****
  • Posts: 370
    • View Profile
This guide will help you run an scrypt miner more efficiently and headless as compared to a VRAM consuming KDE on your mining rig.

Unrelated to Memorycoin, however, this guide suggests to promote the sale of Memorycoin through BTC.
To generate a BTC Address, create an account on BTer, generate a BTC address, then use that address to mine Middlecoin, receive BTC, then buy MMC and withdraw to your MMC wallet.

Middlecoin generally has a 4% fee but always mines the most profitable scrypt coin on the market.

Now let's get to the guide.

[Note: This is a similar guide to mine MMC, but with more steps to compile CGminer.]

1. Download the latest Debian Net installer and put it on a USB drive/disk [Note: a USB Drive is faster and environmentally friendly]

Pen Drive Linux (Universal USB Installer)
Code: [Select] Debian 7.4.0 64-bit Net Installer [Mirror:]
Code: [Select] Debian 7.4.0 32-bit Net Installer [Mirror:]
Code: [Select]

2. Install.
 Only select the packages for boxes SSH Server and Standard System Utilities. Uncheck the desktop environment and others.
   Tip: Use the mirror when selecting the package server.

3. Login to your server through SSH or use the console.

4. Add 'non-free' and 'contrib' to the end of each deb line in /etc/apt/sources.list
apt-get update; apt-get install nano -y;
nano /etc/apt/sources.list;

It should look something like this:
Code: [Select]
deb wheezy main contrib non-free
deb-src wheezy main

deb wheezy/updates main contrib non-free
deb-src wheezy/updates main

# wheezy-updates, previously known as 'volatile'
deb wheezy-updates main contrib non-free
deb-src wheezy-updates main

5. Now install the required packages. [Not sure if you need libudev-dev]
Code: [Select]
apt-get clean && apt-get update && apt-get upgrade
apt-get -fy install bzip2 fglrx-driver libcurl4-openssl-dev libncurses5-dev libudev-dev ntp screen unzip xdm xorg
apt-get -fy purge libfglrx
apt-get -fy install firmware-linux-nonfree
apt-get clean

6. Download the latest AMD Catalyst Drivers from the AMD website.
This step may be annoying because AMD's website requires a web referrer to download any file on their server through wget. An alternative would be to upload it to a web server or even just upload it to your server through SFTP.

a. Please place the AMD Catalyst Drivers Archive into the /root or base directory.

7. Unzip and run the file.
cd ~ && unzip && sh --force
Accept all the dialogues.

8. Download the AMD APP SDK
Code: [Select]
Code: [Select]

a. Upload the tgz archive onto your server. (preferably in /root)

b. Install AMD APP SDK
Code: [Select]
cd ~;mkdir app-sdk && cd app-sdk && tar xzf ~/AMD-APP-SDK-v2.9-lnx*.tgz && sh && cd ..Accept all the dialogues and continue.

9. Fix the X-Server settings
Code: [Select]
rm /etc/X11/xorg.conf && aticonfig --adapter=all --initial
10. Add this bottom of your /etc/profile file
nano /etc/profile
Code: [Select]
export DISPLAY=:0
export XAUTHORITY=/.Xauthority
11. Restart.
Code: [Select]
12. Download and untar cgminer 3.7.2
Code: [Select]
cd ~;wget
tar jxf cgminer-3.7.2.tar.bz2

13. Download the ADL_SDK Libraries
Code: [Select]
a. Unzip and extract ADL_SDK in its own folder; Take what is required from the library and place it in the cgminer's compilation directory.
Code: [Select]
cd ~;mkdir ADL_SDK;cd ADL_SDK; unzip ../
cp include/*.h ../cgminer-3.7.2/ADL_SDK/

b. Change directory to the cgminer-3.7.2:
Code: [Select]
cd ~/cgminer-3.7.2;
14. Compile!
Code: [Select]
CFLAGS="-O2 -Wall -march=native -I/opt/AMDAPP/include" LDFLAGS="-L/opt/AMDAPP/lib/x86_64" ./configure --enable-opencl --enable-scrypt --without-libudev

Note: If you compiling on 32-bit, you may want to find the real LDFLAGS= directory for AMD_APP Lib in /opt/AMDAPP/lib/ with your OS's architecture. [Presumably x86, i386 or something.]

a. Install:
Code: [Select]
make; make install; cp cgminer ~; cd ~; chmod +x cgminer
15. Run!
Voila! Your cgminer executable is now located in the root folder.

Run it!
Code: [Select]
16. Post Install: CGMiner Settings

Input the URL as
Code: [Select]
Code: [Select]
BTER's BTC Wallet Deposit Address
Code: [Select]
Wait for your GPU to start mining!

To fine-tune your configuration, modify the cgminer.conf at ~/.cgminer/cgminer.conf.

Code: [Select]
nano ~/.cgminer/cgminer.conf
a. You can find your Miner Stats at this address:
Code: [Select]
b. Auto-Start upon reboot

Add this to your crontab -e:
Code: [Select]
crontab -e:
@reboot ~/ &
nano ~/;

Code: [Select]
sleep 60;
screen -mDs cg /root/cgminer &

Tips in MMC

Thanks for reading!
« Last Edit: March 01, 2014, 08:54:00 am by Delinquency »