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
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - jackielove4u

#241
git clone https://github.com/Groestlcoin/groestlcoinjs-lib
cd groestlcoinjs-lib
npm install
npm pack
cp groestlcoinjs-lib-4.0.5.tgz /root/
cd\
npm i groestlcoinjs-lib-4.0.5.tgz
npm -g install browserify uglify-es uglifyjs
browserify -r groestlcoinjs-lib -s groestlcoin > groestlcoinjs.js
uglifyjs groestlcoinjs.js > groestlcoinjs.min.js
#242
Tutorials / How to setup Blockbook for testnet
October 18, 2018, 10:39:55 PM
The following were tested in Debian 11, 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
    • apt-get install build-essential libssl-dev libboost-all-dev libdb5.3 libdb5.3-dev libdb5.3++-dev libtool automake libevent-dev bsdmainutils -y
    • apt-get install git ntp make g++ gcc autoconf cpp ngrep iftop sysstat autotools-dev pkg-config libminiupnpc-dev libzmq3-dev -y
    • apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common git screen -y
    • curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
    • add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
    • apt-get update
    • apt-get install docker-ce -y
    • git clone https://github.com/trezor/blockbook
    • cd blockbook
    • make deb-backend-groestlcoin_testnet deb-blockbook-groestlcoin_testnet
    • cd build
    • apt install ./blockbook-g*deb ./backend-g*deb -y
    • systemctl start backend-groestlcoin-testnet
    • cd /opt/coins/data/groestlcoin_testnet/backend/testnet3
    • wait till deamon is synced (check with: tail debug.log)
    • systemctl restart backend-groestlcoin-testnet
    • systemctl enable backend-groestlcoin-testnet
    • systemctl start blockbook-groestlcoin-testnet
    • cd /opt/coins/blockbook/groestlcoin_testnet/logs/
    • wait till blockbook is synced (check with: tail blockbook.INFO)
    • systemctl enable blockbook-groestlcoin-testnet
    • sudo apt-get install certbot
    • certbot certonly --standalone -d blockbook-test.groestlcoin.org
    • crontab -e
    • Add end of file:
      14 3 * * * /usr/sbin/service nginx stop
      15 3 * * * /usr/bin/certbot renew --quiet
      16 3 * * * /usr/sbin/service nginx start
    • Crtl+o enter, ctrl X
    • systemctl restart blockbook-groestlcoin-testnet
    • apt-get install nginx
    • nano /etc/nginx/sites-available/default
    • delete all and paste:
      server {
          listen 80;
          listen 443 ssl;
          ssl_certificate /etc/letsencrypt/live/blockbook-test.groestlcoin.org/fullchain.pem;
          ssl_certificate_key /etc/letsencrypt/live/blockbook-test.groestlcoin.org/privkey.pem;

          server_name blockbook-test.groestlcoin.org;

          # force https-redirects
          if ($scheme = http) {
              return 301 https://blockbook-test.groestlcoin.org$request_uri;
          }

          location / {
              add_header Access-Control-Allow-Origin '*' always;
              proxy_pass https://localhost:19145;
              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;
          }
      }
    • systemctl reload nginx
#243
Tutorials / How to setup Blockbook
October 18, 2018, 10:38:35 PM
The following was tested in Debian 11, 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
    • apt-get install build-essential libssl-dev libboost-all-dev libdb5.3 libdb5.3-dev libdb5.3++-dev libtool automake libevent-dev bsdmainutils -y
    • apt-get install git ntp make g++ gcc autoconf cpp ngrep iftop sysstat autotools-dev pkg-config libminiupnpc-dev libzmq3-dev -y
    • apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common git screen -y
    • curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
    • add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
    • apt-get update
    • apt-get install docker-ce -y
    • git clone https://github.com/trezor/blockbook
    • cd blockbook
    • make all-groestlcoin
    • cd build
    • apt install ./blockbook-g*deb ./backend-g*deb -y
    • systemctl start backend-groestlcoin
    • cd /opt/coins/data/groestlcoin/backend
    • wait till deamon is synced (check with: tail debug.log)
    • systemctl restart backend-groestlcoin
    • systemctl enable backend-groestlcoin
    • screen
    • while true; do date; systemctl restart blockbook-groestlcoin; sleep 600; done
    • Crtl+A, ctrl+D
    • cd /opt/coins/blockbook/groestlcoin/logs/
    • wait till blockbook is synced (check with: tail blockbook.INFO)
    • systemctl enable blockbook-groestlcoin
    • sudo apt-get install certbot
    • certbot certonly --standalone -d blockbook.groestlcoin.org
    • crontab -e
    • Add end of file:
      14 3 * * * /usr/sbin/service nginx stop
      15 3 * * * /usr/bin/certbot renew --quiet
      16 3 * * * /usr/sbin/service nginx start
    • Crtl+o enter, ctrl X
    • systemctl restart blockbook-groestlcoin
    • apt-get install nginx
    • nano /etc/nginx/sites-available/default
    • delete all and paste:
      server {
          listen 80;
          listen 443 ssl;
          ssl_certificate /etc/letsencrypt/live/blockbook.groestlcoin.org/fullchain.pem;
          ssl_certificate_key /etc/letsencrypt/live/blockbook.groestlcoin.org/privkey.pem;

          server_name blockbook.groestlcoin.org;

          # force https-redirects
          if ($scheme = http) {
              return 301 https://blockbook.groestlcoin.org$request_uri;
          }

          location / {
              add_header Access-Control-Allow-Origin '*' always;
              proxy_pass https://localhost:9145;
              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;
          }
      }
    • systemctl reload nginx
#244
Tutorials / How to update C-lightning (for testnet)
October 03, 2018, 07:42:42 PM
The following were tested in Ubuntu 14.04 and Ubuntu 16.04, some dependencies can be different in other distros.

    • screen -r
    • Crtl+C
    • git pull
    • ./configure
    • make
    • strip lightningd/lightningd cli/lightning-cli
    • ./lightningd/lightningd
    • Crtl+A, ctrl+D
    • check if all is ok: ./cli/lightning-cli getinfo
#245
The following were tested in Ubuntu 18.04, some dependencies can be different in other distros

  • sudo -H ./electrumx-grs-installer/install.sh --update && service electrumx-grs restart

check logs with: journalctl -u electrumx-grs -f
#246
The following were tested in Ubuntu 14.04, Ubuntu 16.04 and Ubuntu 18.04, some dependencies can be different in other distros
    • 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 curl librsvg2-bin libtiff-tools bsdmainutils cmake imagemagick libcap-dev libz-dev libbz2-dev python-setuptools
    • sudo apt-get install g++-aarch64-linux-gnu g++-4.8-aarch64-linux-gnu gcc-4.8-aarch64-linux-gnu binutils-aarch64-linux-gnu g++-arm-linux-gnueabihf g++-4.8-arm-linux-gnueabihf gcc-4.8-arm-linux-gnueabihf binutils-arm-linux-gnueabihf g++-4.8-multilib gcc-4.8-multilib binutils-gold
    • sudo apt install g++-mingw-w64-x86-64
    • sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.
    • sudo apt install g++-mingw-w64-i686 mingw-w64-i686-dev
    • sudo update-alternatives --config i686-w64-mingw32-g++  # Set the default mingw32 g++ compiler option to posix.
    • git clone https://github.com/groestlcoin/groestlcoin
    • cd groestlcoin
    • cd depends
    • mkdir SDKs
    • cd SDKs
    • wget --no-check-certificate https://bitcoincore.org/depends-sources/sdks/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
    • tar -xaf Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
    • rm -rf Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
    • cd..
    • make HOST=x86_64-apple-darwin
    • cd ..
    • ./autogen.sh
    • ./configure --prefix=`pwd`/depends/x86_64-apple-darwin
    • make
    • make deploy

The following were tested on macOS Sierra version 10.13.4, some dependencies can be different in other mac versions
#247
The following were tested in Ubuntu 14.04, Ubuntu 16.04 and Ubuntu 18.04, some dependencies can be different in other distros
    • 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 curl librsvg2-bin libtiff-tools bsdmainutils cmake imagemagick libcap-dev libz-dev libbz2-dev python-setuptools
    • sudo apt-get install g++-aarch64-linux-gnu g++-4.8-aarch64-linux-gnu gcc-4.8-aarch64-linux-gnu binutils-aarch64-linux-gnu g++-arm-linux-gnueabihf g++-4.8-arm-linux-gnueabihf gcc-4.8-arm-linux-gnueabihf binutils-arm-linux-gnueabihf g++-4.8-multilib gcc-4.8-multilib binutils-gold
    • sudo apt install g++-mingw-w64-x86-64
    • sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.
    • sudo apt install g++-mingw-w64-i686 mingw-w64-i686-dev
    • sudo update-alternatives --config i686-w64-mingw32-g++  # Set the default mingw32 g++ compiler option to posix.
    • git clone https://github.com/groestlcoin/groestlcoin
    • cd groestlcoin
    • cd depends
    • mkdir SDKs
    • cd SDKs
    • wget --no-check-certificate https://bitcoincore.org/depends-sources/sdks/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
    • tar -xaf Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
    • rm -rf Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
    • cd..
    • make HOST=x86_64-apple-darwin
    • cd ..
    • ./autogen.sh
    • ./configure --prefix=`pwd`/depends/x86_64-apple-darwin
    • make
    • make install DESTDIR=~/home/groestlcoin-version

The following were tested on macOS Sierra version 10.13.4, some dependencies can be different in other mac versions
  • Start Terminal
  • xcode-select --install
  • /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • brew install automake libtool boost pkg-config libevent sqlite berkeley-db@5 qt@5 qrencode miniupnpc libnatpmp zeromq
  • git clone https://github.com/Groestlcoin/groestlcoin.git
  • cd groestlcoin
  • ./autogen.sh
  • ./configure
  • make
  • make install DESTDIR=~/home/groestlcoin-version
  • strip ~/home/groestlcoin-version/bin/groestlcoind ~/home/groestlcoin-version/bin/groestlcoin-cli ~/home/groestlcoin-version/bin/groestlcoin-tx ~/home/groestlcoin-version/bin/groestlcoin-qt
#248
The following were tested in Ubuntu 14.04, Ubuntu 16.04 and Ubuntu 18.04, some dependencies can be different in other distros

    • 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 curl librsvg2-bin libtiff-tools bsdmainutils cmake imagemagick libcap-dev libz-dev libbz2-dev python-setuptools
    • sudo apt-get install g++-aarch64-linux-gnu g++-4.8-aarch64-linux-gnu gcc-4.8-aarch64-linux-gnu binutils-aarch64-linux-gnu g++-arm-linux-gnueabihf g++-4.8-arm-linux-gnueabihf gcc-4.8-arm-linux-gnueabihf binutils-arm-linux-gnueabihf g++-4.8-multilib gcc-4.8-multilib binutils-gold
    • sudo apt install g++-mingw-w64-x86-64
    • sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.
    • sudo apt install g++-mingw-w64-i686 mingw-w64-i686-dev
    • sudo update-alternatives --config i686-w64-mingw32-g++  # Set the default mingw32 g++ compiler option to posix.
    • git clone https://github.com/groestlcoin/groestlcoin
    • cd groestlcoin
    • cd depends
    • make HOST=i686-w64-mingw32
    • cd ..
    • ./autogen.sh
    • ./configure --prefix=`pwd`/depends/i686-w64-mingw32
    • make
    • make install DESTDIR=~/home/groestlcoin-version
    • strip ~/home/groestlcoin-version/bin/groestlcoind.exe ~/home/groestlcoin-version/bin/groestlcoin-cli.exe ~/home/groestlcoin-version/bin/groestlcoin-tx.exe ~/home/groestlcoin-version/bin/groestlcoin-qt.exe

The following were tested in Windows 10 with Windows Subsystem for Linux (WSL), some dependencies can be different in other Windows versions

    • start OptionalFeatures.exe
    • Enable 'Windows Subsystem for Linux'
    • Click 'OK' and restart if necessary
    • Open Microsoft Store and search for "Ubuntu 18.04"
    • Click Install
    • Open a cmd prompt and type "Ubuntu1804"
    • Create a new UNIX user account (this is a separate account from your Windows account)
    • sudo apt update && sudo apt upgrade -y
    • sudo apt install build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git nsis -y
    • sudo apt install g++-mingw-w64-x86-64
    • sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.
    • sudo apt install g++-mingw-w64-i686 mingw-w64-i686-dev
    • sudo update-alternatives --config i686-w64-mingw32-g++  # Set the default mingw32 g++ compiler option to posix.
    • git clone https://github.com/groestlcoin/groestlcoin
    • PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g')
    • cd groestlcoin
    • cd depends
    • make HOST=i686-w64-mingw32
    • cd ..
    • ./autogen.sh
    • CONFIG_SITE=$PWD/depends/i686-w64-mingw32/share/config.site ./configure --prefix=/
    • make
    • make install DESTDIR=/mnt/c/workspace/groestlcoin
    • strip /mnt/c/workspace/groestlcoin/bin/groestlcoind.exe /mnt/c/workspace/groestlcoin/bin/groestlcoin-cli.exe /mnt/c/workspace/groestlcoin/bin/groestlcoin-tx.exe /mnt/c/workspace/groestlcoin/bin/groestlcoin-qt.exe
#249
The following were tested in Ubuntu 14.04, Ubuntu 16.04 and Ubuntu 18.04, some dependencies can be different in other distros

    • 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 curl librsvg2-bin libtiff-tools bsdmainutils cmake imagemagick libcap-dev libz-dev libbz2-dev python-setuptools
    • sudo apt-get install g++-aarch64-linux-gnu g++-4.8-aarch64-linux-gnu gcc-4.8-aarch64-linux-gnu binutils-aarch64-linux-gnu g++-arm-linux-gnueabihf g++-4.8-arm-linux-gnueabihf gcc-4.8-arm-linux-gnueabihf binutils-arm-linux-gnueabihf g++-4.8-multilib gcc-4.8-multilib binutils-gold
    • sudo apt install g++-mingw-w64-x86-64
    • sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.
    • sudo apt install g++-mingw-w64-i686 mingw-w64-i686-dev
    • sudo update-alternatives --config i686-w64-mingw32-g++  # Set the default mingw32 g++ compiler option to posix.
    • git clone https://github.com/groestlcoin/groestlcoin
    • cd groestlcoin
    • cd depends
    • make HOST=x86_64-w64-mingw32
    • cd ..
    • ./autogen.sh
    • ./configure --prefix=`pwd`/depends/x86_64-w64-mingw32
    • make
    • make install DESTDIR=~/home/groestlcoin-version
    • strip ~/home/groestlcoin-version/bin/groestlcoind.exe ~/home/groestlcoin-version/bin/groestlcoin-cli.exe ~/home/groestlcoin-version/bin/groestlcoin-tx.exe ~/home/groestlcoin-version/bin/groestlcoin-qt.exe

The following were tested in Windows 10 with Windows Subsystem for Linux (WSL), some dependencies can be different in other Windows versions

    • start OptionalFeatures.exe
    • Enable 'Windows Subsystem for Linux'
    • Click 'OK' and restart if necessary
    • Open Microsoft Store and search for "Ubuntu 18.04"
    • Click Install
    • Open a cmd prompt and type "Ubuntu1804"
    • Create a new UNIX user account (this is a separate account from your Windows account)
    • sudo apt update && sudo apt upgrade -y
    • sudo apt install build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git nsis -y
    • sudo apt install g++-mingw-w64-x86-64
    • sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.
    • sudo apt install g++-mingw-w64-i686 mingw-w64-i686-dev
    • sudo update-alternatives --config i686-w64-mingw32-g++  # Set the default mingw32 g++ compiler option to posix.
    • git clone https://github.com/groestlcoin/groestlcoin
    • PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g')
    • cd groestlcoin
    • cd depends
    • make HOST=x86_64-w64-mingw32
    • cd ..
    • ./autogen.sh
    • CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/
    • make
    • make install DESTDIR=/mnt/c/workspace/groestlcoin
    • strip /mnt/c/workspace/groestlcoin/bin/groestlcoind.exe /mnt/c/workspace/groestlcoin/bin/groestlcoin-cli.exe /mnt/c/workspace/groestlcoin/bin/groestlcoin-tx.exe /mnt/c/workspace/groestlcoin/bin/groestlcoin-qt.exe
#250
The following were tested in Ubuntu 14.04, Ubuntu 16.04 and Ubuntu 18.04, some dependencies can be different in other distros

    • 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 curl librsvg2-bin libtiff-tools bsdmainutils cmake imagemagick libcap-dev libz-dev libbz2-dev python-setuptools
    • sudo apt-get install g++-aarch64-linux-gnu g++-4.8-aarch64-linux-gnu gcc-4.8-aarch64-linux-gnu binutils-aarch64-linux-gnu g++-arm-linux-gnueabihf g++-4.8-arm-linux-gnueabihf gcc-4.8-arm-linux-gnueabihf binutils-arm-linux-gnueabihf g++-4.8-multilib gcc-4.8-multilib binutils-gold
    • sudo apt install g++-mingw-w64-x86-64
    • sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.
    • sudo apt install g++-mingw-w64-i686 mingw-w64-i686-dev
    • sudo update-alternatives --config i686-w64-mingw32-g++  # Set the default mingw32 g++ compiler option to posix.
    • git clone https://github.com/groestlcoin/groestlcoin
    • cd groestlcoin
    • cd depends
    • make HOST=i686-pc-linux-gnu
    • cd ..
    • ./autogen.sh
    • ./configure --prefix=`pwd`/depends/i686-pc-linux-gnu --enable-glibc-back-compat
    • make
    • make install DESTDIR=~/home/groestlcoin-version
    • strip ~/home/groestlcoin-version/bin/groestlcoind ~/home/groestlcoin-version/bin/groestlcoin-cli ~/home/groestlcoin-version/bin/groestlcoin-tx ~/home/groestlcoin-version/bin/groestlcoin-qt
#251
The following were tested in Ubuntu 14.04, Ubuntu 16.04 and Ubuntu 18.04, some dependencies can be different in other distros

    • 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 curl librsvg2-bin libtiff-tools bsdmainutils cmake imagemagick libcap-dev libz-dev libbz2-dev python-setuptools
    • sudo apt-get install g++-aarch64-linux-gnu g++-4.8-aarch64-linux-gnu gcc-4.8-aarch64-linux-gnu binutils-aarch64-linux-gnu g++-arm-linux-gnueabihf g++-4.8-arm-linux-gnueabihf gcc-4.8-arm-linux-gnueabihf binutils-arm-linux-gnueabihf g++-4.8-multilib gcc-4.8-multilib binutils-gold
    • sudo apt install g++-mingw-w64-x86-64
    • sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.
    • sudo apt install g++-mingw-w64-i686 mingw-w64-i686-dev
    • sudo update-alternatives --config i686-w64-mingw32-g++  # Set the default mingw32 g++ compiler option to posix.
    • git clone https://github.com/groestlcoin/groestlcoin
    • cd groestlcoin
    • cd depends
    • make HOST=x86_64-linux-gnu
    • cd ..
    • ./autogen.sh
    • ./configure --prefix=`pwd`/depends/x86_64-linux-gnu --enable-glibc-back-compat
    • make
    • make install DESTDIR=~/home/groestlcoin-version
    • strip ~/home/groestlcoin-version/bin/groestlcoind ~/home/groestlcoin-version/bin/groestlcoin-cli ~/home/groestlcoin-version/bin/groestlcoin-tx ~/home/groestlcoin-version/bin/groestlcoin-qt
#252
The following were tested in Ubuntu 14.04, Ubuntu 16.04 and Ubuntu 18.04, some dependencies can be different in other distros

    • 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 curl librsvg2-bin libtiff-tools bsdmainutils cmake imagemagick libcap-dev libz-dev libbz2-dev python-setuptools
    • sudo apt-get install g++-aarch64-linux-gnu g++-4.8-aarch64-linux-gnu gcc-4.8-aarch64-linux-gnu binutils-aarch64-linux-gnu g++-arm-linux-gnueabihf g++-4.8-arm-linux-gnueabihf gcc-4.8-arm-linux-gnueabihf binutils-arm-linux-gnueabihf g++-4.8-multilib gcc-4.8-multilib binutils-gold
    • sudo apt install g++-mingw-w64-x86-64
    • sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.
    • sudo apt install g++-mingw-w64-i686 mingw-w64-i686-dev
    • sudo update-alternatives --config i686-w64-mingw32-g++  # Set the default mingw32 g++ compiler option to posix.
    • git clone https://github.com/groestlcoin/groestlcoin
    • cd groestlcoin
    • cd depends
    • make HOST=arm-linux-gnueabihf
    • cd ..
    • ./autogen.sh
    • ./configure --prefix=`pwd`/depends/arm-linux-gnueabihf --enable-glibc-back-compat
    • make
    • make install DESTDIR=~/home/groestlcoin-version
#253
The following were tested in Ubuntu 14.04, Ubuntu 16.04 and Ubuntu 18.04, some dependencies can be different in other distros

    • 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 curl librsvg2-bin libtiff-tools bsdmainutils cmake imagemagick libcap-dev libz-dev libbz2-dev python-setuptools
    • sudo apt-get install g++-aarch64-linux-gnu g++-4.8-aarch64-linux-gnu gcc-4.8-aarch64-linux-gnu binutils-aarch64-linux-gnu g++-arm-linux-gnueabihf g++-4.8-arm-linux-gnueabihf gcc-4.8-arm-linux-gnueabihf binutils-arm-linux-gnueabihf g++-4.8-multilib gcc-4.8-multilib binutils-gold
    • sudo apt install g++-mingw-w64-x86-64
    • sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.
    • sudo apt install g++-mingw-w64-i686 mingw-w64-i686-dev
    • sudo update-alternatives --config i686-w64-mingw32-g++  # Set the default mingw32 g++ compiler option to posix.
    • git clone https://github.com/groestlcoin/groestlcoin
    • cd groestlcoin
    • cd depends
    • make HOST=aarch64-linux-gnu
    • cd ..
    • ./autogen.sh
    • ./configure --prefix=`pwd`/depends/aarch64-linux-gnu --enable-glibc-back-compat
    • make
    • make install DESTDIR=~/home/groestlcoin-version
#254
Tutorials / How to setup C-lightning for testnet
September 11, 2018, 01:59:11 PM
The following were tested in Ubuntu 14.04 and Ubuntu 16.04, some dependencies can be different in other distros.
    • 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 -y
    • 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:
      listen=1
      server=1
      maxconnections=863
      daemon=1
      txindex=1
      blockfilterindex=1
      coinstatsindex=1
      rpcuser=yourusernamehere
      rpcpassword=yourpasswordhere
      whitelist=127.0.0.1
    • Crtl+o enter, ctrl X
    • groestlcoind -testnet
    • Let it sync (can take up to 2 hours), verify with groestlcoin-cli -testnet -getinfo
    • git clone https://github.com/Groestlcoin/lightning.git
    • cd lightning
    • ./configure
    • make
    • strip lightningd/lightningd cli/lightning-cli
    • mkdir ~/.lightning
    • nano ~/.lightning/config
    • write:
      alias=Groestlcoin_testnet
      network=testnet
      bitcoin-rpcuser=yourusernamehere
      bitcoin-rpcpassword=yourpasswordhere
      bitcoin-rpcconnect=127.0.0.1
      bitcoin-rpcport=17766
      bind-addr=
      announce-addr=YOURIPADDRESS:9735
    • Crtl+o enter, ctrl X
    • screen
    • ./lightningd/lightningd
    • Crtl+A, ctrl+D
    • check if all is ok: ./cli/lightning-cli getinfo
#255
Tutorials / How to setup C-lightning
September 11, 2018, 01:56:39 PM
The following were tested in Ubuntu 14.04 and Ubuntu 16.04, some dependencies can be different in other distros.
    • 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 -y
    • 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:
      listen=1
      server=1
      maxconnections=863
      daemon=1
      txindex=1
      blockfilterindex=1
      coinstatsindex=1
      rpcuser=yourusernamehere
      rpcpassword=yourpasswordhere
      whitelist=127.0.0.1
    • Crtl+o enter, ctrl X
    • groestlcoind
    • Let it sync (can take up to 2 hours), verify with groestlcoin-cli -getinfo
    • git clone https://github.com/Groestlcoin/lightning.git
    • cd lightning
    • ./configure
    • make
    • strip lightningd/lightningd cli/lightning-cli
    • mkdir ~/.lightning
    • nano ~/.lightning/config
    • write:
      alias=Groestlcoin
      network=groestlcoin
      bitcoin-rpcuser=yourusernamehere
      bitcoin-rpcpassword=yourpasswordhere
      bitcoin-rpcconnect=127.0.0.1
      bitcoin-rpcport=1441
      bind-addr=
      announce-addr=YOURIPADDRESS:9735
    • Crtl+o enter, ctrl X
    • screen
    • ./lightningd/lightningd
    • Crtl+A, ctrl+D
    • check if all is ok: ./cli/lightning-cli getinfo
#256
Tutorials / How to setup GRSPay for testnet
June 24, 2018, 04:53:06 PM
The following were tested in Ubuntu 14.04 and Ubuntu 16.04, some dependencies can be different in other distros.
    • 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 postgresql-contrib python python3 net-tools zlib1g-dev gettext -y
    • 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:
      listen=1
      server=1
      maxconnections=863
      daemon=1
      txindex=1
      blockfilterindex=1
      coinstatsindex=1
      rpcuser=yourusernamehere
      rpcpassword=yourpasswordhere
      whitelist=127.0.0.1
    • Crtl+o enter, ctrl X
    • groestlcoind -testnet
    • Let it sync (can take up to 2 hours), verify with groestlcoin-cli -getinfo
    • wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
    • RELEASE=$(lsb_release -cs)
    • echo "deb http://apt.postgresql.org/pub/repos/apt/ ${RELEASE}"-pgdg main | sudo tee  /etc/apt/sources.list.d/pgdg.list
    • sudo apt update
    • sudo apt -y install postgresql-14
    • sudo -u postgres psql
    • CREATE DATABASE grspay TEMPLATE 'template0' LC_CTYPE 'C' LC_COLLATE 'C' ENCODING 'UTF8';
    • CREATE USER grspay WITH ENCRYPTED PASSWORD 'yourpasswordhere';
    • GRANT ALL PRIVILEGES ON DATABASE grspay TO grspay;
    • CREATE DATABASE nbxplorer TEMPLATE 'template0' LC_CTYPE 'C' LC_COLLATE 'C' ENCODING 'UTF8';
    • CREATE USER nbxplorer WITH ENCRYPTED PASSWORD 'yourpasswordhere';
    • GRANT ALL PRIVILEGES ON DATABASE nbxplorer TO nbxplorer;
    • \q
    • wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
    • sudo dpkg -i packages-microsoft-prod.deb
    • rm packages-microsoft-prod.deb
    • sudo apt-get install apt-transport-https python3-pyasn1 -y
    • sudo apt-get update
    • sudo apt-get install dotnet-sdk-8.0 -y
    • cd\
    • git clone https://github.com/Groestlcoin/lightning.git
    • cd lightning
    • ./configure
    • make
    • strip lightningd/lightningd cli/lightning-cli
    • mkdir ~/.lightning
    • nano ~/.lightning/config
    • write:
      alias=Groestlcoin_testnet
      network=testnet
      bitcoin-rpcuser=yourusernamehere
      bitcoin-rpcpassword=yourpasswordhere
      bitcoin-rpcconnect=127.0.0.1
      bitcoin-rpcport=17766
      bind-addr=
      announce-addr=YOURIPADDRESS:9735
    • Crtl+o enter, ctrl X
    • screen -S lightning
    • ./lightningd/lightningd
    • Crtl+A, ctrl+D
    • cd\
    • git clone https://github.com/dgarage/NBXplorer
    • cd NBXplorer
    • ./build.sh
    • screen -S nbxplorer
    • ./run.sh --testnet --chains=grs --grsrpcuser yourusernamehere --grsrpcpassword yourpasswordhere --postgres="UserID=nbxplorer;Password=yourpasswordhere;Host=localhost;Port=5432;Database=nbxplorer"
    • Crtl+A, ctrl+D
    • git clone https://github.com/Groestlcoin/groestlcoin-spark
    • cd groestlcoin-spark
    • curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
    • sudo apt-get install -y nodejs
    • npm install
    • npm run dist:npm --unsafe-perm
    • screen -S Spark
    • ./dist/cli.js --cookie-file ~/groestlcoin-spark/config --ln-path ~/.lightning/testnet
    • Crtl+A, ctrl+D
    • git clone https://github.com/Groestlcoin/groestlcoin-lightning-charge
    • cd groestlcoin-lightning-charge
    • npm install
    • screen -S LightningCharge
    • npm start -- --cookie-file ~/groestlcoin-lightning-charge/config --ln-path ~/.lightning/testnet
    • Crtl+A, ctrl+D
    • git clone https://github.com/Groestlcoin/btcpayserver
    • cd btcpayserver
    • ./build.sh
    • screen -S GRSPay
    • ./run.sh --explorerpostgres="UserID=nbxplorer;Password=yourpasswordhere;Host=localhost;Port=5432;Database=nbxplorer" --postgres="UserID=grspay;Password=yourpasswordhere;Host=localhost;Port=5432;Database=grspay" --testnet --chains=grs --btclightning="type=clightning;server=unix://root/.lightning/testnet/lightning-rpc" --btcexternalspark="server=https://testnet.grspay.com/spark/grs/;cookiefile=/root/groestlcoin-spark/config" --btcexternalcharge="server=https://testnet.grspay.com/groestlcoin-lightning-charge/grs/;cookiefilepath=/root/groestlcoin-lightning-charge/config"
    • Crtl+A, ctrl+D
    • sudo apt-get install nginx
    • nano /etc/nginx/sites-available/default
    • delete all and paste:
      # If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the
      # scheme used to connect to this server
      map $http_x_forwarded_proto $proxy_x_forwarded_proto {
        default $http_x_forwarded_proto;
        ''      $scheme;
      }
      # If we receive X-Forwarded-Port, pass it through; otherwise, pass along the
      # server port the client connected to
      map $http_x_forwarded_port $proxy_x_forwarded_port {
        default $http_x_forwarded_port;
        ''      $server_port;
      }
      # If we receive Upgrade, set Connection to "upgrade"; otherwise, delete any
      # Connection header that may have been passed to this server
      map $http_upgrade $proxy_connection {
        default upgrade;
        '' close;
      }
      # Apply fix for very long server names
      server_names_hash_bucket_size 128;
      # Prevent Nginx Information Disclosure
      server_tokens off;
      # Default dhparam
      # Set appropriate X-Forwarded-Ssl header
      map $scheme $proxy_x_forwarded_ssl {
        default off;
        https on;
      }
      gzip_types text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
      log_format vhost '$host $remote_addr - $remote_user [$time_local] '
                       '"$request" $status $body_bytes_sent '
                       '"$http_referer" "$http_user_agent"';
      access_log off;
      server {

          server_name testnet.grspay.com;

          location / {
              proxy_pass http://localhost:23001;
              # HTTP 1.1 support
              proxy_http_version 1.1;
              proxy_buffering off;
              proxy_set_header Host $http_host;
              proxy_set_header Upgrade $http_upgrade;
              proxy_set_header Connection $proxy_connection;
              proxy_set_header X-Real-IP $remote_addr;
              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
              proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
              proxy_set_header X-Forwarded-Ssl $proxy_x_forwarded_ssl;
              proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;

          }

          location /spark/grs/ {
              proxy_pass http://localhost:9737/;
          }

          location /groestlcoin-lightning-charge/grs/ {
              proxy_pass http://localhost:9112/;
          }

      }
      # Mitigate httpoxy attack (see README for details)
      proxy_set_header Proxy "";
      server {
              server_name _; # This is just an invalid value which will never trigger on a real hostname.
              listen 80;
              access_log /var/log/nginx/access.log vhost;
              return 503;
      }
    • service nginx restart
    • sudo add-apt-repository ppa:certbot/certbot
    • sudo apt-get update
    • sudo apt-get install python-certbot-nginx
    • sudo certbot --nginx -d testnet.grspay.com
    • crontab -e
    • Add end of file:
      15 3 * * * /usr/bin/certbot renew --quiet
    • Crtl+o enter, ctrl X
#257
Tutorials / How to setup GRSPay
June 24, 2018, 04:50:54 PM
The following were tested in Ubuntu 14.04 and Ubuntu 16.04, some dependencies can be different in other distros.
    • 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 postgresql-contrib python python3 net-tools zlib1g-dev gettext -y
    • 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:
      listen=1
      server=1
      maxconnections=865
      daemon=1
      txindex=1
      blockfilterindex=1
      coinstatsindex=1
      rpcuser=yourusernamehere
      rpcpassword=yourpasswordhere
      whitelist=127.0.0.1
    • Crtl+o enter, ctrl X
    • groestlcoind
    • Let it sync (can take up to 2 hours), verify with groestlcoin-cli -getinfo
    • wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
    • RELEASE=$(lsb_release -cs)
    • echo "deb http://apt.postgresql.org/pub/repos/apt/ ${RELEASE}"-pgdg main | sudo tee  /etc/apt/sources.list.d/pgdg.list
    • sudo apt update
    • sudo apt -y install postgresql-14
    • sudo -u postgres psql
    • CREATE DATABASE grspay TEMPLATE 'template0' LC_CTYPE 'C' LC_COLLATE 'C' ENCODING 'UTF8';
    • CREATE USER grspay WITH ENCRYPTED PASSWORD 'yourpasswordhere';
    • GRANT ALL PRIVILEGES ON DATABASE grspay TO grspay;
    • CREATE DATABASE nbxplorer TEMPLATE 'template0' LC_CTYPE 'C' LC_COLLATE 'C' ENCODING 'UTF8';
    • CREATE USER nbxplorer WITH ENCRYPTED PASSWORD 'yourpasswordhere';
    • GRANT ALL PRIVILEGES ON DATABASE nbxplorer TO nbxplorer;
    • \q
    • wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
    • sudo dpkg -i packages-microsoft-prod.deb
    • rm packages-microsoft-prod.deb
    • sudo apt-get install apt-transport-https python3-pyasn1 -y
    • sudo apt-get update
    • sudo apt-get install dotnet-sdk-8.0 -y
    • cd\
    • git clone https://github.com/Groestlcoin/lightning.git
    • cd lightning
    • ./configure
    • make
    • strip lightningd/lightningd cli/lightning-cli
    • mkdir ~/.lightning
    • nano ~/.lightning/config
    • write:
      alias=Groestlcoin
      network=groestlcoin
      bitcoin-rpcuser=yourusernamehere
      bitcoin-rpcpassword=yourpasswordhere
      bitcoin-rpcconnect=127.0.0.1
      bitcoin-rpcport=1441
      bind-addr=
      announce-addr=YOURIPADDRESS:9735
    • Crtl+o enter, ctrl X
    • screen -S lightning
    • ./lightningd/lightningd
    • Crtl+A, ctrl+D
    • cd\
    • git clone https://github.com/dgarage/NBXplorer
    • cd NBXplorer
    • ./build.sh
    • screen -S nbxplorer
    • ./run.sh --chains=grs --grsrpcuser yourusernamehere --grsrpcpassword yourpasswordhere --postgres="UserID=nbxplorer;Password=yourpasswordhere;Host=localhost;Port=5432;Database=nbxplorer"
    • Crtl+A, ctrl+D
    • git clone https://github.com/Groestlcoin/groestlcoin-spark
    • cd groestlcoin-spark
    • curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
    • sudo apt-get install -y nodejs
    • npm install
    • npm run dist:npm --unsafe-perm
    • screen -S Spark
    • ./dist/cli.js --cookie-file ~/groestlcoin-spark/config --ln-path ~/.lightning/groestlcoin
    • Crtl+A, ctrl+D
    • git clone https://github.com/Groestlcoin/groestlcoin-lightning-charge
    • cd groestlcoin-lightning-charge
    • npm install
    • screen -S LightningCharge
    • npm start -- --cookie-file ~/groestlcoin-lightning-charge/config --ln-path ~/.lightning/groestlcoin
    • Crtl+A, ctrl+D
    • git clone https://github.com/Groestlcoin/btcpayserver
    • cd btcpayserver
    • ./build.sh
    • screen -S GRSPay
    • ./run.sh --explorerpostgres="UserID=nbxplorer;Password=yourpasswordhere;Host=localhost;Port=5432;Database=nbxplorer" --postgres="UserID=grspay;Password=yourpasswordhere;Host=localhost;Port=5432;Database=grspay" --chains=grs --btclightning="type=clightning;server=unix://root/.lightning/lightning-rpc" --btcexternalspark="server=https://grspay.com/spark/grs/;cookiefile=/root/groestlcoin-spark/config" --btcexternalcharge="server=https://grspay.com/groestlcoin-lightning-charge/grs/;cookiefilepath=/root/groestlcoin-lightning-charge/config"
    • Crtl+A, ctrl+D
    • sudo apt-get install nginx
    • nano /etc/nginx/sites-available/default
    • delete all and paste:
      # If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the
      # scheme used to connect to this server
      map $http_x_forwarded_proto $proxy_x_forwarded_proto {
        default $http_x_forwarded_proto;
        ''      $scheme;
      }
      # If we receive X-Forwarded-Port, pass it through; otherwise, pass along the
      # server port the client connected to
      map $http_x_forwarded_port $proxy_x_forwarded_port {
        default $http_x_forwarded_port;
        ''      $server_port;
      }
      # If we receive Upgrade, set Connection to "upgrade"; otherwise, delete any
      # Connection header that may have been passed to this server
      map $http_upgrade $proxy_connection {
        default upgrade;
        '' close;
      }
      # Apply fix for very long server names
      server_names_hash_bucket_size 128;
      # Prevent Nginx Information Disclosure
      server_tokens off;
      # Default dhparam
      # Set appropriate X-Forwarded-Ssl header
      map $scheme $proxy_x_forwarded_ssl {
        default off;
        https on;
      }
      gzip_types text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
      log_format vhost '$host $remote_addr - $remote_user [$time_local] '
                       '"$request" $status $body_bytes_sent '
                       '"$http_referer" "$http_user_agent"';
      access_log off;
      server {

          server_name grspay.com;

          location / {
              proxy_pass http://localhost:23000;
              # HTTP 1.1 support
              proxy_http_version 1.1;
              proxy_buffering off;
              proxy_set_header Host $http_host;
              proxy_set_header Upgrade $http_upgrade;
              proxy_set_header Connection $proxy_connection;
              proxy_set_header X-Real-IP $remote_addr;
              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
              proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
              proxy_set_header X-Forwarded-Ssl $proxy_x_forwarded_ssl;
              proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;

          }

          location /spark/grs/ {
              proxy_pass http://localhost:9737/;
          }

          location /groestlcoin-lightning-charge/grs/ {
              proxy_pass http://localhost:9112/;
          }
      }
      # Mitigate httpoxy attack (see README for details)
      proxy_set_header Proxy "";
      server {
              server_name _; # This is just an invalid value which will never trigger on a real hostname.
              listen 80;
              access_log /var/log/nginx/access.log vhost;
              return 503;
      }
    • service nginx restart
    • sudo add-apt-repository ppa:certbot/certbot
    • sudo apt-get update
    • sudo apt-get install python-certbot-nginx
    • sudo certbot --nginx -d grspay.com
    • crontab -e
    • Add end of file:
      15 3 * * * /usr/bin/certbot renew --quiet
    • Crtl+o enter, ctrl X
#258
Tutorials / How to setup jswallet server
January 17, 2018, 09:49:28 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 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:
      listen=1
      server=1
      maxconnections=865
      daemon=1
      txindex=1
      blockfilterindex=1
      coinstatsindex=1
      rpcuser=rpcuserhere
      rpcpassword=rpcpasswordhere
    • Crtl+o enter, ctrl X
    • groestlcoind
    • 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/grs-rush-wallet
    • cd grs-rush-wallet
    • npm install --unsafe-perm
    • nano /etc/nginx/sites-available/default
    • delete all and paste:
      server {
          listen 80;

          server_name jswallet.groestlcoin.org;

          location / {
              proxy_pass http://localhost:4431;
              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;
          }
      }
    • sudo apt-get install software-properties-common
    • sudo add-apt-repository ppa:certbot/certbot
    • sudo apt-get update
    • sudo apt-get install certbot python-certbot-nginx -y
    • certbot --nginx -d rpcexplorer.groestlcoin.org
    • crontab -e
    • Add end of file:
      15 3 * * * /usr/bin/certbot renew --quiet
    • Crtl+o enter, ctrl X
    • service nginx restart
    • screen
    • node run groestlwallet.js
    • Crtl+A, ctrl+D
#259
The following were tested in 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
    • nano /etc/tor/torrc
    • Add this line on any line:
      HiddenServiceDir /var/lib/tor/electrumx-grs
      HiddenServicePort 50001 127.0.0.1:50001
      HiddenServicePort 50002 127.0.0.1:50002
      HiddenServicePort 1331 127.0.0.1:1331
    • Crtl+o enter, ctrl X
    • sudo /etc/init.d/tor restart
    • cat /var/lib/tor/electrumx-grs/hostname
    • write down your tor onion address
    • 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:
      listen=1
      server=1
      maxconnections=863
      daemon=1
      txindex=1
      blockfilterindex=1
      coinstatsindex=1
      rpcuser=yourusernamehere
      rpcpassword=yourpasswordhere
    • Crtl+o enter, ctrl X
    • groestlcoind
    • Let it sync (can take up to 1 hour), verify with groestlcoin-cli getinfo
    • cd ~
    • git clone https://github.com/Groestlcoin/electrumx-grs-installer.git
    • cd electrumx-grs-installer
    • sudo -H ./install.sh
    • nano /etc/electrumx.conf
    • Add these:
      COIN = Groestlcoin
      SERVICES=tcp://:51001,ssl://:51002,wss://:51004
      REPORT_SERVICES=tcp://yourhost:51001,ssl://YourHost:51002,tcp://youronionaddress.onion:50001
    • Crtl+o enter, ctrl X
    • service electrumx-grs start
    • sudo usermod -a -G debian-tor root
    • add your server on https://1209k.com/bitcoin-eye/ele.php?chain=grs

    check logs with: journalctl -u electrumx-grs -f
#260
Project Development / Groestlcoin Units
January 16, 2018, 03:19:54 PM
mega-groestlcoin                        MGRS          1000000,00000000
kilo-groestlcoin                           kGRS           1000,00000000     
hecto-groestlcoin                        hGRS           100,00000000
deca-groestlcoin                         daGRS         10,00000000
groestlcoin                                 GRS             1,00000000
deci-groestlcoin                          dGRS           0,10000000
centi-groestlcoin                         cGRS           0,01000000
milli-groestlcoin                          mGRS          0,00100000
micro-groestlcoin or groestls        μGRS           0,00000100
GRO                                          GRO             0,00000001
mGRO                                       mGRO          0,00000000001