Skip to content

Opening a reticulum console

Brian Peiris edited this page Mar 18, 2020 · 1 revision
  1. SSH into a reticulum node on your cloud instance with ssh -i <your-ssh-key.pem> ubuntu@<reticulum-instance-public-dns>
  2. Copy the following script into a file called remote_console.sh.
  3. Access your instance in a browser, to ensure that reticulum is actually running in the first place
  4. 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
Clone this wiki locally