Skip to content

A complete implementation of a Pipe PoP (Points of Presence) node for the Pipe Network decentralized CDN. This repository includes automated setup scripts, monitoring tools, and documentation for running a node that helps deliver Surrealine content globally while earning rewards. Configured with the Surrealine referral code for additional benefits.

Notifications You must be signed in to change notification settings

preterag/pipe-pop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Pipe POP Node Management Toolkit Installation Guide

This script automates the installation and configuration of the Pipe POP caching node, making it easy to set up and manage your node with Surrealine's toolkit.

Features

1. Automated Installation

  • Downloads and installs the latest Pipe POP binary
  • Creates a global pop command accessible from anywhere
  • Sets up proper permissions and capabilities
  • Configures firewall rules automatically

2. System Configuration

  • Creates system-wide configuration files
  • Sets up proper directory structure
  • Configures port bindings (80, 443, 8003)
  • Establishes proper file permissions

3. Node Registration

  • Automatically registers new nodes with Surrealine's referral code
  • Ensures proper node configuration
  • Sets up initial node status

4. Security Features

  • Sets proper file permissions
  • Configures capabilities for port binding
  • Establishes secure firewall rules

Installation Process

graph TD
    A[Start Installation] --> B{Is pop installed?}
    B -->|No| C[Download pop]
    B -->|Yes| J[Update existing installation]
    C --> D[Create global wrapper]
    D --> E[Set up Solana wallet]
    E --> F[Ask for referral registration]
    F -->|Yes| G[Register with referral code]
    F -->|No| H[Skip referral]
    G --> I[Set up capabilities]
    H --> I[Set up capabilities]
    I --> K[Configure firewall]
    K --> L[Refresh node]
    L --> M[Perform quick test]
    M --> N[Installation complete]
    J --> O[Update wrapper]
    O --> P[Update capabilities]
    P --> Q[Update firewall]
    Q --> R[Refresh node]
    R --> S{Is node registered?}
    S -->|Yes| T[Ask re-register with referral]
    T -->|Yes| U[Re-register with referral]
    T -->|No| V[Skip re-registration]
    U --> W[Perform quick test]
    V --> W[Perform quick test]
    W --> X[Installation complete]
Loading

The script performs the following steps:

  1. Initial Check

    • Verifies if pop is already installed
    • Checks for existing configuration files
  2. Binary Installation

    • Downloads the latest Pipe POP binary
    • Makes the binary executable
    • Creates necessary directories
    • Moves the binary to /opt/pop
  3. Global Command Setup

    • Creates a wrapper script at /usr/local/bin/pop
    • Ensures configuration file availability
    • Makes the command globally accessible
  4. Solana Wallet Setup

    • Prompts for Solana wallet public key
    • Sets up wallet for receiving token payments
    • Saves wallet configuration
  5. Referral Registration

    • Asks if user wants to register with Surrealine's referral code
    • Registers node with referral code if requested
    • For existing nodes: Offers option to re-register with referral code
  6. Node Registration

    • Registers the node with Surrealine's referral code (only for new nodes)
    • Sets up initial node status
    • Configures node settings
  7. Final Setup

    • Refreshes the node configuration
    • Displays completion message
    • Provides support information
  8. Quick Test

    • Tests egress connectivity
    • Verifies node status
    • Checks node points
    • Ensures everything is working correctly

Referral Program

The script offers referral registration options:

  1. For new installations:

    • Prompts to register with Surrealine's referral code
    • Explains benefits of joining the referral program
    • Allows skipping if preferred
  2. For existing nodes:

    • Detects if node is already registered
    • Offers option to re-register with Surrealine's referral code
    • Preserves existing configuration if re-registration is skipped

Solana Wallet Setup

During installation, you'll be prompted to enter your Solana wallet public key. This is optional but recommended if you want to:

  1. Receive token payments for your node's services
  2. Track your earnings
  3. Manage node rewards

If you don't have a Solana wallet, you can:

  1. Skip the wallet setup during installation
  2. Set up a wallet later using: pop --pubKey <YOUR_WALLET>

Update Process

If a node is already running:

  1. The script will detect the existing installation
  2. It will update the global command wrapper
  3. It will refresh the node's capabilities and firewall rules
  4. It will skip the registration process (since the node is already registered)
  5. It will refresh the node configuration

This ensures that your existing node configuration is preserved while updating to the latest version and maintaining all security settings.

Usage

  1. Navigate to your node's working directory:
cd /path/to/your/node
cd /var/lib/pop  # Example location
  1. Run the installation script:
./install-pop.sh

Requirements

  • Linux system with sudo access
  • Internet connection for downloads
  • UFW firewall (for port configuration)
  • At least 4GB of RAM
  • At least 100GB of disk space

License

This project is open source. Contributions are welcome!

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Thank you for using the Pipe POP Node Management Toolkit from Preterag!

About

A complete implementation of a Pipe PoP (Points of Presence) node for the Pipe Network decentralized CDN. This repository includes automated setup scripts, monitoring tools, and documentation for running a node that helps deliver Surrealine content globally while earning rewards. Configured with the Surrealine referral code for additional benefits.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages