Foreverrising Blog

April 10, 2011

Poclbm flags

Filed under: Software — Tags: , , , , — foreverrising @ 8:52 pm

The results of –help, for quick reference:

–version show program’s version number and exit
-h, –help show this help message and exit
-u USER, –user=USER user name
–pass=PASSWORD password
-o HOST, –host=HOST RPC host (without ‘http://’)
-p PORT, –port=PORT RPC port
-r RATE, –rate=RATE hash rate display interval in seconds, default=1
-f FRAMES, –frames=FRAMES will try to bring single kernel execution to 1/frames
seconds, default=30, increase this for less desktop
-d DEVICE, –device=DEVICE use device by id, by default asks for device
-a ASKRATE, –askrate=ASKRATE how many seconds between getwork requests, default 5,
max 10
-w WORKSIZE, –worksize=WORKSIZE work group size, default is maximum returned by opencl
-v, –vectors use vectors
–verbose verbose output, suitable for redirection to log file
–platform=PLATFORM use platform by id

April 9, 2011

BitCoin Mining in Ubuntu with an NVIDIA card

Filed under: Software — Tags: , , , , , , , , , , — foreverrising @ 5:39 pm

Installing and using BitCoin miners is not difficult, but I posted this to gather everything in one main page.

Update: I wrote and posted Mining with an ATI Radeon Card in Ubuntu last night. This article is for mining in Ubuntu with Nvidia cards.

Note: The main BitCoin client needs to be installed. It can be downloaded from or installed from the command line in Ubuntu with the following commands:

sudo apt-add-repository ppa:stretch/bitcoin

sudo apt-get install bitcoin

Also note, I got this working with a pretty low-grade card: a Galaxy Nvidia GT 220. It’s installed on a Dell Studio XPS 5700, AMD II x4. My PC is currently using Ubuntu 10.10 64-bit with all updates.

This post is based on my short experience with BitCoin, but I hope to build upon it- I will be installing a better graphics card in a couple of days (ATI Radeon 5770).

I came across an article about BitCoin mining while trying to find information to install a certain wifi adapted in Ubuntu 10.10 64-bit. The article Free graphics card by earning bitcoins by gurrier, sounded interesting. This article is a good starting point if you have a ATI card and would like to mine.

However I did not have a ATI card, but I went ahead and installed the BitCoin client, and grabbed free Bitcoins from the BitCoin Faucet. From there I sought out instructions for using the card I currently have. The instructions that I used:

sudo apt-get install python-pyopencl subversion
tar xvf bitcoin-0.3.19-linux.tar.gz
svn checkout 
cd python-jsonrpc/
sudo python install
cd ..
mkdir .bitcoin
echo "rpcuser=un" > .bitcoin/bitcoin.conf
echo "rpcpassword=pw" >> .bitcoin/bitcoin.conf
wget --no-check-certificate
wget --no-check-certificate
wget --no-check-certificate
~/bitcoin-0.3.19/bin/64/bitcoin -server&
python -d 0 --user un --pass pw

Make sure you start the bitcoin server with:

bitcoind -server

The problems I ran into were difficult for me to grasp. The first was easy, file not found. Just search for the appropriate script and place it in the same directory as poclbm. The other problems I’ve run into all include the flags to use on the command line.

-v is for ATI cards, so this will not work correctly with an Nvidia card. When using this switch in ignorance, by hashrate dropped signifigantly.

askrate should be 2^32 / [your hashrate].

You can also use Bitcoinpool’s modified miner with this, however I recommend monitoring that status since it throw an error after awhile.

I accept donations @ 1HXrbVT3WRqk6rHTPKKJ9ppoFbsYjmjTqX if this worked for you. If it didn’t, feel free to send me a comment.

Blog at