-
Notifications
You must be signed in to change notification settings - Fork 102
Opening a reticulum console
Brian Peiris edited this page Mar 18, 2020
·
1 revision
- SSH into a reticulum node on your cloud instance with
ssh -i <your-ssh-key.pem> ubuntu@<reticulum-instance-public-dns>
- Copy the following script into a file called
remote_console.sh
. - Access your instance in a browser, to ensure that reticulum is actually running in the first place
- Run the
remote_console.sh
script
#!/usr/bin/env bash
NODE_NAME=$(echo $HOSTNAME | sed "s/\([^.]*\)\(.*\)$/\1-local\2/")
NODE_COOKIE=$(curl -s "http://localhost:9631/services" | jq -r ".[] | select(.service_group | startswith(\"reticulum.default@\")) | .cfg | .erlang | .node_cookie")
rm start_erl.data
RELEASE_MUTABLE_DIR=$HOME \
RELEASE_CONFIG_DIR=/hab/svc/reticulum/config \
NODE_COOKIE=$NODE_COOKIE \
NODE_NAME=$NODE_NAME \
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 \
REPLACE_OS_VARS=true \
sudo -E $(bio pkg path mozillareality/reticulum)/bin/ret remote_console