How to add own ipfs node to your Cyb

in #web36 years ago (edited)

by @savetheales

← Previous post
Next post →

ToC:
1. How to open IPFS link using Cyb
2. How to add own IPFS node to your Cyb
3. How to add own ETH node to your Cyb
4. How to import ETH wallet from Metamask to Cyb

Hey everyone! Today we'll make the glorious step into adulthood! The greatest level of Cyb using is when you have 3 greenlights on the right side of footer ;)

1.png

Cyb uses color indication to show your connection status. Green indicator means that you have connection to local node, yellow one is for remote node and red one is for no connection at all.

So today we intend to add local IPFS node to our Cyb.

IPFS installing

First of all we need to install and initiate IPFS node. If you've already did it, you can skip this section.

The easiest way to install IPFS is homebrew. All you need is just to run in your terminal

brew install ipfs,

then run

ipfs init commands

and finally
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'

ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["GET", "POST"]'

ipfs config --json API.HTTPHeaders.Access-Control-Allow-Headers '["Authorization"]'

ipfs config --json API.HTTPHeaders.Access-Control-Expose-Headers '["Location"]'

ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'

Other methods you can explore here, but I recommend you homebrew :)

Just for test you can write

ipfs cat /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme

and if you see following text, everything is alright. ;)

2.png

Start IPFS daemon

So it's time to go online now. Write in your terminal

brew services start ipfs

wait a few seconds. Now run

brew services list

if you see

ipfs started %username% /Users/%username% /Library/LaunchAgents/homebrew.mxcl.ipfs.plist

you have launched ipfs daemon:)

The last step is adding local IPFS node to Cyb.

Download latest release according to your platform.

Type in search field settings.cyb and press Enter. You should see something like this:
4.png

settings.cyb means that you open settings page in .сyb app (same as Qm.....Dvd.ipfs command opens ipfs hash in app .ipfs.

Here you can see addresses of your connections. Default connection type is for our cybernodes. So let's change it!. Put this http://127.0.0.1:8080 in IPFS connection filed and click on update button. If everything is correct you should see:

5.png

Awesome!!! Now you can use your local IPFS node in Cyb!
Welcome to your adult life!

In the next post we will learn how to import Metamask account in Cyb;)

Subscribe at Steemit, Reddit, Twitter, Telegram channel and join to our community in @fuckgoogle.

← Previous post
Next post →


content hash is signed-from at the Nov-30-2018 12:08:29 PM +UTC