Bitcoin Forum
May 08, 2024, 12:42:00 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: NOOB: Looking for tutorial for Raspberry Pi  (Read 2132 times)
studysession (OP)
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
June 19, 2015, 06:09:53 PM
 #1

Hi -

I am new to the forum. I wanted to introduce myself. I have been reading the high level what it is about....Then I see loads of Raspberry Pi tutorials for mining however cannot find one that is straight forward and easy to follow.

Each tutorial says you need to create a wallet and pool account but they do not show you how to do either. At least the ones I have found so far.

Unsure if it matters but I am doing this on a Raspberry Pi 2
I am doing this to just more educate myself on the subject so price for a USB Miner was an issue - I chose a used one from fleabay.
-- USB Asicminer Block Erupter Miner for $12 shipped... Hope that is good enough to learn with and then determine if I want to grow from there.

So that is what I am doing and came across this forum in the process. Any help would be greatly appreciated. Now off to look at other threads to try and find some useful information on my journey.  Grin
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715172120
Hero Member
*
Offline Offline

Posts: 1715172120

View Profile Personal Message (Offline)

Ignore
1715172120
Reply with quote  #2

1715172120
Report to moderator
ikydesu
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500

fb.com/Bitky.shop | Bitcoin Merch!Premium Quality!


View Profile WWW
June 19, 2015, 07:00:42 PM
 #2

https://bitcointalk.org/index.php?topic=255582.0
https://bitcointalk.org/index.php?topic=233392.0
or for more reference: Respberry Pi Tutorial


~iki
achow101
Staff
Legendary
*
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
June 19, 2015, 07:08:51 PM
 #3

Each tutorial says you need to create a wallet and pool account but they do not show you how to do either. At least the ones I have found so far.
A wallet is to store your Bitcoin. Choose a wallet from this site here: https://bitcoin.org/en/choose-your-wallet I personally recommend you use Bitcoin Core if you want a full node, or Multibit or electrum if you don't want to run a node. Mining Pools allow you to mine Bitcoin more cost effectively. They guarantee a payout, but with a USB miner, you probably won't get too much. Here is a comparison of mining pools from the Bitcoin wiki: https://en.bitcoin.it/wiki/Comparison_of_mining_pools You can also look in the Mining > Mining Pools subforum for more stuff about pools. To make an account, just go to the website of whatever pool you like and register an account. They all have instructions on how to setup accounts and mine.

studysession (OP)
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
June 19, 2015, 09:07:01 PM
 #4

Hope you don't mind if I post some of my findings here....

My goal is to learn how to turn my RasPi 2 into a miner...

In order to mine Bitcoin I found this list is needed:
*    A pool account
*    Bitcoin Wallet
*    Raspberry Pi
*    Raspbian image SD card
*    USB Bitcoin miner


All seem to state you need all of these files installed:

sudo apt-get install build-essential autoconf libssl-dev libboost-dev libboost-chrono-dev libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-test-dev libboost-thread-dev libqt4-dev libprotobuf-dev protobuf-compiler libqrencode-dev

Hope that is the complete list of prerqu's...  Shocked

Then each one say you need this databse

Installing BerkeleyDB 4.8

wget download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar -xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix/
(This part is going to take a while)
../dist/configure –enable-cxx
make
sudo make install

!! If you are running a RaspberryPi2, replace the make command with make -j4 to use those extra cores !!

That is where I am so far... The databse installed perfectly... Now trying to get the bitcoin-master.zip to install from https://github.com/bitcoin/bitcoin

If I am doing anything wrong and need to be corrected - this is my first run through so please feel free to give advice. THANKS  Cool  Smiley

achow101
Staff
Legendary
*
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
June 19, 2015, 09:13:45 PM
 #5

You shouldn't build from the master branch, it can be unstable and might break. You should build and use the 0.10 branch. That will build you the latest stable version 0.10.2.

You also need to install libtool.

Just follow the instructions here: https://github.com/bitcoin/bitcoin/blob/0.10/doc/build-unix.md They should work for a raspberry pi, just ignore the stuff about Debian or Ubuntu.

studysession (OP)
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
June 19, 2015, 09:18:00 PM
 #6

Thanks just installed libtool and will look at those instructions in the link

woohoo - getting closer... Learning a lot today thanks
studysession (OP)
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
June 19, 2015, 09:28:59 PM
 #7

Now I have thos error -

checking into it....

libdb_cxx headers missing, Bitcoin Core requires this library for wallet functionality
achow101
Staff
Legendary
*
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
June 19, 2015, 09:48:58 PM
 #8

Now I have thos error -

checking into it....

libdb_cxx headers missing, Bitcoin Core requires this library for wallet functionality
Follow the instructions for Berkley DB in the link I gave you. It is near the bottom.

studysession (OP)
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
June 19, 2015, 10:00:50 PM
 #9

I found it will post what I did in a few.... THANK YOU ALL

Next guess make a wallet and a pool account...
achow101
Staff
Legendary
*
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
June 19, 2015, 10:52:18 PM
 #10

I found it will post what I did in a few.... THANK YOU ALL

Next guess make a wallet and a pool account...
You already have a wallet, that was what you just compiled. To run it, just go into the folder you built it in and enter
Code:
src/qt/bitcoin-qt
into the terminal.

studysession (OP)
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
June 20, 2015, 02:30:38 AM
 #11

the .configure with all the extras worked however make command left me with loads of errors

going to do some google searching.... right now unsure where to start.....

achow101
Staff
Legendary
*
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
June 20, 2015, 02:49:41 AM
 #12

the .configure with all the extras worked however make command left me with loads of errors

going to do some google searching.... right now unsure where to start.....


Just do normal configure without options.

studysession (OP)
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
June 20, 2015, 03:06:27 AM
 #13

I did

./configure

and it failed giving DB errors....

Google to the rescue hopefully?

Still moving forward and learning

THANK YOU
achow101
Staff
Legendary
*
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
June 20, 2015, 03:31:12 AM
 #14

I did

./configure

and it failed giving DB errors....

Google to the rescue hopefully?

Still moving forward and learning

THANK YOU
Can you post what the errors are?

studysession (OP)
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
June 20, 2015, 04:32:55 AM
 #15

I will try to replicate it and post the error.... lead me to believe I was out of memory but not 100% sure

Do I need that database?
studysession (OP)
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
June 20, 2015, 05:24:33 AM
 #16

when I run it as just

./configure

I get the following:

configure: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality)


when I run configure with

configure: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality)


it works with zero errors but now will get make errors.
Will rerun make then post the errors.....For some reason it gives me the idea might be memory....
Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
June 20, 2015, 08:03:13 AM
 #17

when I run it as just

./configure

I get the following:

configure: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality)
 -snip-

The error is showing because you have a different version of Berkeley DB. For Bitcoin core, BDB 4.8 is recommended. You can avoid that error by installing BDB 4.8(recommended) or by running ./configure --with-incompatible-bdb. Latter will break compatibility with pre-built binaries.

http://bit-post.com/featured/running-bitcoincore-0-10-on-a-raspberry-pi-2-4419 will be helpful for you.

BTW, you do have enough space to store blockchain, right? If not, try using lightweight clients such as Multibit HD and Electrum.

studysession (OP)
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
June 20, 2015, 03:55:45 PM
 #18

Thank you for your reply - I checked here

http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index-082944.html

and 4.8 is not available.... just 4.8.3

Just searched google and do not see anything linking to just 4.8.... they all seem to have an extra number after the 8....

What do you mean by your last comment?
I am new to do this so if there is an easier way I am all for it.... If when I am done, I can have my RasPi2 setup as a minor so I can have a better understanding of how this works... That is my ernd goal... Thanks
Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
June 20, 2015, 04:21:38 PM
 #19

Thank you for your reply - I checked here

http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index-082944.html

and 4.8 is not available.... just 4.8.3

Just searched google and do not see anything linking to just 4.8.... they all seem to have an extra number after the 8....

Use BDB 4.8.3. Follow http://bit-post.com/featured/running-bitcoincore-0-10-on-a-raspberry-pi-2-4419.

What do you mean by your last comment?
I am new to do this so if there is an easier way I am all for it.... If when I am done, I can have my RasPi2 setup as a minor so I can have a better understanding of how this works... That is my ernd goal... Thanks

You will need to have 40 GB free space to store Bitcoin blockchain if you want to use Bitcoin core. Size of blockchain will increase day by day. If you don't have enough space, you can use lightweight client. When you use lightweight client, you don't need to download whole blockchain but you will need to trust full clients(aka Bitcoin nodes) for verifying payments*. Most used lightweight desktop clients are Multibit HD(https://multibit.org/) and Electrum(https://electrum.org/). You can find comparison between wallets here -- https://bitcoin.org/en/choose-your-wallet.

If you meet the below requirements, I recommend you to use Bitcoin core:

  • 50 gigabytes of free disk space
  • 2 gigabytes of memory (RAM)
  • A broadband Internet connection with upload speeds of at least 400 kilobits (50 kilobytes) per second

* http://bitcoin.stackexchange.com/a/18741[/list]

studysession (OP)
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
June 20, 2015, 06:44:06 PM
 #20

RasPi2 on has 1GB RAM So I assume I would not be able to do that with a RasPi?

Guess more google searching. I wish I knew more about the how-to on setting this up  Grin

Thanks Smiley

Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!