Setting Up Your Own HSD Node

Legends do it live.


(00:01) [Music] [Applause] [Music] kinetic is a blockchain crypto investment firm based in hong kong and puerto rico [Music] founded in 2016 they were the first fund in hong kong and one of the earliest in asia with a portfolio of over companies they were seed investors in such projects as ethereum parity and polka dot solana ftx and of course handshake in name base [Music] founder johan chu was an active investor and supporter of the handshake ecosystem over one hundred thousand domains co-founder of d-web foundation co-founder of handicon and sponsor of

(00:52) the handshake house at miami hack week 2022 [Music] hey everybody all right all right hello welcome back to our next session this one is going to be a little bit more technical like i said uh it’s going to be setting up an hsd node uh luke’s gonna walk us through and uh give a little tutorial here um and also if you have questions throughout uh you can go ahead and ask them and then we will uh tell luke what you got and he’ll uh stop and and answer whatever you have all right but uh luke yeah you can go

(01:31) ahead and take it away thanks nick okay uh and fest um so today is a journey through the wilderness and um my game plan here is to go slow um and ideally to have people actually go through walk through with me as i’m setting up a node for myself and get one running on your own computer i’m doing this on macs and so if i’m gonna ask the question and i’m gonna look for answers anybody running a mac right now who does not have an hsd node on their computer tell me in the chat cool okay if we’ve got at least one i would just

(02:21) one person getting a note up um would make me so so happy all right um i’m not guiding for windows and i’m not guiding for linux sadly we don’t have the time for that but i will point you to where you can go and hopefully down the line um all these questions are the questions that i’ll be answering as we go all right um so i’m gonna share my screen and i’ll be trying to keep an eye on the chat window as we go and fist and or mike will be communicating with me as well okay so where what is a handshake node

(03:03) google hsd github and it’s going to be the first entry um this is what we’re going to install today on your computer um so you’re we’re going to get it running on your computer so that you can resolve handshake names um directly from uh your computer without having to go through a gateway or without having to use well you might want to use bob wallet or or something like fingertip those are great tools but this is an exciting adventure so we’re gonna set up a node directly all right so first step

(03:56) uh here i’m gonna put these in the chat this is for uh linux installation this is for people who are not working on a mac and want to try to get set up as we go through um this is the windows and hsd is the thing that we’re installing so on a window on uh on i’m assuming that we’re on a mac right now press command spacebar and this thing pops up uh because the jungle is where you have journeys and we’re on a journey setting setting up a handshake note uh nick that’s my answer to your question

(04:33) um and then we’re gonna look for terminal this is where cool stuff’s gonna happen um i’m gonna use this one all right so i’m not assuming that you’ve used this before and i’m hoping that this is a fun experience for you um so this is what we call the terminal you can do lots of cool stuff in it and i’m going to show you very little you can say stuff like hello boom don’t need to know this at all but i wanted to show you and say hello through this cool little uh terminal called and this is a scripting language

(05:16) called bash don’t need to know any of that but you do need to know how how to put some commands into it so you all got your terminal open i’m looking for yeses [Laughter] um cool so first thing we’re gonna do is type in npm and click enter if you’ve got it if it does not say command not found great um you’re set if it does say other stuff um then you don’t need to do anything for now but for uh for people who don’t have npm installed what we’re going to do now is go to google and google nvm

(06:21) i did uninstall node for this um and so we’re going to go to the first thing called the node version manager this is the tool that we need to install uh a handshake node um handshake is written in nodejs and this is you probably have you may have i’m not sure if your computer comes with npm i may have uninstalled for no reason but this is what we’re going to do regardless um actually even if you have npm do follow follow along this will be helpful so you’re going to have to copy something from this page so again go to

(07:02) google nvm node version manager on github and you’re going to grab in this section you’re going to copy this curl thing and there’s a little button here copied good grab that go back to your terminal and then you’re gonna paste it in and this is usually a bad idea to paste stuff into a terminal but because it’s me you’re just gonna do it click enter and it’s gonna do stuff cool stuff um all right so it says close and reopen your terminal now i’m gonna wait a few minutes for people to catch up um and i’m gonna look

(07:54) for you to tell me that you’re catching up because i know that you’re keeping up with me here hey nick don’t say bad things no bad jokes here all right was anybody able to copy this link right here go to your terminal and then paste it in and you saw some stuff install great one person that’s all i need just say yup anyway if you lie to me i’ll know um okay so now we’re gonna open up a new terminal because we need to restart in order to get this command available so you can do that by doing command n

(08:48) and it’ll open up a new one and ignore what i’m doing right now now we’re in a new one and you have this thing called nvm great if you type in nvm it’ll show you some stuff now this is the node version manager and this is how we’re going to install nb uh node in order to install handshake okay so here’s the command let’s see what the command is it’s nvm install lps this is what we’re going to do nbm install dash dash lps and this is the long term support version of node the most recent long

(09:34) term support version of node.js um cool we’re not doing 17 we’re doing 16 we need 16. important don’t get fancy uh i i wanted to install with 17 as well but there are some issues with it so go with nvm install lts dash dash lts all right so what does this mean now when you type in npm you get stuff um right so jeff need to roll back all right backing up we are here gotta copy this thing on this nvm page so google nvm go to nvm get this

(10:39) under the installing updating section the curl copy go to your terminal and then you paste it in and paste all right once you do that you’ll have to open a new terminal clicking command n and then in that new command and type in nvm install dash dash lps good we’re almost there it’s actually not too long to get set up um got a couple more things i’m going to have to keep going because 10 more minutes to go um i expect you to continue if if we do not have time to finish you’re going to continue setting this up um on your own

(11:27) and you’re going to have to dig into all the dirty details by yourself which is fun that can be very fun okay next step we’re gonna install one more thing called brew homebrew if you do not have it so google homebrew boom and we’re gonna do another bad thing that you should never do we’re gonna paste another thing into the terminal um so you’re on the homebrew website brew.

(12:02) sh and you’re going to copy with that link here or just copy all this command c um go back to your terminal and paste that in there checking for two to access oh yeah i forgot to do this because i’m doing this on a different okay so this is what we’re gonna do if you’re on you paste that in paste this in and click enter if you get something good that it’s like says it install stuff um i’ll say something like i’d ask for your password um type in your password nick you’re not helping here don’t do it

(12:49) don’t listen to nick oh man okay okay okay um so what this will do is install brew for you and it might take some bit of time i’m not sure how long it will take i’m not gonna reinstall it here because i am on a guest account on my computer and i don’t actually i didn’t give myself access okay so what’s gonna happen is um you’re gonna have brew installed people tell me how it’s going with brew does anybody have brew set up is anybody having trouble getting brew set up i’m gonna wait here in awkward silence

(13:44) until somebody gives me a thumbs up or a thumbs sideways thanks thanks okay all right so step number two you have brew and we’re gonna install unbound and you’re not gonna get this because you’re going to have right permissions unlike me um and it’ll look something like this this is what it will actually look like brew install unbound not like that spelled it wrong all right this is what it will do if it’s going to actually reinstall it’ll look something like this as your brew installing nick you are a source of chaos utter

(14:35) chaos absolute and utter chaos okay so now we’ve got unbound installed and um yeah this is something that is we should put in the documentation for hsd that this is how you install unbound on a mac um but this is what you you have to have it installed for things to run well okay again brew install unbound that’s what you do after you get node installed we’re very close guys if you can get these two things figured out we’re like pretty much there all right um [Music] so final step we have npm and we’re going to do npm install

(15:31) dash g hsd all right this might take a little bit of time and the real timely thing will be uh the node will take a while to because it’s easier nick okay um so what we just did is now we have hsd available this command is now available i understand nick i understand so we now have hsd as a command that we can run and this is what’s going to happen when you run it lots of crazy stuff

(16:37) lots of crazy stuff but what that means what’s happening here is that we are syncing to with the blockchain we are getting a copy of the blockchain onto our computer um and the hard part is this will take a very long time um and i’m gonna fast forward in time to where it’s done um so you’ll have to wait a few hours probably and it’s worth it do it you should do this because once you get it it’ll be great so how much space if you have uh you should have at least 30 gigabytes of storage space and at least one gigabyte of ram on your

(17:35) computer all right so once i’m fast forwarding in time to my bob wallet uh so now this is a almost synced not a few terabytes you just need at least 30 gigabytes at least this is uh uh i mean you may be able to do it with less i’m not entirely sure but okay so now final step um your your node is synced with the blockchain it’s sort of stopped sending you a lot of stuff um now what you can do is command uh spacebar go to your system preferences

(18:40) type in network right here advanced dns um oh we’re going to have to set it on port yeah so what we’re going to do is hsd look at the support rs port is what we want so this is what we’ll do and i’m aware of a minute left rs host uh rs port you may need to run sudo and type in your password let’s check yeah i don’t have permission so so this

(19:47) is what you’ll have to do to resolve on your on your computer once your node is set up you have to run sudo hsd and pass in these commands to say that we want to run um the dns server at this address on this port which is what will allow us to type in to here i hear you i’m almost done okay and then once you have that in in your this is network network advanced dns once you type 127.0.

(20:34) 0.1 then you should be able to resolve on your system everywhere okay that’s what i got for you um if you have questions please come to discord i would love to help you get set up yup i was just about to say if you need any help support anything we are always in the discord ready to help ready to get you to be uh one step closer to being a handshake super user uh but we’re gonna end abruptly right now we got jj and andrew lee waiting to do a founder q a so i’ll see you guys there it’s gonna be really exciting thanks

(21:08) everybody bye guys bye [Music] [Applause] [Music] kinetic is a blockchain crypto investment firm based in hong kong and puerto rico founded in 2016 they were the first fund in hong kong and one of the earliest in asia with a portfolio of over 220 companies

(22:12) they were seed investors in such projects as ethereum parity and polka dot solana ftx and of course handshake and name base [Music] founder johan chu was an active investor and supporter of the handshake ecosystem over one hundred thousand domains co-founder of d-web foundation co-founder of handicon and sponsor of the handshake house at miami hack week 2022 [Music] [Applause] [Music] [Music] [Applause] [Music] [Applause] [Music] uh

(23:21) [Music] [Music] [Applause]