🚨 IMPORTANT NOTICE 🚨
- Whitelist Access Only: This version of the FortytwoNode is intended for whitelisted users only.
- Legacy Version (CPU/VPS Friendly): This script pertains to an older version of the FortytwoNode software that is capable of running on Virtual Private Servers (VPS) and systems without dedicated GPUs. It includes options for less resource-intensive models.
This script automates the setup and launch of a FortytwoNode. It prepares the environment, downloads necessary components (FortytwoCapsule, FortytwoProtocol, and AI models), allows for node specialization, and manages the node processes.
The script will:
- Display a welcome banner.
- Prepare project directories (
FortytwoNode,FortytwoNode/debug). - Check for and install
curlif not present. - Fetch the latest versions of the Fortytwo Protocol and Capsule.
- Download or update the
FortytwoCapsuleandFortytwoProtocolexecutables. It will download a CPU version of the Capsule. - Prompt you to select a node specialization, which determines the AI model to be used. An auto-select option based on available system memory (VRAM or RAM) is also available.
- Download the selected AI model from HuggingFace.
- Manage your account's private key.
- Start the FortytwoCapsule and FortytwoProtocol services.
- Monitor the running processes.
- A Linux environment (the script uses
aptforcurlinstallation, so Debian/Ubuntu-based systems are assumed for that part). curl(the script will attempt to install it if missing).- Your pre-obtained account private key. You will need this for the setup process outlined below.
Follow these steps carefully to set up your node using a pre-obtained private key:
-
Initial Run: Execute the script:
wget https://raw.githubusercontent.com/WINGFO-HQ/Fortytwo/refs/heads/main/fortytwo.sh && chmod +x fortytwo.sh && fortytwo.sh
-
Stop at Phrase Prompt: The script will download components and then eventually prompt you to:
Enter your account recovery phrase (12, 18, or 24 words), then press Enter:At this point, stop the script (e.g., by pressingCtrl+C). -
Create Private Key File:
- Navigate to the project directory created by the script:
cd FortytwoNode - Create a file named
.account_private_key:touch .account_private_key
- Open this file with a text editor (e.g.,
nano,vim):nano .account_private_key
- Paste your pre-obtained private key into this file. Save and close the file.
- Navigate to the project directory created by the script:
-
Re-run the Script: Go back to the directory where
fortytwo.shis located (if you changed directories) and re-run the script:./fortytwo.sh
This time, the script will detect the
.account_private_keyfile and use its content, bypassing the seed phrase prompt. It will then proceed to start the node.
When prompted, you can choose how your node will contribute:
- 0. AUTO-SELECT: The system analyzes your hardware (RAM/VRAM) and recommends an optimal model.
>= 16GB RAM/VRAM: TELEOLOGY PYLON (INTELLECT-1-Instruct)>= 8GB RAM/VRAM: NOUMENAL PYLON (Llama-3.2-3B-Instruct)< 8GB RAM/VRAM: NEXUS (Qwen2.5-1.5B-Instruct)
- 1. NOUMENAL PYLON: General Knowledge (Llama-3.2-3B-Instruct).
- 2. TELEOLOGY PYLON: Advanced Reasoning (INTELLECT-1-Instruct).
- 3. MACHINIC PYLON: Programming & Technical (Qwen2.5-Coder-7B-Instruct).
- 4. SCHOLASTIC PYLON: Academic Knowledge (Ministral-8B-Instruct-2410).
- 5. LOGOTOPOLOGY PYLON: Language & Writing (Qwen2.5-7B-Instruct).
- 6. CUSTOM: Advanced configuration where you provide the HuggingFace repository and model filename.
If no selection is made, or an invalid selection is entered, the script defaults to the auto-select behavior.
Once the setup is complete and the private key is configured, the script will:
- Start the
FortytwoCapsulewith the selected AI model. - Wait for the Capsule to become ready (this might take some time during the first launch).
- Start the
FortytwoProtocol, connecting your node to the network.
The script will keep running, and you can monitor the node's activity through the terminal output or the log files located in ./FortytwoNode/debug/FortytwoCapsule.logs.
To stop the node, press Ctrl+C in the terminal where the script is running. The script includes a cleanup function to stop the Capsule and Protocol processes gracefully.
PROJECT_DIR:./FortytwoNodeCAPSULE_EXEC:$PROJECT_DIR/FortytwoCapsuleCAPSULE_LOGS:$PROJECT_DIR/debug/FortytwoCapsule.logsPROTOCOL_EXEC:$PROJECT_DIR/FortytwoProtocolACCOUNT_PRIVATE_KEY_FILE:$PROJECT_DIR/.account_private_keyUTILS_EXEC:$PROJECT_DIR/FortytwoUtils
This script provides a streamlined way to get your FortytwoNode up and running. Join the Decentralized AI Revolution!