211
MemoryCoin / [GUIDE] Headless ATI/AMD Scrypt Middlecoin GPU Mining Tutorial
« on: February 17, 2014, 08:45:19 pm »
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.]
Steps
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)
2. Install.
Only select the packages for boxes SSH Server and Standard System Utilities. Uncheck the desktop environment and others.
Tip: Use the cdn.debian.net 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
It should look something like this:
5. Now install the required packages. [Not sure if you need libudev-dev]
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.
7. Unzip and run the file.
8. Download the AMD APP SDK
a. Upload the tgz archive onto your server. (preferably in /root)
b. Install AMD APP SDK
9. Fix the X-Server settings
10. Add this bottom of your /etc/profile file
12. Download and untar cgminer 3.7.2
13. Download the ADL_SDK Libraries
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.
b. Change directory to the cgminer-3.7.2:
14. Compile!
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:
15. Run!
Voila! Your cgminer executable is now located in the root folder.
Run it!
16. Post Install: CGMiner Settings
Input the URL as
Username:
Password:
Wait for your GPU to start mining!
To fine-tune your configuration, modify the cgminer.conf at ~/.cgminer/cgminer.conf.
a. You can find your Miner Stats at this address:
b. Auto-Start upon reboot
Add this to your crontab -e:
nano ~/startup.sh;
Tips in MMC
MVHuEf3C7EoANzq7BMg7MLgiFY57S4kh5v
Thanks for reading!
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.]
Steps
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]
http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
Debian 7.4.0 64-bit Net Installer [Mirror: Steadfast.net]Code: [Select]
http://mirror.steadfast.net/debian-cd/7.4.0/amd64/iso-cd/debian-7.4.0-amd64-netinst.iso
Debian 7.4.0 32-bit Net Installer [Mirror: Steadfast.net]Code: [Select]
http://mirror.steadfast.net/debian-cd/7.4.0/i386/iso-cd/debian-7.4.0-i386-netinst.iso
2. Install.
Only select the packages for boxes SSH Server and Standard System Utilities. Uncheck the desktop environment and others.
Tip: Use the cdn.debian.net 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
Quote
apt-get update; apt-get install nano -y;
nano /etc/apt/sources.list;
It should look something like this:
Code: [Select]
deb http://cdn.debian.net/debian/ wheezy main contrib non-free
deb-src http://cdn.debian.net/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main
# wheezy-updates, previously known as 'volatile'
deb http://cdn.debian.net/debian/ wheezy-updates main contrib non-free
deb-src http://cdn.debian.net/debian/ 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.
Quote
http://support.amd.com/en-us/download/desktop?os=Linux+x86a. Please place the AMD Catalyst Drivers Archive into the /root or base directory.
7. Unzip and run the file.
Quote
cd ~ && unzip amd-catalyst-13.12-linux-x86.x86_64.zip && sh amd-catalyst-13.12-linux-x86.x86_64.run --forceAccept all the dialogues.
8. Download the AMD APP SDK
Code: [Select]
http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/
Code: [Select]
AMD-APP-SDK-v2.9-lnx64.tgz
OR
AMD-APP-SDK-v2.9-lnx32.tgz
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 Install-AMD-APP.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
Quote
nano /etc/profile
Code: [Select]
export DISPLAY=:0
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1
export XAUTHORITY=/.Xauthority
11. Restart.Code: [Select]
'reboot'
12. Download and untar cgminer 3.7.2
Code: [Select]
cd ~;wget http://ck.kolivas.org/apps/cgminer/3.7/cgminer-3.7.2.tar.bz2
tar jxf cgminer-3.7.2.tar.bz2
13. Download the ADL_SDK Libraries
Code: [Select]
http://developer.amd.com/tools-and-sdks/graphics-development/display-library-adl-sdk/
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 ../ADL_SDK_6.0.zip
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]
~/cgminer
16. Post Install: CGMiner Settings
Input the URL as
Code: [Select]
middlecoin.com:3333
Username:
Code: [Select]
BTER's BTC Wallet Deposit Address
Password:
Code: [Select]
ANY
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]
http://www.middlecoin.com/reports/BTCWALLETADDRESS.html
b. Auto-Start upon reboot
Add this to your crontab -e:
Code: [Select]
crontab -e:
@reboot ~/startup.sh &
---nano ~/startup.sh;
Code: [Select]
sleep 60;
screen -mDs cg /root/cgminer &
Tips in MMC
MVHuEf3C7EoANzq7BMg7MLgiFY57S4kh5v
Thanks for reading!