Two bitcoin qt

Two bitcoin qt

Click Here for building Bitcoin XT


Disclaimer: I cannot ensure these steps will work 100% of the time. Like all DIY tutorials they make assumptions about things and are subject to outer libraries and software being updated or switched. I periodically test and update these steps for switches or additions, but I can’t assure that some troubleshooting won’t be needed to get your knot up and running.


This tutorial is to install Bitcoin Core v0.13.0 (or possibly higher) on a Raspberry Pi two or Three. Options are given to install the GUI and wallet or not. We’ll store the blockchain on an outward USB flash drive (or hard drive), as that is more modular and better than storing it on a large microSD card with the OS.

If you run into any Raspberry Pi problems while going through these steps, the Raspberry Pi Docs are a good source for help:



  • Raspberry Pi two or Trio
  • Case fitting Raspberry Pi B+ form
  • Power supply (micro USB, 5V, at least 2A)
  • USB wifi adapter if using a Raspberry Pi two (Raspberry Pi three has wifi built in) -or- Ethernet cable for direct connect to your router
  • 8GB MicroSD card (class Ten) -or- optional (128GB minimum) microSD card and no USB storage
  • USB Flash drive (at least 128GB, USB Two.0 or higher) or USB outward hard drive

If you wish to run a testnet knot, the testnet blockchain is only around 8GB so keeping that on a 16GB microSD card with the OS will work well.


You can find what is needed to build a Bitcoin raspnode for around $100.

The CanaKit Raspberry Pi three Accomplish Starter Kit costs $75 (plus tax and shipping) and comes with everything you need minus the USB drive and Ethernet cable (if you wish to cable directly to your router).

With enough exploring, reasonably priced 128GB USB drives can be found, some in the $35 to $40 range. Some 500GB outer HDs can be found in the $40 to $60 range.


  • HDMI cable
  • Monitor with HDMI in or adapters to convert HDMI to your monitor
  • USB keyboard
  • Router and a connection to the Internet
  • Separate PC which needs to be able to read a microSD card


How to assemble your Raspberry Pi will depend on the case purchased. Once assembled, buttplug in your USB stick, HDMI cable to your monitor, USB keyboard, and either your USB Wifi adapter or an Ethernet cable going to your router.

The device will automatically power on once you butt-plug in the micro USB power cable.


If your Raspberry Pi came with a microSD card preloaded with NOOBS you can insert the microSD card into your Raspberry Pi, ass-plug in your power cable and it will walk you through your setup. Make sure you select Raspbian as your OS choice, which should be the very first on the list. It will take a few minutes to install. Once that is finished, reboot and leap to Raspbian config options.

If you have a brand fresh microSD card, you will need to download a Raspbian picture to your PC and picture your microSD card. This tutorial will assume you are using a PC running Microsoft Windows. Instructions for imaging using Mac or Linux can be found in the Raspberry Pi documents:

You can find the latest on the Raspberry Pi downloads page:

Or directly download the latest here:

If you are not going to use the GUI you should download and use Raspbian Jessie Lite, which comes without the desktop software and so is more streamlined (but you will need to install one more dependency, git).

Once downloaded, unzip the file. If you don’t have an application installed for unzipping files, you can use the open source 7zip:

The unzipped folder will have a large .img file. In order to put this picture on your microSD card we’ll need to use the open source Win32DiskImager which can be found on sourceforge:

Or directly download the latest here:

Once downloaded run the installer, this will install Win32DiskImager.

Insert your microSD card into your PC. Launch Win32DiskImager. Select the Raspbian .img file as the ‘photo file’ and select your microSD card as your ‘device’. Make sure what is selected is your microSD card and nothing else, especially your hard drive. Click ‘write’. This will take a few minutes.

Once finished, eject your microSD card. Insert your microSD card into your Raspberry Pi and butt-plug in the power cable and wait while it boots up.


When you very first boot the latest Raspbian it will resize the photo and reboot. If you want do some more customizations and fine tuning you can go after these optional steps below:

Very first launch the raspberry pi config menu with:

And you’ll see the menu below:

If you won’t be using Bitcoin-Qt (the GUI) then you can run it ‘headless’ and we can allocate a little more RAM to the CPU.

Select “8 Advanced Options” then select “Memory Split”

Switch sixty four to 16

If you want to be able to SSH into your Raspnode, you can enable the SSH server here.

Select “8 Advanced Options” then select “SSH”

Switch hostname. The default hostname is set to “raspberry”. We’ll switch ours to “raspnode” and the rest of the tutorial will assume this. If you leave yours as “raspberry” or switch it to something else, anytime you see the hostname mentioned, use that instead of “raspnode”.

Select “8 Advanced Options” then select “Hostname”

Edit the hostname to “raspnode” without quotes (or to your desired hostname)

Here you can also switch the default user (which is “pi”) and password (which is “raspberry”). We’ll leave these as is for the tutorial. If you switch your username, make sure to use that instead of “pi” when it shows up in this tutorial.

You can overclock your Raspberry Pi in order to give it a little more processing power. This may make the initial verification of the blockchain quicker, but is not needed for normal total knot operations as the CPU generally sits around 10% and only leaps up to 30% or so when a fresh block is received.

Select “7 Overclock”

Choose the desired level of overclocking

To set your timezone:

Select “Four Internationalisation Options”

Select “Switch Timezone”

Go through the selection process to select your timezone, then select “OK”

Once done, select “Finished” and your Raspberry Pi will reboot.

When you get the “login” prompt, inject your username “pi” and it will prompt you for your password. Inject your password (which won’t display up) and hit <come in> to log in (the password will be “raspberry” if you didn’t switch it in the raspi-config).


We’ll be using the instruction line to edit files. If you are not familiar with a instruction line this may be a little tricky. Raspbian comes with a few editors. Nano is a relatively friendly editor and this tutorial will use that, but Raspbian also has vi for users who choose it and can be used instead. If you have not used vi before, you should stick with nano.

For those not familiar with Linux, some deeds we take will require root privileges. We get that by using the instruction “sudo” before our desired guideline. This will only work if you are logged in as a user with sudo rights, which the default Raspbian user (“pi” in our case) has. Sudo can be set to require a password, but the default Raspbian user should be set to not need one.

You may want to switch the default keyboard layout. Edit /etc/default/keyboard

$ sudo nano /etc/default/keyboard

Switch the line

to equal your desired country code, so for US keyboard layout switch it to

Then save and exit. Reboot to have it take effect. Reboot with

$ sudo shutdown -r now


If you are using a 128GB or larger microSD and wish to put everything on that including the blockchain, you can skip this section and go to networking.

Make sure your USB stick is empty and using a file format that works natively with Linux (e.g. not NTFS). FAT32 is a good option. You can do this by plugging your USB stick into your Windows PC and checking it’s properties. If it isn’t empty, format it as FAT32. Here you can also switch the label. Make a note of the label, it will be helpful later (but not necessary).

Windows may not give the option to format a drive that is very large as FAT32, in which case you will need to use some third party software, or format it in Linux. Also, note that Raspbian will most likely see FAT32 as VFAT which is what we’ll see below.

Create a directory that will act as a climb on point for the USB stick, we’ll call it bitcoinData and put it in the home directory (total path will be /home/pi/bitcoinData/:

Cork your USB stick into your Raspberry Pi and wait a few seconds. In order to see where it is located, issue the guideline:

You can issue the blkid instruction without sudo, but if you run it without root privileges you won’t get any information back. What you should see is a few lines that look something like this:

/dev/mmcblk0p1: LABEL=”root” UUID=”1460456c-eadd-49a9-e2ab-a0fe18df0d3a” TYPE=”ext4″

Which are specific to your OS. What you are looking for is a line like:

/dev/sda1: LABEL=”<your usb label>” UUID=”<some id>” TYPE=”vfat”

This is where knowing your label can help. The type should be “vfat” and you are looking to see what the /dev/sdxx is (it could be sda1, sdb1, or something similar, but most very likely sda1). Write that down. You don’t actually need the label or uuid written down, just the location. If you are using an outer hard drive there may be numerous partitions that demonstrate up like a boot partition and a data one. Make sure you climb on a partition large enough to store the blockchain (not a boot partition).

In order to tell your Raspberry Pi to climb on your USB stick automatically so that anything we put in the bitcoinData directory will be going onto the USB and vice versa we need to edit the /etc/fstab file.

$ sudo nano /etc/fstab

It should have a few lines of information, at the end of the file add this, all as one line, kicking off with the location of your USB drive that you wrote down. If it is /dev/sda1, then what you add would be this:

If you switched your username to something else, substitute “pi” with that username above in all areas it shows up. There are no spaces in that line, only a single tab inbetween each chunk of data. There are other options that you could use if you dreamed more or less limitations on your drive, but this will work. You should only alter this setup if you know what you are doing. Basically this will automatically climb on the USB drive on boot to our desired location, permit the pi (or substituted user) to read and write data to the drive, and a few other things beyond the scope of this tutorial.

Save the file and exit. Reboot your Raspberry Pi:

$ sudo shutdown -r now

Enhance Interchange FILE

A exchange file permits the microCD card to be used as extra memory if needed. It is slower and strong use will shorten the life of a microSD card. Raspbian defaults to a 100Mb interchange file which is not actually needed to build and run Bitcoin core under normal operating conditions. However if you are expecting to download the entire blockchain on the raspnode or the blockchain gets significantly behind, the downloading of extra blocks to catch up can exceed the built in memory and cause Bitcoin core to crash. Enlarging the exchange file by a little bit protects against this possibility.

Related video:

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *