2 Setup Linux
Internet Addict edited this page 2026-02-23 09:55:12 +00:00

Setup for Linux

Prerequisites

  • Go: Version 1.24.7 or higher is required.
  • Git: Necessary for cloning the repository.
  • Internet Access: Required for fetching search results.

This guide is kinda incomplete, as you also need C build tools for compilation/running.


Installing Go (if not already installed or version is too low)

  • Ubuntu/Debian-based systems:

    sudo apt update
    sudo apt install -y golang-go
    
  • Fedora/RHEL-based systems:

    sudo dnf install -y golang
    
  • Arch-based systems:

    sudo pacman -S go
    

Manual Installation (If Go version from package manager is too low)

  1. Download the latest Go tarball:

    VERSION=$(curl -fsSL https://go.dev/VERSION?m=text | head -n1)
    wget "https://go.dev/dl/${VERSION}.linux-amd64.tar.gz"
    
  2. Extract it to /usr/local (replace existing Go if present):

    sudo rm -rf /usr/local/go
    sudo tar -C /usr/local -xzf "${VERSION}.linux-amd64.tar.gz"
    
  3. Add Go to your PATH (add this to ~/.bashrc or ~/.zshrc):

    export PATH=$PATH:/usr/local/go/bin
    
  4. Verify installed version:

    go version
    

Running QGato

  1. Install Git:

    sudo apt install -y git  # For Ubuntu/Debian
    sudo dnf install -y git  # For Fedora/RHEL
    sudo pacman -S git       # For Arch
    
  2. Clone the repository:

    git clone https://weforge.xyz/Spitfire/Search.git
    cd Search
    
  3. Make the script executable:

    chmod +x ./run.sh
    
  4. Run the script:

    ./run.sh
    

Alternative (Using Go Directly)

  1. Clone the repository:

    git clone https://weforge.xyz/Spitfire/Search.git
    cd Search
    
  2. Run QGato with Go:

    go run .
    

That's it! QGato is now running.