Thank you, the updates did the trick. If you or anyone else reading this has a moment, can you check the guide im using (link above, also pasted below) to see if there's any other commands that need to be updated? I plan to repost the updated guide after i run through it to make the setup process easier for n00bz0rz. Thanks in advance!
----------------------------------------------------------
Load a fresh Ubuntu Natty 11.04 64-bit Desktop with the latest updates and log into system with a user that has sudo permissions.
sudo apt-get remove nvidia-common
sudo apt-get install libqtgui4
Load python and other development tools
cd ~
sudo apt-get install python-setuptools python-numpy subversion g++ libboost-all-dev
Download and install ATI Driver 11.5 for Linux 64bit.
cd ~
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
Verify that the ATI Driver is setup and running
cd ~
DISPLAY=:0 sudo fglrxinfo
Download and install bitcoin
cd ~
wget
http://downloads.sourceforge.net/project/bitcoin/Bitcoin/bitcoin-0.3.21/bitcoin-0.3.21-linux.tar.gz tar xzvf bitcoin-0.3.21-linux.tar.gz
chmod +x bitcoin-0.3.21/bin/64/bitcoin*
mkdir -p ~/.bitcoin
echo "rpcuser=user" >> ~/.bitcoin/bitcoin.conf
echo "rpcpassword=password" >> ~/.bitcoin/bitcoin.conf
Install python-jsonrpc
cd ~
svn checkout
http://svn.json-rpc.org/trunk/python-jsonrpc cd python-jsonrpc/
sudo python setup.py install
Download and install AMD APP SDK 2.4 for Linux 64bit.
cd ~
wget
http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx64.tgz tar xvzf AMD-APP-SDK-v2.4-lnx64.tgz
echo export AMDAPPSDKROOT=${HOME}/AMD-APP-SDK-v2.4-lnx64/ >> ~/.bashrc
echo export AMDAPPSDKSAMPLESROOT=${HOME}/AMD-APP-SDK-v2.4-lnx64/ >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86_64:${LD_LIBRARY_PATH}' >> ~/.bashrc
source ~/.bashrc
cd /
sudo tar xfz $AMDAPPSDKROOT/icd-registration.tgz
Download, Compile and Install pyopencl-0.92
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_64
make
sudo make install
Download and Install Phoenix Miner 1.48
wget
http://svn3.xp-dev.com/svn/phoenix-miner/files/phoenix-1.48.tar.bz2 tar xvf phoenix*.bz2
Verify that OpenCL is setup and running
cd ~
cd AMD-APP-SDK-v2.4-lnx64/bin/x86_64
./clinfo
Create a startminer script using code from below. Make sure to substitute the correct home directory path, miner pool server, miner user and miner password.
cd ~
sudo touch /usr/local/bin/startminer.sh
sudo chmod 755 /usr/local/bin/startminer.sh
sudo gedit /usr/local/bin/startminer.sh
# ${1} is used as a variable for the username, password and for the gpu device number. Ex. mineruser0, minerpass0, Device=0 or mineruser1, minerpass1, Device=1
HOMEDIR=/home/user
MINERSERV=btcmine.com:8332
MINERUSER=mineruser@miner${1}
MINERPASS=minerpass${1}
export AMDAPPSDKROOT=${HOMEDIR}/AMD-APP-SDK-v2.4-lnx64/
export AMDAPPSDKSAMPLESROOT=${HOMEDIR}/AMD-APP-SDK-v2.4-lnx64/
export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86_64:${LD_LIBRARY_PATH}
#Overclock GPU to 875Mhz
DISPLAY=:0 aticonfig --od-enable --adapter=all
DISPLAY=:0 aticonfig --od-setclocks=875,1000 --adapter=${1}
cd ${HOMEDIR}/phoenix-1.48
echo "Startming Miner: ${1}"
${HOMEDIR}/phoenix-1.48/phoenix.py -u http://${MINERUSER}:${MINERPASS}@${MINERSERV} -k phatk VECTORS BFI_INT AGGRESSION=12 DEVICE=${1}
Setup Headless Bitcoin Mining
*** Warning *** This will stop your computer from booting a graphical desktop and allow only text console or remote ssh access into the mining server.
If you rely on a GUI for administration you may want to rethink this.
sudo apt-get install openssh-server
sudo apt-get install screen
sudo mv /etc/init/gdm.conf /etc/init/gdm.org
sudo gedit /etc/init/startx.conf
description "Start X Server for btc mining"
start on runlevel [2345]
stop on runlevel [!2345]
kill timeout 30
script
exec /usr/bin/X 2>&1
end script
sudo gedit /etc/init/btcminer_0.conf
description "Start BTC Mining"
start on runlevel [2345]
stop on runlevel [!2345]
kill timeout 30
script
LOGINUSER=ChangeToMyLoginUser
#Wait 30 seconds to make sure X is started.
sleep 30
exec /usr/bin/screen -dmS gpu0 su -c '/usr/local/bin/startminer.sh 0' ${LOGINUSER}
end script
sudo gedit /etc/init/btcminer_1.conf
description "Start BTC Mining"
start on runlevel [2345]
stop on runlevel [!2345]
kill timeout 30
script
LOGINUSER=ChangeToMyLoginUser
#Wait 35 seconds to make sure X is started.
sleep 35
exec /usr/bin/screen -dmS gpu1 su -c '/usr/local/bin/startminer.sh 1' ${LOGINUSER}
end script
How to access the miner server
ssh into the mining server as your normal login user.
sudo screen -r gpu0 or sudo screen -r gpu1
To disconnect from screen Control-A + Control-D.
How to check the GPU temperatures
ssh into mining server as your normal login user.
DISPLAY=:0 sudo aticonfig --odgt --adapter=all
How to monitor your screens on an Xterminal on the main Xwindows console on boot up.
sudo gedit /etc/init/btcmonitor_0.conf
description "Start BTC Monitor 0"
start on runlevel [2345]
stop on runlevel [!2345]
kill timeout 30
script
LOGINUSER=ChangeToMyLoginUser
export DISPLAY=:0
#Wait 40 seconds to make sure X is started.
sleep 40
exec /usr/bin/xterm -geometry 80x40+0+0 -e "/usr/bin/screen -d -r gpu0"
end script
sudo gedit /etc/init/btcmonitor_1.conf
description "Start BTC Monitor 1"
start on runlevel [2345]
stop on runlevel [!2345]
kill timeout 30
script
LOGINUSER=ChangeToMyLoginUser
export DISPLAY=:0
#Wait 45 seconds to make sure X is started.
sleep 45
exec /usr/bin/xterm -geometry 80x40+500+0 -e "/usr/bin/screen -d -r gpu1"
end script
--Courtasy of dukejar
Donate to him at: 19oQLN2v1auiGqBDFfxSDUfu8Ax6ooT6xs