Posts: 4
Threads: 3
Thanks Received: 7 in 3 posts
Thanks Given: 1
Joined: Jan 2018
Reputation:
5
Country:
01-05-2018, 09:38 AM
(This post was last modified: 01-05-2018, 12:05 PM by skyguy.)
Hi guys,
I made this guide to show how to set up a Skywire Node on you mac
How to set up a Skywire Node on a Macintosh (OSx)
Made by Anonymous Kid
Before beginning, make sure you read this:
Command’s are highlighted in blue and are separated by bullet points. Please enter the text next to the bullet point into your terminal and then press enter. Example:
npm install git (press enter key here)
cd src/skycoin/skywire (press enter key here)
Okay. Before we begin, you must install a couple things. Remember, enter these commands into your terminal and then press ‘enter’ at the end of each bullet point.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebr...er/install)”
brew install node
npm install git
Great! You just installed home-brew, node.js and then git.
Now we have to install Go.
Click this link here (it should automatically download) - https://golang.org/doc/install?download=...-amd64.pkg
Then open the downloaded package and follow the installation instructions.
Now, we have to set up a $GOPATH variable. Open up your terminal again and enter the following commands:
sudo nano ~/.bash_profile (enter your password and then press enter)
Now you should see a black screen in your terminal. Enter the following text:
export GOPATH=$HOME/go
export GOBIN=$HOME/go/bin
Then press [ctrl] + [x] and then [y] and then [enter]
Awesome! That’s the hard part done.
It’s all copy and paste from here:
mkdir -p $GOPATH/src/github.com/skycoin
cd $GOPATH/src/github.com/skycoin
git clone https://github.com/skycoin/skywire.git
cd $GOPATH/src/github.com/skycoin/skywire/cmd
go install ./…
Now let’s run your Skywire node:
cd $GOPATH/bin
./manager -web-dir ${GOPATH}/src/github.com/skycoin/skywire/static/skywire-manager
Now open up a second terminal window (without closing your original one) and enter these
commands:
cd $GOPATH/bin
continued on next page…
./node -connect-manager -manager-address :5998 -manager-web :8000 -discovery-address messenger.skycoin.net:5999 -address :5000 -web-port :6001
Congratulations! You just set up your first Skywire Node. You can see your node here:
http://localhost:8000
http://127.0.0.1:8000
It should look like this
And then, if you click on the address, like this
1
Posts: 332
Threads: 81
Thanks Received: 220 in 106 posts
Thanks Given: 114
Joined: Dec 2017
Reputation:
43
Country:
Nice tutorial. I added your pics from the pdf
•
Posts: 6
Threads: 1
Thanks Received: 1 in 1 posts
Thanks Given: 0
Joined: Jan 2018
Reputation:
0
Country:
01-24-2018, 09:00 AM
(This post was last modified: 01-24-2018, 09:01 AM by adubido.)
i setup Skywire . but get unkonw error.
1. setup GO. DONE.
2. setup Git and install Skywire. DONE
3. run Skywire-manager. DONE
4. run Skywire-node. FAIL
Code: Aki-starTimedeMacBook-Pro:bin aki_startime$ ./node -connect-manager -manager-address :5998 -manager-web :8000 -discovery-address messenger.skycoin.net:5999 -address :5000 -web-port :6001
ERRO[0000] discovery address messenger.skycoin.net:5999 is not valid
DEBU[0000] listen on :5000
ERRO[0000] failed to load seed config &factory.ConnConfig{Reconnect:true, ReconnectWait:10000000000, Creator:(*factory.MessengerFactory)(nil), SeedConfigPath:"", SeedConfig:(*factory.SeedConfig)(nil), Context:map[string]string{"node-api":":6001"}, UseCrypto:0, TargetKey:cipher.PubKey{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, FindServiceNodesByKeysCallback:(func(*factory.QueryResp))(nil), FindServiceNodesByAttributesCallback:(func(*factory.QueryByAttrsResp))(nil), AppConnectionInitCallback:(func(*factory.AppConnResp) *factory.AppFeedback)(nil), OnConnected:(func(*factory.Connection))(0x11d3030), OnDisconnected:(func(*factory.Connection))(nil)} app=messenger ctxId=1 type=tcp
DEBU[0000] preprocessor read 807b225075624b6579223a5b332c3132372c36362c32332c3234362c3131352c3234332c33332c34362c3130362c34392c35322c3138312c3133382c38312c3133322c3134342c37382c3134322c372c3131352c3135382c3137302c34322c35312c37362c3137302c3131382c3233312c3134342c35342c35342c3235335d7d app=messenger ctxId=1 type=tcp
DEBU[0000] execute op &factory.regResp{PubKey:cipher.PubKey{0x3, 0x7f, 0x42, 0x17, 0xf6, 0x73, 0xf3, 0x21, 0x2e, 0x6a, 0x31, 0x34, 0xb5, 0x8a, 0x51, 0x84, 0x90, 0x4e, 0x8e, 0x7, 0x73, 0x9e, 0xaa, 0x2a, 0x33, 0x4c, 0xaa, 0x76, 0xe7, 0x90, 0x36, 0x36, 0xfd}} err <nil> app=messenger ctxId=1 pubkey=037f4217f673f3212e6a3134b58a5184904e8e07739eaa2a334caa76e7903636fd type=tcp
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x12e9701]
goroutine 1 [running]:
github.com/skycoin/skywire/node/api.(*NodeApi).getConfig(0xc420228000)
/Users/aki_startime/go/src/github.com/skycoin/skywire/node/api/api.go:404 +0x261
github.com/skycoin/skywire/node/api.(*NodeApi).StartSrv(0xc420228000)
/Users/aki_startime/go/src/github.com/skycoin/skywire/node/api/api.go:91 +0x40
main.main()
/Users/aki_startime/go/src/github.com/skycoin/skywire/cmd/node/main.go:58 +0x681
Aki-starTimedeMacBook-Pro:bin aki_startime$
•
Posts: 332
Threads: 81
Thanks Received: 220 in 106 posts
Thanks Given: 114
Joined: Dec 2017
Reputation:
43
Country:
(01-24-2018, 09:00 AM)adubido Wrote: i setup Skywire . but get unkonw error.
1. setup GO. DONE.
2. setup Git and install Skywire. DONE
3. run Skywire-manager. DONE
4. run Skywire-node. FAIL
Code: Aki-starTimedeMacBook-Pro:bin aki_startime$ ./node -connect-manager -manager-address :5998 -manager-web :8000 -discovery-address messenger.skycoin.net:5999 -address :5000 -web-port :6001
ERRO[0000] discovery address messenger.skycoin.net:5999 is not valid
DEBU[0000] listen on :5000
ERRO[0000] failed to load seed config &factory.ConnConfig{Reconnect:true, ReconnectWait:10000000000, Creator:(*factory.MessengerFactory)(nil), SeedConfigPath:"", SeedConfig:(*factory.SeedConfig)(nil), Context:map[string]string{"node-api":":6001"}, UseCrypto:0, TargetKey:cipher.PubKey{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, FindServiceNodesByKeysCallback:(func(*factory.QueryResp))(nil), FindServiceNodesByAttributesCallback:(func(*factory.QueryByAttrsResp))(nil), AppConnectionInitCallback:(func(*factory.AppConnResp) *factory.AppFeedback)(nil), OnConnected:(func(*factory.Connection))(0x11d3030), OnDisconnected:(func(*factory.Connection))(nil)} app=messenger ctxId=1 type=tcp
DEBU[0000] preprocessor read 807b225075624b6579223a5b332c3132372c36362c32332c3234362c3131352c3234332c33332c34362c3130362c34392c35322c3138312c3133382c38312c3133322c3134342c37382c3134322c372c3131352c3135382c3137302c34322c35312c37362c3137302c3131382c3233312c3134342c35342c35342c3235335d7d app=messenger ctxId=1 type=tcp
DEBU[0000] execute op &factory.regResp{PubKey:cipher.PubKey{0x3, 0x7f, 0x42, 0x17, 0xf6, 0x73, 0xf3, 0x21, 0x2e, 0x6a, 0x31, 0x34, 0xb5, 0x8a, 0x51, 0x84, 0x90, 0x4e, 0x8e, 0x7, 0x73, 0x9e, 0xaa, 0x2a, 0x33, 0x4c, 0xaa, 0x76, 0xe7, 0x90, 0x36, 0x36, 0xfd}} err <nil> app=messenger ctxId=1 pubkey=037f4217f673f3212e6a3134b58a5184904e8e07739eaa2a334caa76e7903636fd type=tcp
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x12e9701]
goroutine 1 [running]:
github.com/skycoin/skywire/node/api.(*NodeApi).getConfig(0xc420228000)
/Users/aki_startime/go/src/github.com/skycoin/skywire/node/api/api.go:404 +0x261
github.com/skycoin/skywire/node/api.(*NodeApi).StartSrv(0xc420228000)
/Users/aki_startime/go/src/github.com/skycoin/skywire/node/api/api.go:91 +0x40
main.main()
/Users/aki_startime/go/src/github.com/skycoin/skywire/cmd/node/main.go:58 +0x681
Aki-starTimedeMacBook-Pro:bin aki_startime$
Are you running the node command from the correct directory?
•
Posts: 6
Threads: 1
Thanks Received: 1 in 1 posts
Thanks Given: 0
Joined: Jan 2018
Reputation:
0
Country:
(01-26-2018, 03:05 PM)skyguy Wrote: (01-24-2018, 09:00 AM)adubido Wrote: i setup Skywire . but get unkonw error.
1. setup GO. DONE.
2. setup Git and install Skywire. DONE
3. run Skywire-manager. DONE
4. run Skywire-node. FAIL
Code: Aki-starTimedeMacBook-Pro:bin aki_startime$ ./node -connect-manager -manager-address :5998 -manager-web :8000 -discovery-address messenger.skycoin.net:5999 -address :5000 -web-port :6001
ERRO[0000] discovery address messenger.skycoin.net:5999 is not valid
DEBU[0000] listen on :5000
ERRO[0000] failed to load seed config &factory.ConnConfig{Reconnect:true, ReconnectWait:10000000000, Creator:(*factory.MessengerFactory)(nil), SeedConfigPath:"", SeedConfig:(*factory.SeedConfig)(nil), Context:map[string]string{"node-api":":6001"}, UseCrypto:0, TargetKey:cipher.PubKey{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, FindServiceNodesByKeysCallback:(func(*factory.QueryResp))(nil), FindServiceNodesByAttributesCallback:(func(*factory.QueryByAttrsResp))(nil), AppConnectionInitCallback:(func(*factory.AppConnResp) *factory.AppFeedback)(nil), OnConnected:(func(*factory.Connection))(0x11d3030), OnDisconnected:(func(*factory.Connection))(nil)} app=messenger ctxId=1 type=tcp
DEBU[0000] preprocessor read 807b225075624b6579223a5b332c3132372c36362c32332c3234362c3131352c3234332c33332c34362c3130362c34392c35322c3138312c3133382c38312c3133322c3134342c37382c3134322c372c3131352c3135382c3137302c34322c35312c37362c3137302c3131382c3233312c3134342c35342c35342c3235335d7d app=messenger ctxId=1 type=tcp
DEBU[0000] execute op &factory.regResp{PubKey:cipher.PubKey{0x3, 0x7f, 0x42, 0x17, 0xf6, 0x73, 0xf3, 0x21, 0x2e, 0x6a, 0x31, 0x34, 0xb5, 0x8a, 0x51, 0x84, 0x90, 0x4e, 0x8e, 0x7, 0x73, 0x9e, 0xaa, 0x2a, 0x33, 0x4c, 0xaa, 0x76, 0xe7, 0x90, 0x36, 0x36, 0xfd}} err <nil> app=messenger ctxId=1 pubkey=037f4217f673f3212e6a3134b58a5184904e8e07739eaa2a334caa76e7903636fd type=tcp
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x12e9701]
goroutine 1 [running]:
github.com/skycoin/skywire/node/api.(*NodeApi).getConfig(0xc420228000)
/Users/aki_startime/go/src/github.com/skycoin/skywire/node/api/api.go:404 +0x261
github.com/skycoin/skywire/node/api.(*NodeApi).StartSrv(0xc420228000)
/Users/aki_startime/go/src/github.com/skycoin/skywire/node/api/api.go:91 +0x40
main.main()
/Users/aki_startime/go/src/github.com/skycoin/skywire/cmd/node/main.go:58 +0x681
Aki-starTimedeMacBook-Pro:bin aki_startime$
Are you running the node command from the correct directory?
ye,i sure it run in the right directory which is [ $GOPATH/bin]
•
Posts: 8
Threads: 0
Thanks Received: 0 in 0 posts
Thanks Given: 0
Joined: Mar 2018
Reputation:
0
Country:
Thank you very much for this info.
What are the benefits or advantages to running a Skywire node on my dedicated MacBook Pro, as compared to building a DIY mining rig, or buying one of the official miners?
Assuming I have the MacBook Pro plugged into a power source, running a Skywire node 24/7, how will the compensation compare?
Could I view this MacBook Pro-based node on the manager page in my web browser along with other nodes I may or may not be running?
Thanks.
I am a content creator
Send me SKY --> PoYvKmychuqg5BPRJMz2kNMwo8NVEUX39h
d a t w a y
•
Posts: 1
Threads: 0
Thanks Received: 0 in 0 posts
Thanks Given: 0
Joined: Mar 2018
Reputation:
0
Thank you for sharing!
I've made to here when something went wrong:
mkdir -p $GOPATH/src/github.com/skycoin DONE
cd $GOPATH/src/github.com/skycoin DONE
git clone https://github.com/skycoin/skywire.git DONE
cd $GOPATH/src/github.com/skycoin/skywire/cmd DONE
go install ./… FAIL
It show:
go: command not found
•
Posts: 1
Threads: 0
Thanks Received: 0 in 0 posts
Thanks Given: 5
Joined: Feb 2018
Reputation:
0
Country:
I don't mean to see such a rookie but I went to the windows setup and the breakdown is really simplified. I understand I have to use terminal to access this on Mac but Im really just trying to wrap my mind on this. ha
I'd really appreciate any help because my SM is on the way.
•
Posts: 3
Threads: 0
Thanks Received: 0 in 0 posts
Thanks Given: 0
Joined: Mar 2018
Reputation:
0
Country:
(03-09-2018, 05:34 PM)anlania Wrote: Thank you for sharing!
I've made to here when something went wrong:
mkdir -p $GOPATH/src/github.com/skycoin DONE
cd $GOPATH/src/github.com/skycoin DONE
git clone https://github.com/skycoin/skywire.git DONE
cd $GOPATH/src/github.com/skycoin/skywire/cmd DONE
go install ./… FAIL
It show:
go: command not found
Bump.
Anyone able to solve this issue?
•
Posts: 7
Threads: 1
Thanks Received: 5 in 4 posts
Thanks Given: 0
Joined: Jan 2018
Reputation:
0
Country:
03-16-2018, 07:08 PM
(This post was last modified: 03-16-2018, 07:10 PM by Paperstream.)
Hey, nice guide!
I just helped someone on telegram using this guide and he encountered two problems:
After
Code: export GOPATH=$HOME/go
export GOBIN=$HOME/go/bin
you need to
Code: source ~/.bash_profile
otherwise the made changes won't have an effect.
Additional to that you should copy the
go install ./...
since spacing with the three '...' seems to make problems.
|