SETTING UP YOUR SPKNETWORK NODE FOR DUMMIES

in #hive-1679223 years ago

So this is a follow-up post to my previous article, Trying To Run a Spknetwork Node. It took about 12 hours to figure things out (because I am not so tech-savvy and I did not receive the feedback I wanted). Running a spknetwork is straightforward–sort of, however, the tutorial available is not as comprehensive as I would have loved. If you followed Diresgard word for word, you might encounter a few problems.
Before I go into this, I will highlight some of the basic things you need to run a spknetwork node.

  • A Virtual Server.
  • A domain name
  • 100 HP
  • Your hive active Key
  • An active key pairing

I will be referring to the video tutorial by @disregardfiat to clarify a few grey areas in the video. I will recommend you watch the video while reading this post to set up your node.

No one said it would be easy

Step 1: Purchase your virtual server on Privex

  • Visit Privex.
  • Select ‘virtual sever’,
  • Select 'Netherland'
  • Choose the $5 monthly plan with 25GB SSD storage

VIDEO 3:14 - 4:15

While filling out your purchase form on Privex you will be required to generate a SHH KEY. Load your terminal and type ssh keygen. On windows, you will be required to create a new passcode for the shh keys. Afterwards, a folder will be created on your computer containing your private and public shh keys. Open the public key file, copy the key and paste it into the SSH KEYS section of the Privex form. OR You can follow Disregard’s steps if you don’t find it confusing

Afterwards, proceed to make payment in Hive/HBD.

On your payment receipt, you will find important details like your IPv4 address which you will use to point your domain name to your server. This took me hours to figure out as I was using Disregard's IP address and domain name which resulted in a DNS problem.

PURCHASING A DOMAIN NAME

Visit NameCheap to purchase a domain name. It cost me about $2. When you are done with your purchase, follow the following steps:

  • Visit your dashboard (your will find your domain name)
  • Beside your domain name is an option tagged ‘manage’, click on it
  • On the next page click ‘advance DNS'
  • Add a new record.
    Type: Type A
    Host: @
    Value: Your IPv4 address from your Privex Receipt

GENERATE AN ACTIVE KEY PAIR

Head over to HiveTask to create an account and generate keys. You should have something like this:

IMG_20220325_202636.jpg

If you have gotten this far, everything should be straightforward from this point. All You need do is watch the video tutorial by disregardfiat and input those lines of code. I will address some grey areas in the video that might confuse people like myself

VIDEO 12:00 - 12:23

Load your terminal and input the following code: ssh -i ['Your SSH KEY FILE NAME’] ubuntu@[Your IPv4 Address]

It should look something like this: ssh -i “MyKey” ubuntu@120.23.34.0

Follow the instruction and you will have access to your server.

After connecting to your server follow the instructions here https://github.com/disregardfiat/honeycomb/blob/master/docs/SETUP.md

VIDEO 32:00 CREATE AN ENV FILE

Disregard did this later in the video but i think you should do this first before creating dependencies. I had a few problems with this so I will like to address it here in case other people experience the same. So this is the data you need to input:

account="hiveaccount" active=5JactivePrivateKey msowner=5KadditionalPrivateKey mspublic=STMpublickey
Account refers to your hive account;
Active refers to your hive active key;
Msowner and mspublic are the private and public keys you created on HiveTask.

Example:

account="nonsowrites" active=5JwgVA4pcPpRqBZM7Za83HrMzc7ifn1UUU4Q6iF2DiRRjhzz4oZ msowner=5KCWayqquGqAnUieYsPUJitxsWYTpdRBrhY6QcxtmfNB9NNruoE mspublic=STM6z1btmFbdHoD9neSeXEH9tiqTmoDrb5iA8GxwU7k3ant5pV8uP

For some awkward reason, I spent a lot of time figuring this out.

VIDEO 25:00 - 32:00

Disregard tries to get his DNS set. This might confuse some people. Here he simply opened up another terminal and loaded his server ssh -i [Your SSH KEY FILE NAME’] ubuntu[Your IPv4 Address]. He followed up by installing dependencies by input this in his terminal sudo apt install nginx certbot python3-certbot-nginx

He took a detour to create a domain name to which he pointed his IP (you can find this in your Privex receipt)…You can watch how to do this here on Youtube.

After setting his domain name, he imputed the following: sudo nano /etc/nginx/sites-available/default. A new page pops up where he inputs the following:

server{
server_name location.yourdomain.io;

    location / {
            proxy_pass http://127.0.0.1:3001;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection 'upgrade';
            proxy_set_header Host $host;
    }

}

My domain name is spktoken.xyz, so this is what mine looks like;

server{
server_name location.spktoke.xyz;

    location / {
            proxy_pass http://127.0.0.1:3001;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection 'upgrade';
            proxy_set_header Host $host;
    }

}

Every other thing is straightforward at this point. I have not experienced any difficulty running the spknetwork node. It doesn't demand a lot of your PC, so anyone can run.

I hope you find this useful. Cheers!

Post request by @jerrythefarmer



image.png

About the SPK Network:
The SPK Network is a decentralized Web 3.0 protocol that rewards value creators and infrastructure providers appropriately and autonomously by distributing reward tokens in such a way that every user, creator, and platform, will be able to earn rewards on a level playing field.

Check out the SPK Network Light Paper

Website: https://spk.network/

Telegram Group: https://t.me/spknetwork

Discord Server: https://discord.gg/JbhQ7dREsP

Posted Using LeoFinance Beta

Sort:  

I dey carry my lappy come your house

Posted Using LeoFinance Beta

I dey for you brotherly

Posted Using LeoFinance Beta

I'm having some other quite related trouble, though. After claiming the airdrop where do I go to see my balance, please?

IMG_20220325_213624.jpg

It should be around the circled area. It is on the same page where you claimed your larynx token. Mine is locked currently because I run a node.

Posted Using LeoFinance Beta

I can't find the site anymore, what's the site's name please?

Here: https://spk.dlux.io/

Posted Using LeoFinance Beta

Okay, thanks, man. I tried this site before, it wasn't opening on my Chrome, so I was wondering what the problem was, as you sent the same site to me now it occurred to me to try some other browser. 😎✌️

lol you still use chrome bro? Brave is the safest option out there. Plus you earn crypto using their browser.

Posted Using LeoFinance Beta

LOL. You're right bro, I really should do better.


The rewards earned on this comment will go directly to the person sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.

Is it possible to delegate your spk and gain some returns at the end of the month

Posted Using LeoFinance Beta

This is not available currently

Posted Using LeoFinance Beta

Looks straightforward enough. I'll give it a go over the weekend and let you know if I had any luck.

Thanks for the effort!

Posted Using LeoFinance Beta

Sorry for the grammatic errors. I will try to review the post properly tomorrow. Got to sleep now. Hopefully this helps you sort things out.

Posted Using LeoFinance Beta

While I'm not quite ready to make use of this information, massive kudos to putting it together in an easy-to-read fashion! This is something I'd like to explore down the road, so I've bookmarked this to review when I ready to give it a go ;P

!1UP

I am glad you found this information useful. IF you have any questions later in the future, feel free to ask.

Posted Using LeoFinance Beta

Don-1UP-Cheers-Cartel-250px.png

You have received a 1UP from @entrepidus!

The following @oneup-cartel family members will soon upvote your post:
@leo-curator, @ctp-curator, @vyb-curator, @pob-curator, @neoxag-curator, @pal-curator
And they will bring !PIZZA 🍕

Learn more about our delegation service to earn daily rewards. Join the family on Discord.