# I began mining. I have a question

**URL:** <https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230>\
**Category:** zcashd client\
**Created:** [August 19, 2016, 2:41pm UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230 "2016-08-19T14:41:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mun](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@mun](https://forum.zcashcommunity.com/u/mun)\
**Post date:** [August 19, 2016, 2:41pm UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/1 "2016-08-19T14:41:54Z")

</div>

./src/zcash-cli getinfo  
blocks in the obtained information, and

./src/zcash-cli listtransactions  
The blocks in the obtained information does not match, is it normal?

---

<div class="post-metadata">

**Author:** ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)\
**Post date:** [August 19, 2016, 2:49pm UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/2 "2016-08-19T14:49:58Z")

</div>

The listtransactions command will list all coins you have found, including immature coins. Look for the line that says spendable and the line that says #of confirmations.

A coin is only considered spendable after 100 confirmations and that is the amount you see when you run the getinfo command.

---

<div class="post-metadata">

**Author:** ![hitchslappy](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@hitchslappy](https://forum.zcashcommunity.com/u/hitchslappy)\
**Post date:** [August 19, 2016, 10:08am UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/3 "2016-08-19T10:08:56Z")

</div>

Ah, thanks for the heads up - I only just realised how long this thread is!

---

<div class="post-metadata">

**Author:** ![hitchslappy](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@hitchslappy](https://forum.zcashcommunity.com/u/hitchslappy)\
**Post date:** [August 19, 2016, 1:08pm UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/4 "2016-08-19T13:08:53Z")

</div>

Hi guys,

This is my first attempt at mining anything and I’m pretty noob at this stuff, but I figured I would be able to copy and paste the commands easily enough… seems I was wrong about that 😅

Anyway, I’ve installed Debian on Parallels for Mac and went into the terminal to paste the first command in the Public Alpha Guide to install…

```
sudo apt-get install \
    build-essential pkg-config libgtest-dev libc6-dev m4 \
    g++-multilib autoconf libtool ncurses-dev unzip git python \
    zlib1g-dev wget bsdmainutils

```

and got back the line…

`bash: sudo: command not found`

Does anyone know what might be causing this? Is it asking for admin rights? I’m the only user I set up when installing Ubuntu so I’m a bit lost here.

Thanks for any help!

---

<div class="post-metadata">

**Author:** ![zawy](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/zawy/32/11892_2.png) [@zawy](https://forum.zcashcommunity.com/u/zawy)\
**Post date:** [August 19, 2016, 2:00pm UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/5 "2016-08-19T14:00:53Z")

</div>

Take out the slashes and combine the lines into one.

---

<div class="post-metadata">

**Author:** ![hitchslappy](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@hitchslappy](https://forum.zcashcommunity.com/u/hitchslappy)\
**Post date:** [August 19, 2016, 2:26pm UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/6 "2016-08-19T14:26:18Z")

</div>

Thanks for the reply.

I just tried entering the following into the terminal:

`sudo apt-get install build-essential pkg-config libgtest-dev libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils`

but got the same `bash: sudo: command not found` back.

---

<div class="post-metadata">

**Author:** ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)\
**Post date:** [August 19, 2016, 3:13pm UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/7 "2016-08-19T15:13:50Z")

</div>

Did you get this working?

On Ubuntu/Debian systems

`sudo apt-get install \ build-essential pkg-config libgtest-dev libc6-dev m4 \ g++-multilib autoconf libtool ncurses-dev unzip git python \ zlib1g-dev wget bsdmainutils`

To make it easier, simply highlight the entire text field and CTRL+C to copy and in the terminal you can CTRL+ SHIFT+V to paste. In the terminal CTRL+C means cancel and should not be used, so you can use CTRL+SHIFT+C or V when copying and pasting in the terminal.

---

<div class="post-metadata">

**Author:** ![hitchslappy](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@hitchslappy](https://forum.zcashcommunity.com/u/hitchslappy)\
**Post date:** [August 19, 2016, 3:25pm UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/8 "2016-08-19T15:25:12Z")

</div>

Hi Shawn,

Thanks for taking the time to reply.

I’m still not getting anywhere. I’m starting to think it’s a different problem than just entering the wrong commands into the terminal. I might try installing Ubuntu instead, and see if that changes anything. Thanks for your help!

---

<div class="post-metadata">

**Author:** ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)\
**Post date:** [August 19, 2016, 3:36pm UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/9 "2016-08-19T15:36:37Z")

</div>

I have personally only used Ubuntu and Lubuntu for Zcash installs and have not had any problems, so hopefully that works for you.

---

<div class="post-metadata">

**Author:** ![hitchslappy](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@hitchslappy](https://forum.zcashcommunity.com/u/hitchslappy)\
**Post date:** [August 19, 2016, 3:44pm UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/10 "2016-08-19T15:44:05Z")

</div>

Thanks mate, will hopefully have things up and running soon 🙂

---

<div class="post-metadata">

**Author:** ![Dusares](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@Dusares](https://forum.zcashcommunity.com/u/Dusares)\
**Post date:** [August 19, 2016, 3:45pm UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/11 "2016-08-19T15:45:09Z")

</div>

Debian seems to not have sudo installed by default.

Try using this command:  
su

This will switch you to the root user.  
if you succeeded, then type the following:  
apt-get install sudo

then edit the sudoers file:  
nano /etc/sudoers

add your current user (the non root user) below the line “%sudo ALL=(ALL:ALL) ALL”  
like this:  
yourusernamehere ALL=(ALL:ALL) ALL

save and exit

if this didn’t work, then simply, remove debian and install ubuntu 🙂

---

<div class="post-metadata">

**Author:** ![hitchslappy](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@hitchslappy](https://forum.zcashcommunity.com/u/hitchslappy)\
**Post date:** [August 19, 2016, 3:56pm UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/12 "2016-08-19T15:56:00Z")

</div>

Thanks for the help man… but I’m afraid I’ve already uninstalled it and am just copying the Ubuntu .iso onto a USB as we speak! 😃

Hopefully if someone else is having the same problem they’ll find your answer!

---

<div class="post-metadata">

**Author:** ![mun](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@mun](https://forum.zcashcommunity.com/u/mun)\
**Post date:** [August 20, 2016, 1:11am UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/13 "2016-08-20T01:11:34Z")

</div>

Thank you.  
getinfo ,return ““blocks” : 456,”  
but listtransactions , return all information are ““blockindex” : 0,”  
IS it normal ?

---

<div class="post-metadata">

**Author:** ![hitchslappy](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@hitchslappy](https://forum.zcashcommunity.com/u/hitchslappy)\
**Post date:** [August 20, 2016, 9:05am UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/14 "2016-08-20T09:05:02Z")

</div>

Hi guys,

I’m just setting up zcash on Ubuntu, and had hit a wall. Everything went fine until the Testing section. It says in the Public Alpha Guide that the tests need 8GB of memory to run, and as I only have 6GB committed to running Ubuntu (on Parallels for Mac), I wasn’t surprised when the tests failed so tried moving onto the next stage of running zcash.

After running `./src/zcashd -daemon`

I get the following error:

```
Zcash server starting
jackwatson@ubuntu:~/zcash$ 

************************
EXCEPTION: St13runtime_error       
could not load param file at /home/jackwatson/.zcash-params/z7-verifying.key       
bitcoin in AppInit()   

```

That’s where I’m at. I’m not sure if the above error is related to whatever caused the tests to fail, or because I made a mistake in the zcash.conf file (although I think that’s fine).

Any help would be much appreciated ✊

---

<div class="post-metadata">

**Author:** ![Voluntary](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/voluntary/32/4343_2.png) [@Voluntary](https://forum.zcashcommunity.com/u/Voluntary)\
**Post date:** [August 20, 2016, 10:49am UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/15 "2016-08-20T10:49:16Z")

</div>

Do you have a zcash.conf file?

This comment might also be relevant - [Botched attempt from fresh install - #2 by zawy](https://forum.zcashcommunity.com/t/botched-attempt-from-fresh-install/1029/2)

---

<div class="post-metadata">

**Author:** ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)\
**Post date:** [August 20, 2016, 11:02am UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/16 "2016-08-20T11:02:21Z")

</div>

As @Voluntary mentioned: double check the contents and location of your zcash.conf file.

The zcash.conf file needs to be inside the .zcash folder, often I have to make the .zcash folder manually.

And as a side note: Linux treats any folder name starting with a period . as a hidden file. You can hit CTRL+H when looking inside any directory to see the hidden files.

---

<div class="post-metadata">

**Author:** ![hitchslappy](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@hitchslappy](https://forum.zcashcommunity.com/u/hitchslappy)\
**Post date:** [August 20, 2016, 11:21am UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/17 "2016-08-20T11:21:14Z")

</div>

Thanks guys.

I can’t see the .zcash folder in username/ but it’s there because I can’t create a new folder with the same name in that location.

Similarly when I run `mkdir .zcash` I get `mkdir: cannot create directory '.zcash': File exists` back

But when I run `.zcash/zcash.conf` I get back `bash: .zcash/zcash.conf: No such file or directory`

Edit: found the hidden .zcash folder with CTRL+H and added the zcash.conf file to it with the following:

testnet=1  
addnode=alphatestnet.z.cash  
rpcuser=rpcusername  
rpcpassword=rpcpassword  
gen=1  
genproclimit=3

ran `./src/zcashd -daemon`

and it now says `Zcash server starting`. Progress!

Thanks very much for the help guys.

---

<div class="post-metadata">

**Author:** ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)\
**Post date:** [August 20, 2016, 11:33am UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/18 "2016-08-20T11:33:38Z")

</div>

“Zcash server starting” with gen=1 in your zcash.conf means you are officially mining 😄

---

<div class="post-metadata">

**Author:** ![hitchslappy](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@hitchslappy](https://forum.zcashcommunity.com/u/hitchslappy)\
**Post date:** [August 20, 2016, 11:55am UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/19 "2016-08-20T11:55:57Z")

</div>

That’s awesome, it feels good! I didn’t even realise that wasn’t the last step 😅 thanks again for the help mate

---

<div class="post-metadata">

**Author:** ![ret](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@ret](https://forum.zcashcommunity.com/u/ret)\
**Post date:** [August 21, 2016, 3:34am UTC](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230/20 "2016-08-21T03:34:04Z")

</div>

Why after command getinfo I see new adress?  
But amount correct…  
Which adress my wallet?

 ![](https://global.discourse-cdn.com/zcash/original/1X/106018d31f00f01e3f1fc36b09e4af1725729e72.png)

[Next page](https://forum.zcashcommunity.com/t/i-began-mining-i-have-a-question/1230.md?page=2)
