Install

Setting up a Union node

# Set the variables

# Come up with the name of your node and replace it instead <your_moniker>
ETH_MAINNET_RPC=<your-ETH-mainnet-RPC-URL>
OPTIMISM_L2_RPC=<your-L2-optimism-RPC-URL>
HUB_OPERATOR_FID=<your-fid>

echo "export ETH_MAINNET_RPC="$ETH_MAINNET_RPC >> $HOME/.bash_profile
echo "export OPTIMISM_L2_RPC="$OPTIMISM_L2_RPC >> $HOME/.bash_profile
echo "export HUB_OPERATOR_FID="$HUB_OPERATOR_FID >> $HOME/.bash_profile
source $HOME/.bash_profile
# check whether the last command was executed
sudo apt update && sudo apt upgrade -y
sudo apt install make clang pkg-config libssl-dev libclang-dev build-essential git curl ntp jq llvm tmux htop screen unzip cmake -y
# Install Go
source <(curl -s https://raw.githubusercontent.com/NodersUA/Scripts/main/system/go)

Install docker

# Install Docker
if ! [ -x "$(command -v docker)" ]; then
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
sudo usermod -aG docker $USER
docker --version
else
echo $(docker --version)
fi

Last updated

Was this helpful?