Giter Site home page Giter Site logo

zenitogr / smooth_sn_node_joiner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dreamerchris/sn_node_joiner

0.0 0.0 0.0 115 KB

sets up multiple nodes in a debian/manjaro machine either join dreamnet/playground or launch your own net

Shell 100.00%

smooth_sn_node_joiner's Introduction

I have an idea about having multiple nodes from one machine without podman or docker

how to use for dreamnet:

tested in debian 11

  1. a. if you dont have sudo, run as root (su - and enter root password) first apt install sudo then add your user to the sudoers sudo usermod -a -G sudo <yourUserName> then relogin and you are ready

b. dependencies sudo apt-get update && sudo apt-get install -y git build-essential moreutils tree curl && curl -so- https://raw.githubusercontent.com/maidsafe/safe_network/master/resources/scripts/install.sh | bash && echo $(safe --version && echo "safe install complete") || echo "safe install failed" && $HOME/.safe/cli/safe node install || /usr/local/bin/safe node install && echo $(safe node bin-version && echo "node install complete") || echo "node install failed"

and now either one liner:

  1. a. use this one liner for dreamnet - with 8 nodes (needs ports open 12001-12008) also check if dreamnet is live at safenetforum.org or use b option

git clone https://github.com/smoothoperatorgr/smooth_sn_node_joiner.git && cd smooth_sn_node_joiner && sh smooth_multi_sn_node_joiner.sh

what it does is:

-adds dreamnet with network.config

-switches to dreamnet

-launches 8 nodes

and if you want to restart the nodes:

sh multi_down.sh && sh smooth_multi_sn_node_joiner.sh

or manually

  1. b.

  2. a. if you dont have sudo, run as root (su - and enter root password) first apt install sudo then add your user to the sudoers sudo usermod -a -G sudo <yourUserName> then relogin and you are ready

b. dependencies:

  • sudo apt-get update
  • sudo apt-get install git snapd build-essential moreutils tree curl
  • curl -so- https://raw.githubusercontent.com/maidsafe/safe_network/master/resources/scripts/install.sh | bash
  • echo $(safe --version) "install complete"
  • $HOME/.safe/cli/safe node install || /usr/local/bin/safe node install
  • echo $(safe node bin-version) "install complete"
  • git clone https://github.com/dreamerchris/smooth_sn_node_joiner.git
  • cd smooth_sn_node_joiner

maybe nano smooth_multi_sn_node_joiner.sh to edit the network config or the node count etc

then run sh smooth_multi_sn_node_joiner.sh

if you want to stop all nodes run sh multi_down.sh

how to run your own network from your debian/manjaro machine! or one VPS!

On debian:

sudo apt-get update && sudo apt-get install -y git snapd build-essential moreutils tree curl && curl -so- https://raw.githubusercontent.com/maidsafe/safe_network/master/resources/scripts/install.sh | bash && echo $(safe --version && echo "safe install complete") || echo "safe install failed" && $HOME/.safe/cli/safe node install || /usr/local/bin/safe node install && echo $(safe node bin-version && echo "node install complete") || echo "node install failed" && git clone https://github.com/smoothoperatorgr/smooth_sn_node_joiner.git && cd smooth_sn_node_joiner

(make sure you port forward 12000-12014)

sh launch_testnet_n_multi_joiner.sh

^^ this will:

  • install the dep and safe cli
  • add genesis node and create mynet config
  • add genesis and 14 nodes

run sh multi_down.sh to remove the nodes!

smooth_sn_node_joiner's People

Contributors

dreamerchris avatar zenitogr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.