Introduction
This guide explains how to install the LFG Node CLI on Windows for seamless node management and operation.
Prior Knowledge
Before installing the LFG Node CLI on Windows, it’s helpful to be familiar with the frequently asked questions about the Node, LFG Node Dashboard and LFG Node System requirements:
- LFG Node CLI FAQs: Review common questions about LFG Nodes CLI.
- LFG Node Dashboard: The dashboard provides an overview of your nodes and allows you to manage them efficiently.
- LFG Node CLI Hardware Requirements: Ensure your system meets the necessary hardware specifications.
-
LFG Node CLI Software Requirements:
- CPU Virtualization
- Windows Subsystem for Linux
- Docker Engine
Instructions
Step 1: Enable Hyper-V (Virtualization) in BIOS
1. Restart Your Computer: During startup, press the designated key (typically F2, F10, F12, or Delete) to enter the BIOS settings.
Note: During startup, you may see a message at the bottom of the screen indicating the correct key to press to enter the BIOS setup. If you're unsure, check your computer’s motherboard manual for the exact key.
2. Navigate to Virtualization Settings:
- On most motherboards, the virtualization option can be found in sections like Advanced, CPU Configuration, or Overclocking Settings.
- Look for SVM Mode (as shown in the screenshot below) or other terms like CPU Virtualization, Intel VT-x, or Intel Virtualization Technology, depending on your processor.
3. Enable Hyper-V: Set SVM Mode or the equivalent setting to Enabled. This enables virtualization support required for Hyper-V.
4. Save and Exit: Save your changes and exit the BIOS. Your computer will restart.
Note: If you encounter difficulties locating the virtualization settings, refer to your motherboard's manual for guidance.
Step 2: Install Windows Subsystem for Linux (WSL)
1. Open PowerShell:
- Open the Windows search bar and type "PowerShell".
- In the search results, select "Run as Administrator" from the options on the right side of the screen (as shown in the screenshot below).
- If this option doesn’t appear, right-click on Windows PowerShell in the search results and select Run as administrator from the context menu.
2. Install WSL: Execute the following command:
wsl --install
Note: This command installs the Windows Subsystem for Linux, enabling a Linux environment to run directly on your Windows system. Ensure the command completes successfully before proceeding to the next step.
Step 3: Install Docker
3. Install Docker: Follow the on-screen installation instructions.
4. Reboot Your System: Restart your machine after installing Docker.
Step 4: Disable Sleep Mode (Recommended)
1. Open Power Options: Go to Settings > System > Power.
2. Set Sleep Settings to 'Never':
- Under the Screen and sleep section, set the following options to Never.
- If applicable, also set When on battery power, PC goes to sleep after to Never to ensure your system remains active while running the node.
Note: Disabling sleep mode prevents interruptions in node operations, ensuring continuous uptime.
Step 5: Install and Configure the LFG Node CLI
1. Run PowerShell as Administrator.
2. Run the following command to download and execute the LFG Node CLI installation script:
powershell -ExecutionPolicy Bypass -Command "Invoke-WebRequest -Uri 'https://link.lfg.inc/lfgnode-windows-script' -OutFile '$PWD\Windows_Install.ps1'; & '$PWD\Windows_Install.ps1'"
This script will download and install the LFG Node CLI on your Windows machine.
3. Copy the Node Address and visit the LFG Node Dashboard website.
Note: To copy the Node Address, double-click to highlight it and then right-click. Avoid using CTRL + C, as it will interrupt the installation process.
4. Connect your wallet to access the site.
5. Click the Add Node button.
6. Enter your Node Address and assign a name, then press Add.
7. Press Confirm on your Wallet.
8. Return to PowerShell and press Enter.
9. Enter the workload number you wish to run:
10. After adding a workload, you’ll be directed to a confirmation screen that indicates the completion of the setup process.
The node setup is now complete. It may take up to 5 minutes for the node to appear operational on the dashboard.
Conclusion
By following these steps, the LFG Node CLI will be successfully installed and operational on your Windows machine. For any issues or further assistance, please reach out to our team via the LFG Discord community.