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.]Steps1. 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)http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
Debian 7.4.0 64-bit Net Installer [Mirror: Steadfast.net]
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]
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.listapt-get update; apt-get install nano -y;
nano /etc/apt/sources.list;
It should look something like this: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]
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.http://support.amd.com/en-us/download/desktop?os=Linux+x86
a. Please place the AMD Catalyst Drivers Archive into the /root or base directory.7. Unzip and run the file.cd ~ && unzip amd-catalyst-13.12-linux-x86.x86_64.zip && sh amd-catalyst-13.12-linux-x86.x86_64.run --force
Accept all the dialogues.8. Download the AMD APP SDKhttp://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/
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
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 settingsrm /etc/X11/xorg.conf && aticonfig --adapter=all --initial
10. Add this bottom of your /etc/profile filenano /etc/profile
export DISPLAY=:0
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1
export XAUTHORITY=/.Xauthority
11. Restart.'reboot'
12. Download and untar cgminer 3.7.2cd ~;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 Librarieshttp://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.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:cd ~/cgminer-3.7.2;
14. Compile!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:make; make install; cp cgminer ~; cd ~; chmod +x cgminer
15. Run!Voila! Your cgminer executable is now located in the root folder.Run it!~/cgminer
16. Post Install: CGMiner SettingsInput the URL asmiddlecoin.com:3333
Username:BTER's BTC Wallet Deposit Address
Password:ANY
Wait for your GPU to start mining!To fine-tune your configuration, modify the cgminer.conf at ~/.cgminer/cgminer.conf.nano ~/.cgminer/cgminer.conf
a. You can find your Miner Stats at this address:http://www.middlecoin.com/reports/BTCWALLETADDRESS.html
b. Auto-Start upon rebootAdd this to your crontab -e:
crontab -e:
@reboot ~/startup.sh &
---
nano ~/startup.sh;
sleep 60;
screen -mDs cg /root/cgminer &
Tips in MMC
MVHuEf3C7EoANzq7BMg7MLgiFY57S4kh5vThanks for reading!