Download Blockpool Commander
https://github.com/blockpool-io/BPL-node/blob/bpl-mainnet/BPL_Node_Install_Script.sh
Open up your terminal and type
./BPL_Node_Install_Script.sh
Let the script finish.
# Change the following in config.mainnet.json:
“address“: “set your IP”
“database”: “set database name”
“user”: “set database user”
“password”: “set database password”
“list”: [
{
“ip”: “set your IP address”
“port”: “set the port on which your node will be running”
},
{
“ip”: “Set seed node IP address”
“port”: “set the port on which seed node will be running”
}
]
forever start app.js -c config.mainnet.json -g genesisBlock.mainnet.json
forever start app.js -c config.testnet.json -g genesisBlock.testnet.json
sudo apt-get update
sudo apt-get install -y curl build-essential python git
sudo apt-get install -y nodejs
sudo apt-get install -y npm
sudo npm install -g n
sudo n 6.9.2
sudo npm install grunt-cli -g
sudo apt-get install -y postgresql postgresql-contrib
sudo -u postgres createuser -P --createdb $USER
createdb ‘Database Name’ (this should match with the database name from config file)
git clone https://github.com/blockpool-io/BPL-node.git (make sure you have git installed)
cd BPL-node
git checkout bpl-mainnet
sudo apt-get install -y libpq-dev
npm install libpq secp256k1
npm install
npm install forever -g
# Change the following in config.mainnet.json:
“address“: “set your IP”
“database”: “set database name”
“user”: “set database user”
“password”: “set database password”
“list”: [
{
“ip”: “set your IP address”
“port”: “set the port on which your node will be running”
},
{
“ip”: “Set seed node IP address”
“port”: “set the port on which seed node will be running”
}
]
forever start app.js -c config.mainnet.json -g genesisBlock.mainnet.json
forever start app.js -c config.testnet.json -g genesisBlock.testnet.json
- Python (min version 2.7)
- Visual Studio c++ 2010 express
- Node.js (min version 6.9.2)
- PostgreSQL (min version 5.5.2)
PATH as C:\Program Files\PostgreSQL\9.5\bin
(Windows Start -> Right click on Computer → Advanced System settings → Environment variables)
Modify the file ‘pg_hba’, present at the location C:\Program Files\PostgreSQL\9.5\data\pg_hba
Replace ‘md5’ with ‘trust’ under ‘METHOD’ column
My Computer → Manage → Services and Application → Services → Restart postgres service
Alter postgres user:
psql -U postgres
alter user postgres with password 'User Password'
Create database:
Create database ‘Database Name’ Name’ (this should match with the database name from config file)
git clone https://github.com/blockpool-io/BPL-node.git (make sure you have git installed)
cd BPL-node
git checkout bpl-mainnet
npm install --global --production windows-build-tools
npm install libpq secp256k1
npm install
# Change the following in config.mainnet.json:
“address“: “set your IP”
“database”: “set database name”
“user”: “set database user”
“password”: “set database password”
“list”: [
{
“ip”: “set your IP address”
“port”: “set the port on which your node will be running”
},
// For 5 Windows nodes, seed IP is already configured in the shared 5 files so no need of adding this entry
{
“ip”: “Set seed node IP address”
“port”: “set the port on which seed node will be running”
}
]
npm run start:bplmainnet
npm run start:bpltestnet
sudo apt-get update
sudo apt-get install -y curl build-essential python git
sudo apt-get install -y nodejs
sudo apt-get intsall -y npm
sudo npm install -g n
sudo n 6.9.2
sudo npm install grunt-cli -g
Since Debian 8.8/8.8 installs psql 9.4.12 , we will need to add the repository manually to install psql 9.5
wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update
sudo apt-get install -y postgresql-9.5
sudo -u postgres createuser –createdb $USER
createdb ‘Database Name’ (this should match with the database name from config file)
If git is not found, following adds the repository manually:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E1DD270288B4E6030699E45FA1715D88E1DF1F24
sudo su -c "echo 'deb http://ppa.launchpad.net/git-core/ppa/ubuntu trusty main' > /etc/apt/sources.list.d/git.list"
sudo apt-get -y update
sudo apt-get install -y git
git clone https://github.com/blockpool-io/BPL-node.git (make sure you have git installed)
cd BPL-node
git checkout mainnet
sudo apt-get install libpq-dev
npm install libpq secp256k1
npm install
# Change the following in config.mainnet.json:
“address“: “set your IP”
“database”: “set database name”
“user”: “set database user”
“password”: “set database password”
“list”: [
{
“ip”: “set your IP address”
“port”: “set the port on which your node will be running”
},
{
“ip”: “Set seed node IP address”
“port”: “set the port on which seed node will be running”
}
]
npm run start:bplmainnet
npm run start:bpltestnet