Methods of payment Abuse

Farcaster: Installing a node

18.10.2024, 12:03

Description

The Farcaster node is similar in installation to the Taiko node. It requires Alchemy's RPC, and interestingly enough, you can link your FID account to Warpcast. This means that now you can not only develop your Warpcast social network profile, but also link it to the node.

Requirements

CPU: 4

RAM: 16

SSD: 200GB

OS: Ubuntu 20.04

Installation

We have prepared a detailed guide for you on how to install noda. The installation process is as simple as possible, and we recommend choosing a server with minimum requirements, as specified in the recommendations, to avoid possible synchronization problems.

 

  1. Installing MobaXterm. 
      
  • Connect to the leased server via root.
  • Execute the commands on the list.
  • Update and install the necessary packages.
sudo apt update -y
sudo apt install screen -y

2. Go to Alchemy and sign up for an account.

  • Click on "Overview."
  • Click on "Create new app".

  • Choose "Ethereum" and "Ethereum Mainnet."
  • From the bottom, any value and click on "Create App".

  • Click on "Api Key" on the right.

  • Копируем HTTPS адрес и сохраняем в блокнот или в любое другое, удобное место.
  • Repeat the same steps, but select "Optimism Mainnet".
  • Save the HTTPS address.

  • Next we go to our Warpcast profile, we need to copy our FID.
    • Click on "Profile" - "Three dots" - "About".
  • Copy the FID and save it to notepad or a safe place.

3. Go back to the terminal, install the script:

curl -sSL https://download.thehubble.xyz/bootstrap.sh | bash

4. Next, type in our copied links one at a time:

  • The first one is Ethereum Mainnet.
  • The second is Optimism Mainnet.
  • Next, insert our FID.
  • It's going to install:

  • After a couple minutes, the logs will appear - so everything is fine!
  • You can stop them by pressing CNTR+C (if you want to exit the logs).
  • You will see snapshots in the logs - they will grow gradually.
  • Synchronization will take about 2-3 hours.

5. Go to the dashboard at the link: http://your_server_ip:3000

  • You will initially have No data and nothing will be visible.
  • After a few hours, you get graphs:

  • As it should be, after a few hours of waiting:

You can also track synchronization by logs.

Opening ports

Requires port 2283 to be open.

  • Copy all commands one by one and paste them into the console:
sudo iptables -A INPUT -p tcp --dport 2281 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 2282 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 2283 -j ACCEPT
sudo iptables-save > /etc/iptables/rules.v4
sudo iptables -L -v -n

These steps will help you open ports 2281, 2282, and 2283 using iptables.

To save changes to iptables so that they persist after a reboot, use one of the following commands:

  • Debian/Ubuntu:
 sudo apt-get install iptables-persistent
 sudo netfilter-persistent save
  • CentOS/RHEL:
sudo service iptables save
  • For systems with systemd:
 sudo iptables-save > /etc/iptables/rules.v4
  • To make sure the rules have been added:
sudo iptables -L -v -n

This will show the current iptables rules and allow you to verify that ports 2281, 2282, and 2283 are open.

Additional commands

The command to update:

cd ~/hubble && ./hubble.sh upgrade

View logs:

docker logs hubble-hubble-1 --since 1m -f

Delete node:

rm -rf hubble && docker stop farcasterxyz/hubble:latest && docker rm farcasterxyz/hubble:latest && docker stop grafana/grafana:10.0.3 && docker rm grafana/grafana:10.0.3 && docker stop graphiteapp/graphite-statsd:1.1.10-5 && docker rm graphiteapp/graphite-statsd:1.1.10-5