Bitcoin Forum
November 09, 2024, 05:00:37 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Tutorial] Install a Block Explorer [iquidus] on Ubuntu Server 18.04  (Read 367 times)
redWAY (OP)
Jr. Member
*
Offline Offline

Activity: 57
Merit: 22

eTitanium [ETIT] www.etitanium.net


View Profile WWW
July 16, 2021, 03:13:51 PM
Last edit: July 16, 2021, 06:35:41 PM by redWAY
Merited by LeGaulois (2)
 #1

Install a block explorer on Ubuntu Server 18.04
we assume that you have already installed and started bitcoin daemon, configured bitcoin.conf already and know the rpc data.
(or other altcoin forks of bitcoin)
Source code: https://github.com/iquidus/explorer

Update your Ubuntu server with the following command:
Code:
sudo apt-get update && sudo apt-get upgrade -y

Install the required dependencies with the following command:
Code:
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libboost-all-dev libboost-program-options-dev -y

Install the additional dependencies with the following command:

Code:
sudo apt-get install libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler unzip software-properties-common libkrb5-dev mongodb nodejs npm git nano cmake screen -y
Install Berkeley DB with the following command:
Code:
sudo apt-get update && sudo apt-get install libdb4.8-dev libdb4.8++-dev -y
Type the following command to open MongoDB:
Code:
mongo
Type the following command to create a MongoDB database named “explorerdb”:
Code:
use explorerdb

Type the following command to create a MongoDB user named “iquidus”:
Code:
db.createUser( { user: "iquidus", pwd: "[b]custompassword[/b]", roles: [ "readWrite" ] } )

Type the following command to close MongoDB:
Code:
exit

Type the following command to clone iquidus-explorer:
Code:
git clone https://github.com/iquidus/explorer explorer

Type the following command to install iquidus-explorer:
Code:
cd explorer && npm install --production

Type the following command to create the file settings.json:
Code:
cp ./settings.json.template ./settings.json

Open nano.
Code:
nano settings.json -t

Modify the following values in the file settings.json

title - “IQUIDUS” -> “changeme”.

address - Change the value “127.0.0.1” with the IPv4 address of your server.

coin - “Darkcoin” -> “changeme”.

symbol - “DRK” -> “changeme”.

password - “3xp!0reR” -> “custompassword”.

port - “9332” -> “changeme”.

user - “darkcoinrpc” -> “changeme”.

pass - 123gfjk3R3pCCVjHtbRde2s5kzdf233sa” -> “changeme”.

confirmations - “40” -> “changeme”.


Save the file with the keyboard shortcut ctrl + x.

Type the following command to open a screen session:
Code:
screen
Type the following commands to start your block explorer:
Code:
cd $HOME/explorer
npm start

Press the keyboard shortcut ctrl + a + d to disconnect from your screen session.

Type the following command to open crontab:

Code:
crontab -e

Press the Page Down key on your keyboard PgDown.

Paste the following text into crontab.
Code:
@reboot bitcoind
*/1 * * * * cd /root/explorer && /usr/bin/nodejs scripts/sync.js index update > /dev/null 2>&1
*/5 * * * * cd /root/explorer && /usr/bin/nodejs scripts/peers.js > /dev/null 2>&1

Save the crontab with the keyboard shortcut ctrl + x

Confirm that you want to save the crontab with the keyboard shortcut y + enter

eTitanium [ETIT] Blockchain Cryptocurrency
www.etitanium.net
Lafu
Legendary
*
Offline Offline

Activity: 3150
Merit: 3226



View Profile
July 16, 2021, 04:29:48 PM
 #2

There are already so much Guides and Tutorials about to setting up an Block Explorer from iquidus on the internet.
So i advice you to write the source links into your thread and post where you got them , at least the Github Source Link from iquidus .
Source Code and Link for iquidus Explorer :  https://github.com/iquidus/explorer

You should be doing it as soon as possible , if you not doing it , its possible that someone report your post about plagiarism as it is against the Forum Rules.

redWAY (OP)
Jr. Member
*
Offline Offline

Activity: 57
Merit: 22

eTitanium [ETIT] www.etitanium.net


View Profile WWW
July 16, 2021, 06:38:55 PM
 #3

I forgot to add the source code url. have added it now. it is opensource what kind of plagiarism are you talking about?

eTitanium [ETIT] Blockchain Cryptocurrency
www.etitanium.net
JeromeTash
Legendary
*
Offline Offline

Activity: 2324
Merit: 1260


Heisenberg


View Profile
July 16, 2021, 08:26:36 PM
Merited by vapourminer (1)
 #4

I forgot to add the source code url. have added it now. it is opensource what kind of plagiarism are you talking about?
He was talking about plagiarism of articles or guides online, minus citing the link to the source of the information you posted. The moderators don't care if the project is open source or not. If you are going to copy information from somewhere and post it here, you should include the source link in your post. Failure to do that may lead to a permanent ban on your account for a plagiarism offense.

█████████████████████████
██
█████▀▀███████▀▀███████
█████▀░░▄███████▄░░▀█████
██▀░░██████▀░▀████░░▀██
██▀░░▀▀▀████████████░░▀██
██░░█▄████▀▀███▀█████░░██
██░░███▄▄███████▀▀███░░██
██░░█████████████████░░██
██▄░░████▄▄██████▄▄█░░▄██
██▄░░██████▄░░████░░▄██
█████▄░░▀███▌░░▐▀░░▄█████
███████▄▄███████▄▄███████
█████████████████████████
.
.ROOBET 2.0..██████.IIIIIFASTER & SLEEKER.██████.
|

█▄█
▀█▀
████▄▄██████▄▄████
█▄███▀█░░█████░░█▀███▄█
▀█▄▄░▐█████████▌▄▄█▀
██▄▄█████████▄▄████▌
██████▄▄████████
█▀▀████████████████
██████
█████████████
██
█▀▀██████████████
▀▀▀███████████▀▀▀▀
|.
    PLAY NOW    
deusopus
Jr. Member
*
Offline Offline

Activity: 57
Merit: 1


View Profile WWW
July 15, 2022, 07:18:49 AM
Last edit: July 15, 2022, 09:08:17 AM by deusopus
 #5

okay i went through the checklist now how do i bring the actual block explorer up in my browser?
ABCbits
Legendary
*
Offline Offline

Activity: 3052
Merit: 8073


Crypto Swap Exchange


View Profile
July 15, 2022, 11:15:47 AM
Merited by Lafu (1)
 #6

okay i went through the checklist now how do i bring the actual block explorer up in my browser?

With default settings.json file[1], you should able to do it by entering localhost:3001 on your browser.

[1] https://github.com/iquidus/explorer/blob/master/settings.json.template#L35

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Lafu
Legendary
*
Offline Offline

Activity: 3150
Merit: 3226



View Profile
July 15, 2022, 06:24:18 PM
 #7

okay i went through the checklist now how do i bring the actual block explorer up in my browser?
Depends where you have installed the files and running the Block Explorer.
If you have set it up on your PC or on an raspberry pi at home you can get there as mentioned from ETFbitcoin .
If you have installed it on a VPS and Server Provider and the setup is done right you just have to insert the IP from your VPS in your browser or the domain if you have one.

deusopus
Jr. Member
*
Offline Offline

Activity: 57
Merit: 1


View Profile WWW
July 16, 2022, 11:54:09 PM
Last edit: July 17, 2022, 02:15:50 PM by deusopus
 #8

okay i went through the checklist now how do i bring the actual block explorer up in my browser?
Depends where you have installed the files and running the Block Explorer.
If you have set it up on your PC or on an raspberry pi at home you can get there as mentioned from ETFbitcoin .
If you have installed it on a VPS and Server Provider and the setup is done right you just have to insert the IP from your VPS in your browser or the domain if you have one.

i have the block explore installed on digital ocean at xxx.xxx.xxx.xxx

our wallet is running on digital ocean as well at xxx.xxx.xxx.xxx

our default rpc port is 7143

deusopus
Jr. Member
*
Offline Offline

Activity: 57
Merit: 1


View Profile WWW
July 18, 2022, 03:55:35 AM
Last edit: July 18, 2022, 09:16:54 AM by deusopus
 #9

--snip--
i have the block explore installed on digital ocean at [IPv4]

our wallet is running on digital ocean as well at [IPv4]

our default rpc port is 7143

I doubt it's good idea to share your public IP like that, but what you should enter is IPv4 of VPS which contain block explorer. The port i'm talking about is port under comment "// port to listen for requests on." which should have 3001 as default value, not RPC Port.

i changed it back to 3001 but still not working


should the "instance" address https://github.com/iquidus/explorer/blob/master/settings.json.template#L10

and the "database" address be the same? https://github.com/iquidus/explorer/blob/master/settings.json.template#L37-L44

im assuming the instance address is the ip of the server where i have the block explorer installed right?

also

how is this port number derived? https://github.com/iquidus/explorer/blob/master/settings.json.template#L43

deusopus
Jr. Member
*
Offline Offline

Activity: 57
Merit: 1


View Profile WWW
July 18, 2022, 09:27:37 AM
 #10

--snip--

i changed it back to 3001 but still not working

That's weird, you typed [IPv4]:3001 on your browser right? Does npm show any error or warning message when you start the server?

no error messages. its not immediately spitting out any feedback though either as it did on default. that has me concerned.

maybe im not running all the necessary flags on the wallet?
Lafu
Legendary
*
Offline Offline

Activity: 3150
Merit: 3226



View Profile
July 18, 2022, 11:14:40 AM
 #11

maybe im not running all the necessary flags on the wallet?
Looks like there is not all started or the setup was wrong done.
If all would be right installed and started you should be at least see the Iquidus Explorer Page when you typing the IP from your VPS into the Browser.
Maybe this Video here will be helping you to set it up right and get it working https://www.youtube.com/watch?v=laeV2slJgc8

Code:
--Block explorer pastes

sudo apt-get update
sudo apt install nodejs-legacy
sudo apt-get install npm
sudo apt-get install

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list

sudo apt-get update
sudo apt-get install -y mongodb-org
sudo systemctl start mongod

Start mongodb cli:
mongo
use explorerdb
db.createUser( { user: "iquidus", pwd: "3xp!0reR", roles: [ "readWrite" ] } )
exit

git clone https://github.com/iquidus/explorer explorer
cd explorer && npm install --production
cp ./settings.json.template ./settings.json

To use forever to start (run in directory of explorer):
forever start -c "npm start" ./

crontab information:
*/1 * * * * cd explorer && /usr/bin/nodejs scripts/sync.js index update > /dev/null 2>&1
*/5 * * * * cd explorer && /usr/bin/nodejs scripts/peers.js > /dev/null 2>&1
Source : https://pastebin.com/SEYVXH2C

Hope this helps you to solve your problem and issue and that you get it working.
If i can ask , for what coin is the Explorer ?

deusopus
Jr. Member
*
Offline Offline

Activity: 57
Merit: 1


View Profile WWW
July 20, 2022, 09:18:30 AM
Last edit: July 20, 2022, 10:35:08 AM by deusopus
 #12

Quote
If i can ask , for what coin is the Explorer ?

thanks for asking. our coin is called "Cannacoin" https://bitcointalk.org/index.php?topic=740903.0

i installed using OPs installation guide. Is it not accurate?

should i start over and follow that pastebin? it looks different that OPs guide.
deusopus
Jr. Member
*
Offline Offline

Activity: 57
Merit: 1


View Profile WWW
July 20, 2022, 10:51:44 AM
 #13

i think im gonna start over with eliquidus https://bitcointalk.org/index.php?topic=5315070.0
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!