-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFLO_0.15.sh
44 lines (36 loc) · 1.27 KB
/
FLO_0.15.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
## WELCOME TO FLO 0.15 INSTALLATION SCRIPT
## Switch To Home Directory
cd ~
## Installing the Dependencies
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
sudo apt-get install libboost-all-dev
## Installing db4.8 (Only for Ubuntu users)
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
## If you want to build FLO-Qt, make sure that the required packages for Qt development are installed.
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
## This is the source
git clone https://github.com/floblockchain/flo.git
cd flo
./autogen.sh
./configure
make
make install
## Adding the flo.conf file and creating RPC username and password
cd ~
sudo mkdir .flo
config=".flo/flo.conf"
sudo touch $config
echo "server=1" >> $config
echo "daemon=1" >> $config
echo "listen=1" >> $config
echo "txindex=1" >> $config
echo "Enter your RPC username: "
read randUser
randPass=`< /dev/urandom tr -dc A-Za-z0-9 | head -c30`
echo $randPass
echo "rpcuser=$randUser" >> $config
echo "rpcpassword=$randPass" >> $config
echo "addnode=146.185.148.114" >> $config