### Run FluxCore Installation Script Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxcore/installation/linux-headless-installation.md Executes the FluxCore setup script to bind your machine to your SSO account. Replace placeholders with your machine's IP address and your registered email. The '-cluster default' flag ensures the machine joins the regional cluster post-setup. ```bash bash -i <(curl -s https://download.fluxcore.ai/setup.sh) -i 192.168.1.100 youremail@mail.com -cluster default ``` -------------------------------- ### Download and Run FluxNode Multitoolbox Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxnodes/legacy-fluxnode/step-by-step-guide/step-3-install-the-fluxnode-software/install-fluxnode-software/README.md This command downloads and executes the FluxNode multitoolbox script from its official GitHub repository. It requires bash and curl to be installed on the system. The script is essential for automating the FluxNode setup process. ```bash bash -i <(curl -s https://raw.githubusercontent.com/RunOnFlux/fluxnode-multitool/master/multitoolbox.sh) ``` -------------------------------- ### Install NVIDIA Drivers on Ubuntu Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxcore/installation/linux-headless-installation.md Installs the NVIDIA 570 driver branch on Ubuntu Server or Desktop. Ensure you check the FluxCore Supported NVIDIA Drivers for compatibility before proceeding, as using an unsupported version may lead to issues with FluxCore services. ```bash sudo apt update && sudo apt upgrade -y # For Ubuntu Server: sudo apt install nvidia-driver-570-server # For Ubuntu Desktop: sudo apt install nvidia-driver-570 ``` -------------------------------- ### Example Environment Variables for MySQL Setup (JSON) Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxcloud/cloud/shared-database/component.md An example demonstrating how to fill in the required environment variables for a MySQL component on RunOnFlux. This includes specific values for component names, passwords, ports, and IP whitelisting. ```json [ "DB_COMPONENT_NAME=fluxmysql_mysql01", "DB_INIT_PASS=123secret", "CLIENT_APPNAME=mysql01", "DB_APPNAME=mysql01", "DB_PORT=31000", "API_PORT=31001", "WHITELIST=" ] ``` -------------------------------- ### Initialize Disks for LVM on Proxmox Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxnodes/legacy-fluxnode/advanced-topics/proxmox-fractus-node-setup.md Initializes partition 1 on specified disks using sgdisk, preparing them for use with LVM. Ensure disks are correctly identified in the Proxmox GUI before execution. This is a prerequisite for creating LVM volume groups. ```bash sgdisk -N 1 /dev/sdf sgdisk -N 1 /dev/sdg sgdisk -N 1 /dev/sdh ``` -------------------------------- ### FluxCore Linux Headless Installation Script Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxcore/fluxcore-web.md This script allows for the headless installation of FluxCore on Linux machines, enabling quick setup without a display. It's designed for automated or remote configuration. ```bash bash -i <(curl -s https://download.fluxcore.ai/setup.sh) ``` -------------------------------- ### Install CUDA Toolkit on Ubuntu Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxcore/installation/linux-headless-installation.md Installs the NVIDIA CUDA toolkit on Ubuntu 22.04. This is a crucial step for GPU-accelerated tasks within FluxCore. The command downloads the CUDA GPG key, updates the package list, and installs the toolkit. ```bash wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb sudo dpkg -i cuda-keyring_1.1-1_all.deb sudo apt-get update sudo apt-get install -y nvidia-cuda-toolkit sudo apt install cuda-toolkit-12-8 ``` -------------------------------- ### Prepare and Mount Disk Inside FluxNode Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxnodes/legacy-fluxnode/advanced-topics/proxmox-fractus-node-setup.md Prepares a virtual disk (e.g., /dev/sdb) attached to a FluxNode by partitioning, formatting with ext4 (disabling discard for performance), creating a mount point, and configuring fstab for automatic mounting. It concludes by mounting the disk and verifying space. ```bash sudo sgdisk -N 1 /dev/sdb sudo mkfs.ext4 -E nodiscard /dev/sdb1 sudo mkdir /thunder sudo blkid /dev/sdb1 # copy the UUID sudo nano /etc/fstab # add: # UUID= /thunder ext4 rw,user,auto 0 0 sudo mount /thunder df -h | tail -n1 ``` -------------------------------- ### DB Engine Environment Variables Example (Bash) Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxcloud/cloud/shared-database/component.md Example of how to set environment variables for a DB Engine component, specifically for MySQL. It requires the root password and host configuration. ```bash ["MYSQL_ROOT_PASSWORD=", "MYSQL_ROOT_HOST=172.0.0.0/255.0.0.0"] ``` -------------------------------- ### Launch ML Training Project with Docker Source: https://context7.com/sirejeff/runonflux-docs/llms.txt This snippet demonstrates how to quickly launch a machine learning training project using Docker on FluxEdge GPU rental services. It specifies project details, machine types, and runs a PyTorch container with persistent data volumes. Ensure Docker and NVIDIA container runtime are installed. ```bash # Quick Launch ML Training Project PROJECT_NAME="pytorch-training" MACHINE_TYPE="Premium" GPU_MODEL="NVIDIA H100" VRAM="80GB" CPU="32 cores" RAM="256GB" STORAGE="2TB NVMe" PRICING="$2.50/hour" LOCATION="us-west" # Deploy with Docker container docker run -d \ --gpus all \ --name ml-training \ -v /data:/workspace \ -e CUDA_VISIBLE_DEVICES=0 \ pytorch/pytorch:latest \ python train.py --epochs 100 --batch-size 64 ``` -------------------------------- ### Clone Flux Shared DB Repository and Install Dependencies Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxcloud/home/applications/shared-database/developer-notes.md Provides the bash commands to clone the Flux Shared DB GitHub repository and install the necessary Node.js dependencies using npm. This is the initial step for setting up the project locally for development or contribution. ```bash git clone https://github.com/RunOnFlux/Flux-Shared-DB.git cd Flux-Shared-DB npm install ``` -------------------------------- ### Run Flux Shared DB Operator Locally (Node.js) Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxcloud/home/applications/shared-database/developer-notes.md Shows how to run the Flux Shared DB backend operator locally using Node.js after cloning the repository and installing dependencies. This command starts the server, enabling local testing and development. ```bash npm install node ClusterOperator/server.js ``` -------------------------------- ### Deploy and Use Flux Shared MySQL Database Source: https://context7.com/sirejeff/runonflux-docs/llms.txt Demonstrates deploying synchronized MySQL databases with automatic replication across FluxNodes. Includes connection details, SQL commands for creating databases and tables, and a Docker Compose example for deployment. ```bash # Connect to shared database mysql -h operator.ip.address -P 3307 -u root -p # Create database and tables CREATE DATABASE example_db; USE example_db; CREATE TABLE users ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(100) NOT NULL, email VARCHAR(255) UNIQUE, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); # Insert and query data INSERT INTO users (name, email) VALUES ('Alice', 'alice@example.com'), ('Bob', 'bob@example.com'); SELECT * FROM users WHERE created_at > DATE_SUB(NOW(), INTERVAL 7 DAY); ``` ```yaml # Docker Compose deployment with Flux Shared DB version: '3.8' services: db: image: mysql:latest environment: - MYSQL_ROOT_PASSWORD=changeme - MYSQL_DATABASE=appdb volumes: - db_data:/var/lib/mysql operator: image: runonflux/shared-db:latest ports: - "3307:3307" - "7071:7071" - "8008:8008" environment: - DB_INIT_PASS=yourpassword - DB_USER=customuser - WHITELIST=1.2.3.4,5.6.7.8 - authMasterOnly=true depends_on: - db volumes: db_data: ``` -------------------------------- ### SSH into Proxmox Host Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxnodes/legacy-fluxnode/advanced-topics/proxmox-fractus-node-setup.md Establishes an SSH connection to the Proxmox host server. Replace '' with the actual IP address of your Proxmox server. This is the first step for performing administrative tasks via the command line. ```bash ssh root@ ``` -------------------------------- ### Perform OS-Only Update (Bash) Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxnodes/legacy-fluxnode/update-and-maintenance.md This command updates the operating system's package list and upgrades installed packages. A reboot is recommended if kernel or critical patches were applied. Requires root privileges via sudo. ```bash sudo apt update && sudo apt upgrade -y sudo reboot # if kernel or critical patches were applied ``` -------------------------------- ### Invoke FluxNode Multitoolbox Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxnodes/legacy-fluxnode/step-by-step-guide/step-3-install-the-fluxnode-software/install-fluxnode-software/README.md Once the multitoolbox script has been downloaded and executed, it can be invoked at any time using this command. This command assumes the script has been placed in a location accessible by the system's PATH or is run from its directory. It launches the interactive menu for managing FluxNode services. ```bash multitoolbox ``` -------------------------------- ### Change FluxCore Machine Owner Email Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxcore/installation/linux-headless-installation.md Updates the owner email associated with a registered FluxCore machine. Ensure the new email address is linked to an existing Fluxcore or Fluxedge SSO account. This command re-registers the machine with the new owner. ```bash bash -i <(curl -s https://download.fluxcore.ai/setup.sh) -email yournewowner@mail.com ``` -------------------------------- ### FluxCore Uninstall and Reinstall Script Source: https://github.com/sirejeff/runonflux-docs/blob/master/docs/fluxcore/fluxcore-web.md Provides instructions to uninstall and then reinstall FluxCore using a setup script. This is a troubleshooting step for resolving connection issues. ```bash bash -i <(curl -s https://download.fluxcore.ai/setup.sh) # Then select option 2 to uninstall ```