Pages:
Author

Topic: [HowTo] Ubuntu 11.04 Desktop 32-bit mining install guide - page 2. (Read 14722 times)

sr. member
Activity: 291
Merit: 250
Thanks for the guide. Going to try this on a fresh install.
newbie
Activity: 8
Merit: 0
To start GPU Bitcoin mining the following steps need to be completed:

Preparing the environment for installation.
Install the ATI Linux 32-bit Drivers (version 11.5)
Install the AMD Stream 32-bit SDK (version 2.4)
Install pyopencl (0.92)
Install python-jsonrpc

Install a Bitcoin client:
   - poclbm (recommended)
   - phoenix (version 1.48)


## Preparing the environment for installation.

A default installation of Ubuntu 11.04 32-bit is recommended.

Once installation is successful, and the system has been rebooted by the installer, login in and open a terminal window (Applications -> Accessories -> Terminal). Type or copy/paste the following:

Code:
cd ~
sudo apt-get update
sudo apt-get install python-setuptools python-numpy subversion g++ libboost-all-dev libqtgui4 openntpd

## Installing the ATI Linux 32-bit Drivers (version 11.5)

Code:
cd ~
sudo aptitude install dkms
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-5-x86.x86_64.run
sudo sh ati-driver-installer-11-5-x86.x86_64.run --buildpkg Ubuntu/natty
sudo dpkg -i *.deb
sudo apt-get -f install
sudo aticonfig -f --initial --adapter=all
sudo reboot

After the system has rebooted, login in and open a terminal window (Applications -> Accessories -> Terminal). Type or copy/paste the following:

## Verify installation of ATI drivers

Code:
cd ~
DISPLAY=:0 sudo fglrxinfo

## Installing the AMD Stream 32-bit SDK (version 2.4)

Code:
cd ~
wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx32.tgz
tar xvzf AMD-APP-SDK-v2.4-lnx32.tgz
echo export AMDAPPSDKROOT=${HOME}/AMD-APP-SDK-v2.4-lnx32/ >> ~/.bashrc
echo export AMDAPPSDKSAMPLESROOT=${HOME}/AMD-APP-SDK-v2.4-lnx32/ >> ~/.bashrc
echo export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86:${LD_LIBRARY_PATH} >> ~/.bashrc
source ~/.bashrc
sudo tar xvfz $AMDAPPSDKROOT/icd-registration.tgz -C /

## Verify installation of OpenCL

Code:
cd ~/AMD-APP-SDK-v2.4-lnx32/bin/x86
./clinfo

## Installing pyopencl-0.92

Code:
cd ~
wget http://pypi.python.org/packages/source/p/pyopencl/pyopencl-0.92.tar.gz
tar xzvf pyopencl-0.92.tar.gz
cd pyopencl-0.92
./configure.py --cl-inc-dir=${AMDAPPSDKROOT}include/ --cl-lib-dir=${AMDAPPSDKROOT}lib/x86/
make
sudo make install

## Installing python-jsonrpc

Code:
cd ~
svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc
cd python-jsonrpc/
sudo python setup.py install

## Installing a Bitcoin client (pick one of the following):

## Installing poclbm (recommended)

Code:
cd ~
sudo apt-get install git-core
git clone git://github.com/m0mchil/poclbm poclbm
chmod +x poclbm/poclbm.py

## Verify poclbm is installed correctly

Code:
cd ~
chmod +x poclbm/poclbm.py
cd poclbm/
./poclbm.py

You should see you GPU and CPU listed here, i.e.

Code:
[0] Juniper << --- your GPU
[1] Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz << --- your CPU

Note: The number in square brackets ([]) is the device id.

To start mining with poclbm (in a pool), you can try these settings:

Code:
./poclbm.py -d --host= --port= --user= --pass= -v -w128 -f 1

## Installing phoenix (version 1.48)
Code:
cd ~
wget http://svn3.xp-dev.com/svn/phoenix-miner/files/phoenix-1.48.tar.bz2
tar -jxvf phoenix*.bz2
chmod +x phoenix-1.48/phoenix.py

To start mining with phoenix (in a pool), you can try these settings:

Code:
phoenix-1.48/phoenix.py -u http://:@: -q 5 -k phatk VECTORS BFI_INT FASTLOOP AGGRESSION=4 DEVICE= WORKSIZE=128
------

Some gotchas:

2. If you are building a system from scratch, before installing ubuntu, make sure you have installed ALL of your graphics cards on your motherboard first. Otherwise you're going to run into some mess dealing with an xorg.conf file thing to get subsequently added cards up and running. Took my friends and I forever to figure that one out! Smiley


If you made us of this guide please send a donation to 1GGFpiLb9TVUGHK2qdd1xDbp8RwtBkaHDM
Pages:
Jump to: