<p>I suggest to use one of the updated cpuminer versions which support more than one algorithm. This way you are also set up to mine different coins which use other PoW functions. The most versatile one is tpruvot's fork:<a href="https://github.com/tpruvot/cpuminer-multi" rel="nofollow">cpuminer-multi</a>. For me this one worked out of the box on a recent Ubuntu 14.04 installation.</p>

<p>The syntax is similar to all other cpuminer versions:
cpuminer -a sha256d -o stratum+tcp://pool.com:port -O username.workername -p password</p>

CC BY-SA 3.0
2015-02-04T15:43:34.940Z
2015-02-04T15:43:34.940Z
P.P.
<p>After spinning-up my <a href="https://rads.stackoverflow.com/amzn/click/B01C6Q2GSY" rel="nofollow noreferrer">Raspberry Pi</a> and registering an account at <a href="https://slushpool.com" rel="nofollow noreferrer">slushpool</a> I've had success with the following process:</p>

<ol>
<li><code>sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++ git</code></li>
<li><code>git clone https://github.com/tpruvot/cpuminer-multi</code></li>
<li><code>cd cpuminer-multi</code></li>
<li><code>./autogen.sh</code></li>
<li><code>./build.sh</code></li>
<li>Check out the commands: <code>./cpuminer --help</code></li>
<li><code>./cpuminer -u slashpool_user_name.slashpool_worker -p pass -a sha256d -o stratum+tcp://stratum.slushpool.com:3333 -t cputhreads</code></li>
<li>For Litecoin: <code>./cpuminer -u slashpool_username.slashpool_worker -p pass -a scrypt -o stratum+tcp://stratum.slushpool.com:3333 -t cputhreads</code></li>
</ol>

CC BY-SA 3.0
2017-10-23T13:46:34.807Z
2017-10-23T13:46:34.807Z
alexanderjsingleton
<p>You can use <a href="https://github.com/pooler/cpuminer" rel="nofollow">cpuminer</a>. Just make sure you have all the dependencies, compile, and run:</p>

<pre><code>minerd -o stratum+tcp://name-of-pool.com:port -O username.workername:password
</code></pre>

CC BY-SA 3.0
2014-03-11T06:23:07.030Z
2014-03-11T06:23:07.030Z
Tony
<p><a href="https://omidraha.com/en/latest/src/crypto_currency/mining.html#poclbm" rel="nofollow noreferrer">This</a>, worked for me:</p>

<pre><code>$ git clone https://github.com/m0mchil/poclbm
$ cd poclbm
$ poclbm.py omidraha.worker1:anything@jp.stratum.slushpool.com:3333
</code></pre>

CC BY-SA 4.0
2018-09-22T16:48:02.323Z
2018-09-22T16:48:02.323Z
Omid Raha
<p>I don't intend to do this long term as I am pretty sure the cost of the power would exceed the earnings, this is more for educational purposes. What I'm looking for is a command line miner for Ubuntu. What I've tried so far is using <code>poclbm.py</code></p>

<pre><code>./poclbm.py -d 0 http://worker:pass@api.bitcoin.cz:8332
</code></pre>

<p>however this only gives me </p>

<pre><code>No PyOpenCL


Not using OpenCL


Nothing to mine on, exiting
</code></pre>

<p>I've found several guides on how to use <code>poclbm</code> however they seem to be out of date. That is to say that the command line arguments don't match up with the current project. I also have pyserial installed.</p>

<p>To sum it all up I don't care if I use <code>poclbm</code> or not I'm just looking for a tool to get up and running.</p>

<ubuntu><cpu><poclbm>
Running a command line bitcoin CPU miner on ubuntu for slush's pool
John
# Running a command line bitcoin CPU miner on ubuntu for slush's pool

(Asked by: username_0 on 2013-04-30)

I don't intend to do this long term as I am pretty sure the cost of the power would exceed the earnings, this is more for educational purposes. What I'm looking for is a command line miner for Ubuntu. What I've tried so far is using `poclbm.py`

```
./poclbm.py -d 0 http://worker:pass@api.bitcoin.cz:8332

```

however this only gives me

```
No PyOpenCL

Not using OpenCL

Nothing to mine on, exiting

```

I've found several guides on how to use `poclbm` however they seem to be out of date. That is to say that the command line arguments don't match up with the current project. I also have pyserial installed.

To sum it all up I don't care if I use `poclbm` or not I'm just looking for a tool to get up and running.

**Tags:** ubuntu, cpu, poclbm


---

## 4 answers

### Answer by username_1 on 2015-02-04. Score: 4

I suggest to use one of the updated cpuminer versions which support more than one algorithm. This way you are also set up to mine different coins which use other PoW functions. The most versatile one is tpruvot's fork:[cpuminer-multi](https://github.com/tpruvot/cpuminer-multi). For me this one worked out of the box on a recent Ubuntu 14.04 installation.

The syntax is similar to all other cpuminer versions:
cpuminer -a sha256d -o stratum+tcp://pool.com:port -O username.workername -p password


---

### Answer by username_2 on 2017-10-23. Score: 3

After spinning-up my [Raspberry Pi](https://rads.stackoverflow.com/amzn/click/B01C6Q2GSY) and registering an account at [slushpool](https://slushpool.com) I've had success with the following process:

1. `sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++ git`
2. `git clone https://github.com/tpruvot/cpuminer-multi`
3. `cd cpuminer-multi`
4. `./autogen.sh`
5. `./build.sh`
6. Check out the commands: `./cpuminer --help`
7. `./cpuminer -u slashpool_user_name.slashpool_worker -p pass -a sha256d -o stratum+tcp://stratum.slushpool.com:3333 -t cputhreads`
8. For Litecoin: `./cpuminer -u slashpool_username.slashpool_worker -p pass -a scrypt -o stratum+tcp://stratum.slushpool.com:3333 -t cputhreads`


---

### Answer by username_3 on 2014-03-11. Score: 2

You can use [cpuminer](https://github.com/pooler/cpuminer). Just make sure you have all the dependencies, compile, and run:

```
minerd -o stratum+tcp://name-of-pool.com:port -O username.workername:password

```


---

### Answer by username_4 on 2018-09-22. Score: 0

[This](https://username_4.com/en/latest/src/crypto_currency/mining.html#poclbm), worked for me:

```
$ git clone https://github.com/m0mchil/poclbm
$ cd poclbm
$ poclbm.py username_4.worker1:anything@jp.stratum.slushpool.com:3333

```


---

