• June 19, 2018, 02:58:53 AM
• Welcome, Guest. Please login or register.
 

Author Topic: Headless ATI/AMD Memorycoin GPU Mining Tutorial  (Read 1751 times)

0 Members and 1 Guest are viewing this topic.

Offline Delinquency

  • CEO
  • Administrator
  • Epic Member
  • *********
  • Posts: 665
    • View Profile
  • Memorycoin Address:
    MVTEceoiVWsnyyWU69nNFCqcpqDjyChyEH
Headless ATI/AMD Memorycoin GPU Mining Tutorial
« on: April 03, 2014, 01:19:51 AM »
Want to run the MMC Miner on your debian server without a hassle? Well now you can with this tutorial!

Note: I tried Lubuntu and Xubuntu and even Ubuntu to run the GPU MMC Miner, but this setup is more efficient and  headless.

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 libncurses5-dev and libudev-dev]
Code: [Select]
apt-get update && apt-get upgrade
apt-get install bzip2 fglrx-driver libcurl4-openssl-dev libncurses5-dev libudev-dev ntp screen unzip xdm xorg
apt-get purge libfglrx
apt-get 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 referer 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+x86

7. Unzip and run the file.
Quote
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. Fix up the X-Server settings:
Code: [Select]
rm /etc/X11/xorg.conf && aticonfig --adapter=all --initial
9. Add this 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

10. Restart. 'reboot'

11. You'll get a lousy glibc error when you try to start the gpu miner. (from mmcpool's GPU Miner)
There is an easy fix - ADD THIS to your /etc/apt/sources.list:

Quote
deb http://cdn.debian.net/debian testing main

  Now install the necessary packages:
Code: [Select]
apt-get update && apt-get -t testing install libc6-dev
Accept all the dialogues in order to install this package.

12. Download the latest MMC-Minerd Package and unzip it using TAR
Note: The download link may change if there is an update. I am also referring to mmcpool's GPU miner because it is more stable than 1gh's and promotes pool decentralization.
Quote
cd ~;wget http://dl.mmcpool.com/gpu/mmcpool-gpu-miner-ubuntu-x64.tgz?tm=1392439225243; tar -xvf *.tgz;chmod +x start.sh;chmod +x minerd-mmc

13. Run it with your wallet address.

Quote
./minerd-mmc WALLETID 0

14. Post Install:

'apt-get install screen'
If you install screen you can use the command:
Code: [Select]
screen -mDs mmc-miner ~/minerd-mmc WALLETID &
and even add it to the bottom of
'crontab -e'
[Untested. You may need to fine tune a delay after your system starts up, or even use some other method of running the miner upon startup.]
Code: [Select]
@reboot screen -mDs mmc-miner ~/minerd-mmc WALLETID &

Warning: Please remove the line with testing in /etc/apt/sources.list after installing the necessary libc library or your system may break.
Quote
#COMMENT IT OUT deb http://cdn.debian.net/debian testing main

The MMC GPU Miner is easier to install and run compared to compiling Scrypt's cgminer.
:)
« Last Edit: April 18, 2014, 05:33:19 PM by Delinquency »