News:

Are you new to Groestlcoin and have questions you are afraid to ask?
Check out the New Users board and post there.
Welcome to all newcomers.

Main Menu

How to run Groestlcoin mainnet and tor network on same server

Started by jackielove4u, January 11, 2017, 08:37:54 PM

Previous topic - Next topic

jackielove4u

The following were tested in Ubuntu 14.04 and Ubuntu 16.04, some dependencies can be different in other distros
    • 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
    • sudo nano /etc/apt/sources.list
    • Add this line on any line for 14.04:
      deb http://deb.torproject.org/torproject.org trusty main
      deb-src http://deb.torproject.org/torproject.org trusty main
    • Add this line on any line for 16.04:
      deb http://deb.torproject.org/torproject.org xenial main
      deb-src http://deb.torproject.org/torproject.org xenial main
    • Add this line on any line for 18.04:
      deb http://deb.torproject.org/torproject.org bionic main
      deb-src http://deb.torproject.org/torproject.org bionic main
    • Crtl+o enter, ctrl X
    • curl https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --import
    • gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -
    • sudo apt-get update
    • sudo apt-get install tor deb.torproject.org-keyring -y
    • sudo nano /usr/share/tor/tor-service-defaults-torrc
    • Add this line on any line:
      ControlPort 9051
    • Crtl+o enter, ctrl X
    • sudo /etc/init.d/tor restart
    • git clone https://github.com/groestlcoin/groestlcoin
    • cd groestlcoin
    • ./autogen.sh
    • ./configure
    • make
    • strip src/groestlcoind src/groestlcoin-cli src/groestlcoin-tx src/groestlcoin-wallet src/groestlcoin-util
    • sudo mv src/groestlcoind src/groestlcoin-cli src/groestlcoin-tx src/groestlcoin-wallet src/groestlcoin-util /usr/bin
    • mkdir ~/.groestlcoin
    • nano ~/.groestlcoin/groestlcoin.conf
    • write:
      debug=tor
      listen=1
      server=1
      maxconnections=863
      daemon=1
      txindex=1
      blockfilterindex=1
      coinstatsindex=1
      rpcuser=yourusernamehere
      rpcpassword=yourpasswordhere
    • Crtl+o enter, ctrl X
    • groestlcoind
    • tail -f ~/.groestlcoin/debug.log | grep tor
    • Let it sync (can take up to 2 hours), check the groestlcoin taillog to make sure the tor configuration works