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 setup a Electrum-GRS server

Started by jackielove4u, April 09, 2015, 04:11:45 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
    • 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=863
      daemon=1
      txindex=1
      blockfilterindex=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/electrum-grs-server.git
    • cd electrum-grs-server
    • sudo ./configure
    • choose default
    • choose default
    • write the rpcuser as chosen in groestlcoin.conf
    • write the rpcpassword as chosen in groestlcoin.conf
    • sudo apt-get install python-setuptools python-openssl python-leveldb libleveldb-dev python-pip -y
    • pip install --upgrade six>=1.70
    • sudo easy_install jsonrpclib irc plyvel
    • sudo python setup.py install
    • openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
    • openssl rsa -passin pass:x -in server.pass.key -out server.key
    • rm server.pass.key
    • openssl req -new -key server.key -out server.csr
    • supply ANY information for your sign request to identify your server. They are not currently checked by the client except for the validity date. When asked for a challenge password just leave it empty and press enter.
    • openssl x509 -req -days 1825 -in server.csr -signkey server.key -out server.crt
    • cp server.key server.crt /var/electrum-grs-server
    • sudo nano /etc/electrum-grs.conf
    • change host = localhost to server ipaddress or dnsaddress
    • uncomment #irc= no and change to yes
    • uncomment #irc_nick and chose your ircname
    • uncomment #stratum_tcp_ssl_port
    • uncomment #ssl_certfile
    • uncomment #ssl_keyfile
    • Crtl+o enter, ctrl X
    • screen
    • sudo su electrum-grs -c "./run_electrum_grs_server.py"
    • add your server on https://1209k.com/bitcoin-eye/ele.php?chain=grs