Bitcoin Forum
December 11, 2016, 10:06:54 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Ubuntu Natty Narwhal 11.04 & Oneiric Ocelot 11.10 Mining Guide / HOWTO  (Read 27694 times)
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
October 30, 2011, 10:11:21 PM
 #1

You can use this guide with this mining pool perfectly: https://eclipsemc.com

Like this guide and find it useful?  Donate!  Donation address: 168Bgg6HL6bLiUxQDBbdmHRbXtSsMixYCT

This guide is for the 64 Bit version of Ubuntu.  You really shouldn't be running the 32 bit version anymore. It's time to move on.
Install Ubuntu Natty Narwhal v11.04 x64 or Oneiric Ocelot v11.10 x64.  Select defaults for most everything.  The default Oneiric install has some wonky default partition mapping.  It's fine for a hard drive, but if you are installing on a USB stick that is less than 8GB, you may want to reconfigure the partition mapping.  Even an 8 GB stick is going to be severely pressed for space on root. A 16 GB or bigger stick will be just fine.

**** WARNING ****
If you are using more than 1 GPU for mining, do NOT use Oneiric Ocelot v11.10.  There are some major bugs in the drivers in OO that make using multiple GPUs an exercise in frutration.  Use Natty Narwhal for multi-GPU setups.
**** WARNING ****

Perform each step in order, following the directions.  At the end, you'll have a working version of poclbm and phoenix miner.  
  • sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
  • sudo apt-get update
  • sudo apt-get install screen
  • screen -S update sudo apt-get install fglrx vim openssh-server subversion git-core python-numpy g++ libboost-all-dev
    Enter your password, hit enter and press Y for yes. When the install starts, hit CTRL-a and then d, you should be dropped back to the shell prompt.
  • screen -d -m -S app wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx64.tgz
  • wget http://eclipsemc.com/files/pyopencl-0.92.tar.gz
  • tar xvfz pyopencl-0.92.tar.gz
  • echo export DISPLAY=:0 >> ~/.bashrc
  • echo export LD_LIBRARY_PATH=/opt/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/:$LD_LIBRARY_PATH >> ~/.bashrc
  • source ~/.bashrc
  • screen -r app
    Wait for the download to finish or if you get "There is no screen to be resumed matching app", then continue on.
  • sudo tar xvfz AMD-APP-SDK-v2.4-lnx64.tgz -C /opt
  • sudo tar xvfz /opt/AMD-APP-SDK-v2.4-lnx64/icd-registration.tgz -C /
  • sudo sh -c 'echo "/opt/AMD-APP-SDK-v2.4-lnx64" >> /etc/ld.so.conf.d/local.conf'
  • screen -r update
    Wait for the update to finish, otherwise or if you get "There is no screen to be resumed matching update" continue on.
  • cd pyopencl-0.92
  • ./configure.py --cl-inc-dir=/opt/AMD-APP-SDK-v2.4-lnx64/include --cl-lib-dir=/opt/AMD-APP-SDK-v2.4-lnx64/lib/x86_64
  • sudo ldconfig
  • make -j3
  • sudo make install
  • cd ~
  • git clone https://github.com/m0mchil/poclbm.git
  • git clone https://github.com/jedi95/Phoenix-Miner.git
  • sudo aticonfig --initial -f --adapter=all
  • sudo reboot
That's it, you're done.

You should now have a fully functional Ubuntu 11.04 mining rig with Phoenix and poclbm installed. To test it out, you can go into the poclbm directory and run poclbm without any switches and see if your graphics card(s) show up. Do this with:

cd poclbm
./poclbm.py


It should list your CPU (possibly) and your graphics cores available.

Here's a couple useful tricks for working with your graphics cards:

To display the temperature of your cores:

aticonfig --odgt --adapter=all

To display the clock speeds of your cores:

aticonfig --odgc --adapter=all

To show or set your fan speed:

Shows fan speed
aticonfig --pplib-cmd "get fanspeed 0"

Sets fan speed to 100%
aticonfig --pplib-cmd "set fanspeed 0 100"

If you have multiple cores, you'll need to export a different display variable to access the different cores, like this:

Show fan speed on 2nd card:  
export DISPLAY=:0.1; aticonfig --pplib-cmd "get fanspeed 0"

You can change the .1 to .2, .3 etc... for how many cards you have in the system.

To change your clock rates:

Set your core clock to 900MHz and your memory clock to 1000MHz on all cards. Change according to your desire.
aticonfig --od-setclocks=900,1000 --adapter=all

To set for a particular card, change --adapter=all to the adapter number you want to change.

That should take care of just about everything you need to do to mine in a Bitcoin pool.

Like this guide and find it useful?  Donate!  Donation address: 168Bgg6HL6bLiUxQDBbdmHRbXtSsMixYCT

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
1481450814
Hero Member
*
Offline Offline

Posts: 1481450814

View Profile Personal Message (Offline)

Ignore
1481450814
Reply with quote  #2

1481450814
Report to moderator
1481450814
Hero Member
*
Offline Offline

Posts: 1481450814

View Profile Personal Message (Offline)

Ignore
1481450814
Reply with quote  #2

1481450814
Report to moderator
1481450814
Hero Member
*
Offline Offline

Posts: 1481450814

View Profile Personal Message (Offline)

Ignore
1481450814
Reply with quote  #2

1481450814
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481450814
Hero Member
*
Offline Offline

Posts: 1481450814

View Profile Personal Message (Offline)

Ignore
1481450814
Reply with quote  #2

1481450814
Report to moderator
1481450814
Hero Member
*
Offline Offline

Posts: 1481450814

View Profile Personal Message (Offline)

Ignore
1481450814
Reply with quote  #2

1481450814
Report to moderator
catfish
Sr. Member
****
Offline Offline

Activity: 270


teh giant catfesh


View Profile
October 31, 2011, 05:17:55 PM
 #2

To back Inaba up here (along with a thanks for your helpful guides) - even though we don't see eye to eye on the 32-bit vs 64-bit issue, I recently tried Oneiric 32-bit on one of my multi-GPU dedicated miners, and he is indeed very correct.

I couldn't get it working - and I'm not claiming to be the world's Linux 1337ness because I'm not - but if I can get Natty working across three different generations of ATI cards, mixed, on both AMD and Intel logic boards, from multiple OEMs, all with PCIe extenders, dealing with broken GPU cards along the way... and Oneiric simply won't play ball... then that's another data point from another experienced miner with a wide range of hardware to support.

Natty works. Natty with the new kernel will cause you the same problems you'll get with Oneiric though, BTW - there's an outstanding bug filed with fglrx and upgraded kernels, so stick to the 2.6.38 kernel in Natty...

...so I give in to the rhythm, the click click clack
I'm too wasted to fight back...


BTC: 1A7HvdGGDie3P5nDpiskG8JxXT33Yu6Gct
gnar1ta$
Donator
Hero Member
*
Offline Offline

Activity: 756


View Profile
November 02, 2011, 03:12:08 PM
 #3

Great guide, just like the last one, but I still wonder couldn't this be made much easier with cgminer?  I just set up 2 rigs with a fresh install: update, upgrade, install a couple packages, wget ubuntu cgminer built.tar, untar and run - I added atitweak, screen, ssh, and a startup script and it still wasn't this lengthy.  GPU control is easier that way also.  The pool is great by the way and getting better, thanks for keeping up the improvements.

Losing hundreds of Bitcoins with the best scammers in the business - BFL, Avalon, KNC, HashFast.
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
November 02, 2011, 03:33:29 PM
 #4

People can add cgminer if they want as easily as you mentioned.  Some people don't like it / don't use it for various reasons - I don't/didn't because anything prior to v2 would crash fairly often.  I also have had some troubles with v2.0.7 being substantially slower than poclbm and version 1.6.x of cgminer.  I'm sure it's some tweaks that I need to do, I just haven't had time to figure it out. 

In either case, to build a fully functional cgminer, you need to do a lot more steps - I'd be more inclined to build the system to compile the git of cgminer, which requires even more steps than what's in this guide.  But for most people, the precompiled binary is perfectly fine, I'd imagine.

This guide will give you a fully functional system for all the miners, it could certainly be pared down if it focused on only one thing, though. 

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
reedlaw
Jr. Member
*
Offline Offline

Activity: 55


View Profile
February 01, 2012, 06:19:17 PM
 #5

Is there any work-around to the issue of only being able to mine with one card in Oneiric? At one point I was able to do it, but after a recent upgrade, no more.
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
February 01, 2012, 06:34:54 PM
 #6

I don't know... I know some people have managed it, but I have not revisited it since.   I just install Natty at present.

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
Prattler
Full Member
***
Offline Offline

Activity: 192


View Profile
February 05, 2012, 11:49:26 PM
 #7

I was able to mine on Oneiric Ocelot 11.10, but I was losing 2% hashrate with otherwise same setup. Couldn't figure it out, just had to fall back to Natty Narwhal 11.04.
matthewh3
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
February 20, 2012, 01:41:03 PM
 #8

Sorry if this sounds stupid but can you use this guide with LTS versions of Ubuntu and how do you start the miner from the command line  Huh

Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
February 20, 2012, 07:56:52 PM
 #9

Yes you can and it really depends on the miner program. Best to read the relevant  program thread.

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
CoinSpeculator
Jr. Member
*
Offline Offline

Activity: 42


View Profile
March 13, 2012, 08:48:13 PM
 #10

Is there a preferred source for 11.04?  The website only list 11.10 and 10.04 as options now.
DILLIGAF
Full Member
***
Offline Offline

Activity: 168



View Profile
March 13, 2012, 10:29:45 PM
 #11

Is there a preferred source for 11.04?  The website only list 11.10 and 10.04 as options now.

http://releases.ubuntu.com/natty/
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!