forked from ImYourVirus/tacocoind-centos-install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtacocoind-centos-install.sh
executable file
·68 lines (58 loc) · 2.57 KB
/
tacocoind-centos-install.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
#echo " Updating Server "
yum -y update
#echo " Step #1: Installing the Dependencies "
yum -y groupinstall "Development Tools"
yum -y install zlib-devel bzip2-devel wget python-devel
echo '/usr/local/lib' > /etc/ld.so.conf.d/usr_local_lib.conf && /sbin/ldconfig
echo '/usr/local/lib64' > /etc/ld.so.conf.d/usr_local_lib64.conf && /sbin/ldconfig
#echo " Step #2: Installing OpenSSL "
cd /usr/local/src
wget -qO- http://www.openssl.org/source/openssl-1.0.1f.tar.gz | tar xzv
cd openssl-1.0.1f
./config shared --prefix=/usr/local --openssldir=/usr/local/ssl
make && make install
#echo " Step #3: Installing Boost (A Collection of C++ Libraries) "
cd /usr/local/src
wget -qO- http://downloads.sourceforge.net/boost/boost_1_55_0.tar.bz2 | tar xjv
cd boost_1_55_0/
./bootstrap.sh --prefix=/usr/local
./b2 install --with=all
#echo " Step #4: Installing BerkeleyDB (A Library for High-Performance Database Functionality) "
cd /usr/local/src
wget -qO- http://download.oracle.com/berkeley-db/db-5.1.19.tar.gz | tar xzv
cd db-5.1.19/build_unix
../dist/configure --prefix=/usr/local --enable-cxx
make && make install
echo "Step #Wow: Installing tacocoind "
cd /usr/local/src
ldconfig
mkdir /usr/local/src/tacocoin-master
cd /usr/local/src/tacocoin-master
wget -q https://api.github.com/repos/tacocoin/tacocoin/tarball/master --no-check-certificate
tar xf TacoCoin-TacoCoin*
cd src
make -f makefile.unix USE_UPNP=- BDB_LIB_PATH=/usr/local/lib OPENSSL_LIB_PATH=/usr/local/lib64
mv tacocoind
#echo " The tacocoind binary should now be compiled. Next we.ll strip the debugging symbols out of the binary and move it to a location that allows for easy execution. "
strip tacocoind
cp -a tacocoind /usr/local/bin/
#echo " Step #6: Configuring tacocoind "
#echo " Most scrypt-based cryptocurrencies use a configuration file that is nearly identical to LiteCoin.s. It is generally safe to use Litecoin documentation when looking up configuration variables. "
#echo " If you do not have a standard non-root user, then you can create one using the useradd command. In this example we.re going to create a user named taco. "
useradd -m -s/bin/bash taco
mkdir /home/taco/.tacocoin
chown taco:taco /home/taco/.tacocoin
cd /home/taco/.tacocoin
pass=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 30)
echo "rpcuser=tacocoinrpc
rpcpassword=$pass
addnoe=taco.mineempire.com
daemon=1
listen=1
server=1
" >> coin.conf
chown taco:taco coin.conf
#echo " Assume the identity of the non-privileged user, taco. "
su - taco
#echo " Now that you.ve assumed the identity of a non-privileged user, you will want to run tacocoind for the first time. "
tacocoind