# Grin v1.0 Step by Step Miner Guide on Ubuntu \[English version\]

**URL:** https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635
**Category:** Mining
**Created:** [December 31, 2018, 12:30pm UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635 "2018-12-31T12:30:25Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![chainmaster](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@chainmaster](https://forum.grin.mw/u/chainmaster)
#### Post date: [December 31, 2018, 12:30pm UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/1 "2018-12-31T12:30:25Z")

</div>

```
               Grin v1.0 Step by Step Miner Guide on Ubuntu
                       Good luck for all miners

                         Author: ChainMaster

```

Attention⚠️  
Only for Grin v1.0 mainnet  
Operate on Ubuntu 18.04  
Command line knowledge required

A. Install required softwares and packages

1. Open a terminal session  
Install the newest RUST v1.31.1

2. Confirm version of RUST

3. Install git

B. Prepare Grin Node step by step

1. Install required packages for Grin Node

2. Install Grin node.

3. Add command grin to environment variables for current user permanently

4. Add file grin-server.toml to folder grin

5. Revise file grin-server.toml to enable stratum server and save

C. Prepare Grin Miner step by step

1. Open a new command line terminal session

2. Install required packages

3. Install Grin miner

4. Add command grin-miner to environment variables for current user permanently

5. Assign more processors for mining, 1 processor will get no new job.

6. [Optional] To enable avx support(new CPU) or cuda support(Navidia GPU) you have to modify both grin-miner.toml and Cargo.toml files before start grin-miner, if you changed Cargo.toml, please rebuild grin. Please check steps on GitHub.

D. Restart Ubuntu to have environment variables take effect for all sessions

```
     reboot

```

E. Start Grin node&wallet&miner services one by one

1. Start a grin node under folder grin with a terminal session and keep session live

 ![02%20AM](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/1X/6bfba148d1db646a5435082c428a968bdc9234d7.jpeg)

1. [One time only]Initial a grin wallet and record the recovery phrase and password on paper.

2. Listen to the wallet and keep it live

 ![15%20AM](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/1X/038f7246e22515fdd003585ae419899e4b7c4987.png)

1. Start grin miner under grin-miner folder with a terminal and keep it live

 ![36%20PM](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/1X/f7ed13f15e24e651fc175974bc9144f0dd584a5e.jpeg)

1. Have a peek on your wallet balance

 ![00%20AM](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/1X/92d8f23994ac62a212a038d3346ee69e1cf6f550.jpeg)

1. Wait and see if you have grin coins mined  
 ![43%20PM](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/1X/e898d94c0256a85602829d8eb0e12b75da69a0d1.png)

---

<div class="post-metadata">

### Author: ![BoSanti](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@BoSanti](https://forum.grin.mw/u/BoSanti)
#### Post date: [January 9, 2019, 1:03am UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/3 "2019-01-09T01:03:41Z")

</div>

Error details:  
PluginNotFoundError("/home/me/grin-miner/target/debug/plugins/cuckaroo\_cuda\_29.cuckooplugin - Custom { kind: Other, error: StringError("/home/me/grin-miner/target/debug/plugins/cuckaroo\_cuda\_29.cuckooplugin: cannot open shared object file: No such file or directory") }")

Any hints to resolve this error?

---

<div class="post-metadata">

### Author: ![menem](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@menem](https://forum.grin.mw/u/menem)
#### Post date: [January 9, 2019, 2:14am UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/4 "2019-01-09T02:14:00Z")

</div>

Can you post the results of `ls /home/me/grin-miner/target/debug/plugins/`?

---

<div class="post-metadata">

### Author: ![ridici](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@ridici](https://forum.grin.mw/u/ridici)
#### Post date: [January 9, 2019, 2:47am UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/5 "2019-01-09T02:47:52Z")

</div>

> curl [https://sh.rustup.rs](https://sh.rustup.rs) -sSf | sh; source $HOME/.cargo/env

The above command line does not work with Ubuntu 14.04 via digitalocean…

Also tried on Ubuntu 18.04 still dont work…

---

<div class="post-metadata">

### Author: ![babaji](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/babaji/32/1098_2.png) [@babaji](https://forum.grin.mw/u/babaji)
#### Post date: [January 9, 2019, 3:06am UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/6 "2019-01-09T03:06:06Z")

</div>

what message do you get?

---

<div class="post-metadata">

### Author: ![ridici](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@ridici](https://forum.grin.mw/u/ridici)
#### Post date: [January 9, 2019, 3:17am UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/7 "2019-01-09T03:17:28Z")

</div>

> [@BoSanti](#):
>
> No such file or directory

No such file or directory message

---

<div class="post-metadata">

### Author: ![BoSanti](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@BoSanti](https://forum.grin.mw/u/BoSanti)
#### Post date: [January 9, 2019, 11:34am UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/8 "2019-01-09T11:34:04Z")

</div>

cuckaroo\_cpu\_avx2\_19.cuckooplugin  
cuckaroo\_cpu\_avx2\_29.cuckooplugin  
cuckaroo\_cpu\_compat\_19.cuckooplugin  
cuckaroo\_cpu\_compat\_29.cuckooplugin  
cuckatoo\_lean\_cpu\_avx2\_31.cuckooplugin  
cuckatoo\_lean\_cpu\_compat\_19.cuckooplugin  
cuckatoo\_lean\_cpu\_compat\_31.cuckooplugin  
cuckatoo\_mean\_cpu\_avx2\_19.cuckooplugin  
cuckatoo\_mean\_cpu\_avx2\_31.cuckooplugin  
cuckatoo\_mean\_cpu\_compat\_19.cuckooplugin  
cuckatoo\_mean\_cpu\_compat\_31.cuckooplugin

Well, the plugin looks to not be there. While I followed this guide, notably (because they are not in the guide), I changed:

`cuckoo_miner = { path = "./cuckoo-miner", version = "0.5.1" }`

to

`cuckoo_miner = { path = "./cuckoo-miner", version = "0.5.1", features = ["build-cuda-plugins"]}`

in Cargo.toml, while in grin-miner.toml I commented out:

`#[[mining.miner_plugin_config]]`  
`#plugin_name = "cuckaroo_cpu_compat_29"`  
`#[mining.miner_plugin_config.parameters]`  
`#nthreads = 1`

and uncommented:

`[[mining.miner_plugin_config]]`  
`plugin_name = "cuckaroo_cuda_29"`  
`[mining.miner_plugin_config.parameters]`  
`device = 0`  
`cpuload = 1`  
`ntrims = 176`  
`genablocks = 4096`  
`genatpb = 128`  
`genbtpb = 128`  
`trimtpb = 512`  
`tailtpb = 1024`  
`recoverblocks = 1024`  
`recovertpb = 1024`

I am trying to test out mining with my 1080. Should my configuration be different?

---

<div class="post-metadata">

### Author: ![BoSanti](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@BoSanti](https://forum.grin.mw/u/BoSanti)
#### Post date: [January 9, 2019, 1:09pm UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/9 "2019-01-09T13:09:49Z")

</div>

Figured it out. just had to rebuild with `cargo build` after changing the Cargo.toml. Also, just as a side note, I unknowingly uncommented a bunch of tweaking parameters in grin-miner.toml originally, so I went back and commented them out again, leaving my changes to the grin-miner.toml file as:

`[[mining.miner_plugin_config]]`  
`plugin_name = "cuckaroo_cuda_29"`  
`[mining.miner_plugin_config.parameters]`  
`device = 0`

---

<div class="post-metadata">

### Author: ![ridici](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@ridici](https://forum.grin.mw/u/ridici)
#### Post date: [January 9, 2019, 4:08pm UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/10 "2019-01-09T16:08:48Z")

</div>

How do you change the cargo.toml

---

<div class="post-metadata">

### Author: ![ludo.bagman](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/ludo.bagman/32/761_2.png) [@ludo.bagman](https://forum.grin.mw/u/ludo.bagman)
#### Post date: [January 9, 2019, 7:32pm UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/11 "2019-01-09T19:32:55Z")

</div>

Cargo.toml is just a text file which you can edit and save.

---

<div class="post-metadata">

### Author: ![cooperkernan](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@cooperkernan](https://forum.grin.mw/u/cooperkernan)
#### Post date: [January 15, 2019, 8:32pm UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/12 "2019-01-15T20:32:26Z")

</div>

error: failed to unpack package `ring v0.13.5`

Caused by:  
failed to unpack entry at `ring-0.13.5/crypto/fipsmodule/ec/ecp_nistz256_table.inl`

Caused by:  
failed to unpack `/home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/crypto/fipsmodule/ec/ecp_nistz256_table.inl`

---

<div class="post-metadata">

### Author: ![gunther400](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/gunther400/32/666_2.png) [@gunther400](https://forum.grin.mw/u/gunther400)
#### Post date: [January 15, 2019, 9:03pm UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/14 "2019-01-15T21:03:42Z")

</div>

Hi guys,

I’m trying to setup mining on Mac os x. I have a working and synced node, working wallet file but upon running ./grin-miner I get this error.

thread ‘main’ panicked at ‘called `Option::unwrap()` on a `None` value’, libcore/option.rs:355:21

note: Run with `RUST_BACKTRACE=1` for a backtrace.

Attempted all sorts of troubleshooting including Backtrace but to no avail.

Does anyone have any ideas how to fix this?

---

<div class="post-metadata">

### Author: ![ctp9](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@ctp9](https://forum.grin.mw/u/ctp9)
#### Post date: [January 16, 2019, 4:09am UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/16 "2019-01-16T04:09:41Z")

</div>

A question that probably a few of us Linux newbies have:

Are the steps in this guide valid for setting up the node/wallet on Debian 9 Stretch?

---

<div class="post-metadata">

### Author: ![hodl](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hodl](https://forum.grin.mw/u/hodl)
#### Post date: [January 16, 2019, 10:07am UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/17 "2019-01-16T10:07:27Z")

</div>

“can’t establish server connection to 127.0.0.1:3416”

in my grin-server.toml file i have this:  
#what port and address for the stratum server to listen on  
stratum\_server\_addr = “127.0.0.1:3416”

should work but doesn’t. i have both GUI’S up and running. i see cuckaroo\_cuda\_29 plugins for both my gpu’s with OK status but no mining. it says “Waiting for server”.

in my Grin node it says “false” for both mining server enabled and mining server running.

---

<div class="post-metadata">

### Author: ![chainmaster](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@chainmaster](https://forum.grin.mw/u/chainmaster)
#### Post date: [January 16, 2019, 10:40am UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/18 "2019-01-16T10:40:11Z")

</div>

> [@hodl](#):
>
> erver running.

The grin-server.toml should under grin golder

---

<div class="post-metadata">

### Author: ![anding](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@anding](https://forum.grin.mw/u/anding)
#### Post date: [January 16, 2019, 2:03pm UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/19 "2019-01-16T14:03:41Z")

</div>

![error](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/1X/6df386bb7704ecfc546b503bb80e4c789fb5e335.png)

What can I do now? Uninstall rustc 1.30 and install an old version? How?

---

<div class="post-metadata">

### Author: ![zphou](https://avatars.discourse-cdn.com/v4/letter/z/54ee81/32.png) [@zphou](https://forum.grin.mw/u/zphou)
#### Post date: [January 16, 2019, 2:23pm UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/20 "2019-01-16T14:23:33Z")

</div>

First of all, thanks for putting those together.

I found that many people encountered problems like setting up rust, compiling. Since the project release binary each time, maybe you want to change it to use binary directly. All you need to do is download the correct binary from github, uncompress and run it. The building from source code won’t make any difference but bring a lot difficulties. For those knows about building from source code, they will not need such a step.

Just my $0.02

Cheers

---

<div class="post-metadata">

### Author: ![hodl](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hodl](https://forum.grin.mw/u/hodl)
#### Post date: [January 17, 2019, 3:44am UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/23 "2019-01-17T03:44:07Z")

</div>

got it all working. thx.

---

<div class="post-metadata">

### Author: ![dwayne](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/dwayne/32/878_2.png) [@dwayne](https://forum.grin.mw/u/dwayne)
#### Post date: [January 17, 2019, 2:47pm UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/24 "2019-01-17T14:47:44Z")

</div>

> [@anding](#):
>
> Uninstall rustc 1.30 and install an old version? How?

1.30 is an old version. If you had followed the instructions (see step A.1) you would have

$ rustc --version  
rustc 1.31.1 (b6c32da9b 2018-12-18)

---

<div class="post-metadata">

### Author: ![krishislegend](https://avatars.discourse-cdn.com/v4/letter/k/f04885/32.png) [@krishislegend](https://forum.grin.mw/u/krishislegend)
#### Post date: [January 18, 2019, 8:27pm UTC](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635/25 "2019-01-18T20:27:16Z")

</div>

Make sure that you copy the grin-miner.toml from the grin-miner directory to grin-miner/target/release

[Next page](https://forum.grin.mw/t/grin-v1-0-step-by-step-miner-guide-on-ubuntu-english-version/1635.md?page=2)
