alternative linux guide


SUBMITTED BY: Guest

DATE: Feb. 8, 2014, 11:22 p.m.

FORMAT: Text only

SIZE: 3.2 kB

HITS: 1196

  1. Just some instructions for setting up a Litecoin miner with Ubuntu 12.10 – boring stuff
  2. Download http://developer.amd.com/amd-license-agreement/?f=ADL_SDK_5.0.zip & http://developer.amd.com/tools/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/#one and make sure they’re in ~/Downloads because downloading them directly via wget don’t work because you need to agree to the AMD licence before it will download
  3. (this just installs the ssh server so I can do this from my Mac instead of at the linux box)
  4. sudo apt-get update && sudo apt-get install openssh-server
  5. sudo reboot
  6. (removes old versions of the AMD drivers, but they shouldn’t be there on a fresh install anyways)
  7. sudo sh /usr/share/ati/fglrx-uninstall.sh
  8. sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx
  9. (installs all the pre-requisites for the AMD drivers & cgminer, plus byobu so you I can run cgminer in the background)
  10. sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases ia32-libs ia32-libs-multiarch i386 lib32gcc1 libc6-i386 linux-headers-3.5.0-17-generic install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm byobu
  11. (starts the install process for Catalyst 13.1)
  12. cd /tmp
  13. wget http://www2.ati.com/drivers/linux/amd-driver-installer-catalyst-13.1-linux-x86.x86_64.zip
  14. unzip amd-driver-installer-catalyst-13.1-linux-x86.x86_64.zip
  15. chmod +x amd-driver-installer-catalyst-13.1-linux-x86.x86_64
  16. (this last step needs to be done via terminal in the GUI as the AMD installer is a wizard type deal)
  17. sudo sh amd-driver-installer-catalyst-13.1-linux-x86.x86_64
  18. (when machine returns from reboot, this adds both graphics cards to the X config)
  19. sudo aticonfig --adapter=0,1 --initial
  20. sudo reboot
  21. (downloads the latest version of cgminer)
  22. git clone git://github.com/ckolivas/cgminer.git cgminer
  23. (installing the AMD APP SDK)
  24. mkdir amdapp_2-8
  25. cd amdapp_2-8
  26. tar -zxvf ~/Downloads/AMD-APP-SDK-v2.8-lnx64.tgz
  27. sudo ./Install-AMD-APP.sh
  28. sudo reboot
  29. (installing the AMD ADL SDK)
  30. mkdir ADL_SDK
  31. cd ADL_SDK
  32. mv ~/Downloads/ADL_SDK_5.0.zip .
  33. unzip ADL_SDK_5.0.zip
  34. cp include/* ../cgminer/ADL_SDK
  35. (installing cgminer now)
  36. cd cgminer
  37. ./autogen.sh
  38. CFLAGS="-O2 -Wall -march=native -I /opt/AMDAPP/include/" LDFLAGS="-L/opt/AMDAPP/lib/x86_64" ./configure --enable-scrypt
  39. make
  40. (linux needs this shit to get the GPUs working properly with cgminer, or something, I dunno – I just know that if I don’t type this in, shit don’t work in cgminer)
  41. export DISPLAY=:0
  42. export GPU_USE_SYNC_OBJECTS=1
  43. export GPU_MAX_ALLOC_PERCENT=100
  44. (open byobu so that I can run cgminer via an ssh session and if that session ends, cgminer will still run)
  45. byobu
  46. (within byobu, run cgminer – add in your own username and password near the -u and -p options – these settings are optimized for the AMD 7950)
  47. ./cgminer --scrypt -o stratum+tcp://stratum.give-me-ltc.com:3333 -u -p -w 256 -v 1 -I 20 -g 1 -l 1 --thread-concurrency 21712
  48. and you’re done, mine away

comments powered by Disqus