I have an idea about having multiple nodes from one machine without podman or docker
how to use for dreamnet:
tested in debian 11
- a. if you dont have sudo, run as root (
su -
and enter root password) firstapt install sudo
then add your user to the sudoerssudo 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:
- 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
-
b.
-
a. if you dont have sudo, run as root (
su -
and enter root password) firstapt install sudo
then add your user to the sudoerssudo 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
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!