Installing drivers :
http://community.linuxmint.com/tutorial/view/1316 (this is AMD/Intel, so it should work regardless of your system)
Installing cgminer :
sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm
Get cgminer
git clone git://github.com/ckolivas/cgminer.git cgminer
Install ADL SDK 5.0
NOTE: This will allow cgminer adjustments of such things as your GPU’s clocking, voltage and fan speed.
Special Note: Download ADL_SDK_5.0.ZIP from
http://developer.amd.com/amd-license-agreement/?f=ADL_SDK_5.0.zip. You might want to check if 5.0 is still the most current version first, and download whatever is most current. Modify the commands below according to the version you’re going to download.
mkdir ADL_SDK
cd ADL_SDK
mv ~/Downloads/ADL_SDK_5.0.zip .
unzip ADL_SDK_5.0.zip
cp include/* ~/cgminer/ADL_SDK
cd ~/cgminer
./autogen.sh
Special Note: After running the autogen.sh command, you should see a summary similar to this one:
Configuration Options Summary:
curses.TUI...........: FOUND: -lncurses
OpenCL...............: FOUND. GPU mining support enabled
scrypt...............: Disabled
ADL..................: SDK found, GPU monitoring support enabled
BFL.ASICs............: Disabled
BitForce.FPGAs.......: Disabled
Icarus.FPGAs.........: Disabled
ModMiner.FPGAs.......: Disabled
Ztex.FPGAs...........: Disabled
Compilation............: make (or gmake)
CPPFLAGS.............:
CFLAGS...............: -g -O2
LDFLAGS..............: -lpthread
LDADD................: -ldl -lcurl compat/jansson/libjansson.a -lpthread -L/opt/AMDAPP/lib/x86 -lOpenCL -lm
Installation...........: make install (as root if needed, with 'su' or 'sudo')
prefix...............: /usr/local
Continue with the next command (You are still in Terminal, in your cgminer folder):
make
Testing
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
./cgminer -n
Starting cgminer: Once you’re registered on a mining pool, you can simply run the following basic Terminal command in your cgminer folder:
cgminer -o
http://pool:port -u username -p password
Where
http://pool:portis the URL the pool requires you point your miner to.
Where username is the worker username you created on the pool. See your pool’s instructions.
Where password is the worker password (not your pool account password) you created on the pool. See your pool’s instructions.
Running cgminer with a configuration script
Once I experimented a bit with cgminer settings, I created a configuration script as shown on Complete Guide to Mine Bitcoin on Xubuntu 12.04.
To make your first cgminer configuration script, you simply cut and paste the following into a text document and save it in your cgminer folder as cg.sh. Don’t forget to add your pool credentials.
#!/bin/sh
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
cd /home/worker1/cgminer
./cgminer -o
http://pool:port -u username -p password --api-listen --api-network -I 9 --gpu-reorder --auto-fan --gpu-powertune 20 --gpu-engine 920,920,920,1125 --gpu-memclock 795,795,795,975
Once the file is saved, update it with:
chmod +x cg.sh
Then, start cgminer:
./cg.sh
That’s it. This should get you running. If you have a HD 7950, you might want to tweak the cgminer settings a bit to get more hashing power, adjust the fan speed etc.
(info taken from
http://debianhelp.wordpress.com/2012/01/10/bitcoin-mining-with-ubuntu-12-04-lts-and-cgminer/ , but installing & running cgminer should be the same
)