Last active
August 14, 2017 20:15
-
-
Save MrChrisJ/da95dd07fc1f0c37322ec09fe199aa13 to your computer and use it in GitHub Desktop.
Updating Bitcoin Fullnode from v0.12 to 0.13.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Install updates | |
sudo apt-get update | |
# Install dependencies for Bitcoin Core (not the GUI) | |
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 libtool libevent-dev -y | |
# Install dependencies for Bitcoin QT (GUI) | |
sudo apt-get install libqt4-dev qt4-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev -y | |
# Setup Swap file | |
sudo sed -i '16s/.*/CONF_SWAPSIZE=1024/g' /etc/dphys-swapfile | |
sudo dphys-swapfile setup | |
sudo dphys-swapfile swapon | |
mkdir ~/bin | |
cd ~/bin | |
git clone -b v0.13.1 https://github.com/bitcoin/bitcoin | |
cd bitcoin/ | |
./autogen.sh | |
./configure CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include -O2" LDFLAGS="-L/usr/local/BerkeleyDB.4.8/lib" --enable-upnp-default --with-gui=qt4 | |
make -j2 | |
sudo make install | |
sudo rm -r -f /home/pi/bin | |
# Remove the swap file we made earlier | |
sudo chmod -x /etc/init.d/dphys-swapfile | |
sudo swapoff -a | |
sudo rm /var/swap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Download this file to the Pi and type the line:
Then sit back and relax.
You can also create a new document on the Pi using Nano and just copy paste the code above if you are using SSH. The new config file is here: https://github.com/MrChrisJ/fullnode/blob/master/Setup_Guides/bitcoin.conf