Author Topic: [GUIDE] Lv II - Ubuntu Desktop and ATI/AMD GPU CGminer Installation  (Read 3570 times)

0 Members and 1 Guest are viewing this topic.

Offline MaxPWR

  • Sr. Member
  • ****
  • Posts: 221
  • Sink 2UR Source
    • View Profile
    • Max's Power Plant
New coin users - start with Delinquency's MMC mining guide:
https://bitsharestalk.org/index.php?topic=2930.0

His guide is specific to MMC and may fill in some gaps in this guide for common elements.  After becoming familiar with MMC, mining, etc, new MMC users may look to branch out and can use / modify the script below to explore other altcoins - and brag about MMC in their forums....

This guide is an updated version of what I started with - scrypt mining - before landing at MMC.  It uses CGminer, which no longer supports scrypt, and so rebuilds the last scrypt version below for Ubuntu 13.10.

Works with a fresh install (see elsewhere for Ubuntu LiveUSB installation).  You will need to manually download some drivers / libraries to your Ubuntu desktop (see folders / comments in script) from AMD, as discussed in the cgminer documentation.  AMD changes the URLs around a bit, so try a google search to navigate the AMD site.  Then, unzip to the folders used in the script below, and run....for about 2 hrs.

Each should be written as a full script - one for installation, one to launch cgminer.  In ubuntu, create new file, cut-and-paste, save, right-click, properties, permissions tab -> allow to execute as program (or chmod +x).  Also, open file manager, under properties, behavior tab -> programs execute in terminal / ask each time.

Code: [Select]
#!/bin/bash
#Based on cryptobager.com's guide, with updates

#cgminer / AMD install starting from Ubuntu 13.10 new install

#install AMD video drivers
sudo apt-get -y install fglrx-updates fglrx-amdcccle-updates
fglrx-updates-dev && sudo apt-get -y update && sudo apt-get -y upgrade

#dependencies, etc to build/run cgminer and ssh
sudo apt-get -y install build-essential libcurl4-gnutls-dev yasm
libncurses5-dev git autoconf automake openssh-server byobu curl
libjansson-dev

#Update gpu config (reboot required) - necessary each time GPUs change
sudo aticonfig --lsa
sudo aticonfig --adapter=all --initial
#sudo reboot

#GPU status after initial config
#sudo aticonfig --adapter=all --odgt

#Install and build cgminer 3.7.2 for Scrypt
# See https://bitcointalk.org/index.php?topic=95718.0
#1. manually download AMD SDK (e.g., to ~/Desktop/AMDSDK), view Readme, and run install script
#2. manually download AMD SDL (e.g., to Desktop/AMDSDL). Copy /include/*.h to cgminer/ADL_SDK/
#Get CGMINER 3.7.2 and build
wget http://ck.kolivas.org/apps/cgminer/3.7/cgminer-3.7.2-x86_64.tar.bz2
tar jxvf cgminer-3.7.2-x86_64-built.tar.bz2
rm *.bz2
mv cgminer-3.7.2 ~/Desktop/cgminer
 cd cgminer
 ./configure
CFLAGS="-O2 -Wall -march=native -I/opt/AMDAPP/include"
LDFLAGS="-L/usr/lib" ./configure --enable-scrypt
 make

This is my script to launch cgminer for middlecoin - replace with your settings:
 
Code: [Select]
#!/bin/bash
export DISPLAY=:0
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1
cd ~/Desktop/cgminer
./cgminer --scrypt -o stratum+tcp://middlecoin.com:3333 -u
12s3ZEkjBbLRpMayaCXtjAaKDE5D84gFT5 -p x -I 15,17 --auto-fan
--temp-target 84 --gpu-engine 800 --gpu-memclock 300
You can't stop the signal, Mal. Everything goes somewhere, and I go everywhere.

PWR UP: MAXVTEoYhDfWJjvkNm2ZmUhHpYbsPYuybg