-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshibacoin-build-ubuntu.sh
executable file
·70 lines (54 loc) · 1.91 KB
/
shibacoin-build-ubuntu.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/sh
swapoff -a
fallocate -l 3G /swapfile
chown root:root /swapfile
chmod 0600 /swapfile
sudo bash -c "echo 'vm.swappiness = 10' >> /etc/sysctl.conf"
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab
free -m
df -h
rm -rf ~/root/.shibacoin
cd ~ && sudo apt-get update && sudo apt-get upgrade -y &&
sudo apt-get install git curl cmake automake python3 bsdmainutils libtool autotools-dev libboost-all-dev libssl-dev libevent-dev libdb++-dev libminiupnpc-dev libnatpmp-dev systemtap-sdt-dev libprotobuf-dev protobuf-compiler libzmq3-dev libsqlite3-dev pkg-config net-tools build-essential -y &&
sudo apt gen install sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools -y &&
sudo apt install qtwayland5 -y &&
sudo apt-get install libqrencode-dev -y &&
sed -i 's/__atomic_compare_exchange/__atomic_compare_exchange_db/g' db-4.8.30.NC/dbinc/atomic.h
# Install the repository ppa:bitcoin/bitcoin
sudo apt-get install software-properties-common -y &&
sudo apt-get update -y &&
cd ~
cd shibacoin
./contrib/install_db4.sh `pwd`
export BDB_PREFIX='/root/shibacoin/db4'
./autogen.sh
./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" CXXFLAGS="--param ggc-min-expand=1 --param ggc-min-heapsize=32768" --enable-upnp-default --enable-hardening
make
make install
sudo ufw enable -y
sudo ufw allow 44556/tcp
sudo ufw allow 33445/tcp
sudo ufw allow 22/tcp
sudo mkdir ~/.shibacoin
cat << "CONFIG" >> ~/.shibacoin/shibacoin.conf
daemon=1
listen=1
server=1
rpcport=44556
port=33445
rpcuser=SWmtLhap34m213BDaVWghQcRuMBwP4pdPM
rpcpassword=c=SHIBA
rpcconnect=127.0.0.1
rpcallowip=127.0.0.1
addnode=51.77.48.45:33445
addnode=51.195.249.132:33445
addnode=135.125.225.55:33445
CONFIG
chmod 700 ~/.shibacoin/shibacoin.conf
chmod 700 ~/.shibacoin
ls -la ~/.shibacoin
cd ~
cd /usr/local/bin
shibacoind -daemon -txindex -reindex