Groestlcoin Forum
Groestl => Tutorials => Topic started by: jackielove4u on January 20, 2019, 07:03:34 PM
The following were tested in Ubuntu 14.04,
some dependencies can be different in other distros. Nmp version must be 2.xx.xx and nodejs version must be v10.xx.xx- aptitude update -y && aptitude upgrade -y && apt-get update -y && apt-get upgrade -y && apt-get dist-upgrade -y
- dd if=/dev/zero of=/swapfile bs=1M count=4096
- mkswap /swapfile
- swapon /swapfile
- echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
- sudo apt-get install build-essential libssl-dev libboost-all-dev libdb5.3 libdb5.3-dev libdb5.3++-dev libtool automake libevent-dev bsdmainutils -y
- sudo apt-get install git ntp make g++ gcc autoconf cpp ngrep iftop sysstat autotools-dev pkg-config libminiupnpc-dev libzmq3-dev -y
- sudo apt-get install libgmp-dev libsqlite3-dev python python3 net-tools zlib1g-dev gettext jq -y
- git clone https://github.com/groestlcoin/groestlcoin
- cd groestlcoin
- ./autogen.sh
- ./configure
- make
- strip src/groestlcoind src/groestlcoin-cli src/groestlcoin-tx
- sudo mv src/groestlcoind src/groestlcoin-cli src/groestlcoin-tx /usr/bin
- mkdir ~/.groestlcoin
- nano ~/.groestlcoin/groestlcoin.conf
- write:
listen=1
server=1
maxconnections=865
daemon=1
txindex=1
rpcuser=yourusernamehere
rpcpassword=yourpasswordhere - Crtl+o enter, ctrl X
- groestlcoind -testnet
- Let it sync (can take up to 2 hours), verify with groestlcoin-cli -getinfo
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
- source ~/.profile
- nvm install v0.10.48
- sudo apt-get install nginx
- git clone https://github.com/GroestlCoin/insight
- cd insight
- npm install --unsafe-perm
- nano node_modules/insight-bitcore-api/config/config.js
- edit rpcusername at line 72 user: process.env.BITCOIND_USER || 'yourusernamehere',
- edit rpcpassword at line 73 to user: process.env.BITCOIND_USER || 'yourpasswordhere',
- nano /etc/nginx/sites-available/default
- delete all and paste:
server {
listen 80;
#listen 443 ssl;
#ssl_certificate /etc/nginx/ssl/nginx.crt;
#ssl_certificate_key /etc/nginx/ssl/nginx.key;
server_name groestlsight-test.groestlcoin.org;
# force https-redirects
#if ($scheme = http) {
# return 301 https://groestlsight-test.groestlcoin.org$request_uri;
#}
location / {
proxy_pass http://localhost:3031;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
# Enables WS support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
}
} - service nginx restart
- screen
- export NODE_ENV=production && export INSIGHT_NETWORK=testnet && export INSIGHT_FORCE_RPC_SYNC=1 && npm start
- Crtl+A, ctrl+D
- cd\
- git clone https://github.com/Groestlcoin/bitcore-wallet-service
- sudo apt-get install -y mongodb
- cd bitcore-wallet-service/
- npm install
- chmod +x start.sh stop.sh
- ./stop.sh
- ./start.sh
- sudo apt-get install certbot
- certbot certonly --standalone -d blockbook.groestlcoin.org
- crontab -e
- Add end of file:
15 3 * * * /usr/bin/certbot renew --quiet - Crtl+o enter, ctrl X
- systemctl reload nginx