Skip to content

Latest commit

 

History

History
104 lines (64 loc) · 2.04 KB

EASYINSTALLGUIDE.md

File metadata and controls

104 lines (64 loc) · 2.04 KB

Easy Guide "How to Install ABE For BGC"

  1. install Req. programs

  1. MysqlDB

    sudo apt-get install mysql-client mysql-server python-mysqldb python-crypto

  2. PostgreSQLDB

    sudo apt-get install python2.7 python-crypto postgresql-8.4 python-psycopg2

  1. Create Database

  1. Mysql

    mysql -u root -p create database abe; CREATE USER '%USERNAME%'@'localhost' IDENTIFIED BY '%PASSWORD%'; grant all on abe.* to %USERNAME%; quit

  2. PostgreSQL

    sudo -u postgres createdb abe sudo -u postgres createuser %USERNAME%

Add the following line to /etc/postgresql/*/main/pg_hba.conf:

local abe %USERNAME% ident

Issue:

sudo service postgresql reload
  1. Install Scrypt Crypto Module

sudo apt-get install python-all-dev
cd litecoin_scrypt
sudo python setup.py install
  1. Modify some field in abe-bgc.conf

  1. MYSQL DB

    dbtype MySQLdb connect-args {"user":"%USERNAME%","db":"abe","passwd":"%PASSWORD%"}

(Change to YOUR DB ACCOUNT)

  1. PostgreSQL DB

    dbtype psycopg2 connect-args {"database":"abe"}

  2. Common

    default-loader = blkfile upgrade port 12345 host 127.0.0.1 datadir = /home/%USERNAME%/.bitgoldcoin

  1. Install & Run

sudo python setup.py install
python -m Abe.abe --config abe-bgc.conf --commit-bytes 100000 --no-serve 
python -m Abe.abe --config abe-bgc.conf
  1. Connect from Your Internet Browser

To "http://localhost:12345"

  1. Service With Nginx Proxy.

  1. "apt-get install nginx" or "pkg_add -r nginx"

  2. All you need in nginx.conf, if running on localhost, is:

     server {
     listen  80;
     server_name some.domain.org;
     
     location / {
         proxy_pass  http://127.0.0.1:8081; 
         }
         }
    
  3. Enjoy your Life!!!