Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
UASF_Raspberry_Pi.sh - Testing
#!/bin/sh
# Install updates
sudo apt-get update
sudo apt-get upgrade -y
# 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=2048/g' /etc/dphys-swapfile
sudo dphys-swapfile setup
sudo dphys-swapfile swapon
mkdir ~/bin/
cd ~/bin/
wget http://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/
../dist/configure --enable-cxx
make -j4
sudo make install
cd ~/bin/
git clone https://github.com/UASF/bitcoin.git -b 0.14-BIP148
cd ~/bin/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
mkdir /home/pi/.bitcoin/
cd .bitcoin/
touch bitcoin.conf
printf 'listen=1\n server=1\n daemon=1\n testnet=0\n rpcuser=BITCOIN_USER\n rpcpassword=BITCOIN_PASSWORD' >> bitcoin.conf
# Remove the swap file we made earlier
sudo chmod -x /etc/init.d/dphys-swapfile
sudo swapoff -a
sudo rm /var/swap
UUID=ACBA-61BD /home/pi/.bitcoin vfat uid=pi,gid=pi,umask=0022,sync,auto,nosuid,rw,nouser 0 0
#!/bin/sh
# Install updates
sudo apt-get update
sudo apt-get upgrade -y
# 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=2048/g' /etc/dphys-swapfile
sudo dphys-swapfile setup
sudo dphys-swapfile swapon
mkdir ~/bin/
cd ~/bin/
wget http://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/
../dist/configure --enable-cxx
make -j4
sudo make install
git clone https://github.com/UASF/bitcoin.git -b 0.14-BIP148
cd ~/bin/bitcoin
sudo ./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
sudo make -j2
sudo make install
sudo mkdir ~/.bitcoin
cd ~/.bitcoin
touch bitcoin.conf
printf 'listen=1\nserver=1\ndaemon=0\ntestnet=0\nmempoolexpiry=72\nmaxmempool=300\nmaxorphantx=100\nlimitfreerelay=10\nminrelaytxfee=0.0001\nmaxconnections=40\n' >> bitcoin.conf
# Remove the swap file we made earlier
#sudo swapoff -a
#sudo rm /var/swap
#sudo systemctl disable dphys-swapfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.