Introduction 

This guide provides comprehensive instructions for installing the LFG Node CLI on MacOS. Following these steps will help you get your node operational quickly.

Prior Knowledge

Before installing the software, it’s helpful to be familiar with the node fundamentals, LFG Node Dashboard, and LFG Node System requirements:

Instructions

1. Install Docker Desktop

Go to the Docker site and download Docker desktop based on your CPU chip.

  • For M1, M2 and onwards, select Download for Mac - Apple Silicon.
  • For Intel, select Download for Mac - Intel Chip.
Install LFG Node CLI on MacOS

After the download is completed, open the Docker file, and drag and drop it to Applications.

Install LFG Node CLI on MacOS

Start Docker and minimize it. 

2. Open Terminal and run:

sudo su

Enter your password.

3. Run the following command to download and execute the installation script:

wget -O lfg.sh https://link.lfg.inc/lfgnode-macOS-script && chmod +x lfg.sh && bash lfg.sh

If you're getting an error message that states: "wget: command not found". You will need to install Homebrew and WGET. 

  • Homebrew: A package manager for MacOS that lets you install and manage software via the terminal.
  • wget: A command-line tool used to download files from the internet.

To begin with this process, follow the instructions below:

3A. Open a new Terminal instance and run the command below to install Homebrew.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install LFG Node CLI on MacOS

3B. Add Homebrew to your shell path

For Apple Silicon:

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

For Intel:

echo 'eval "$(/usr/local/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/usr/local/bin/brew shellenv)"

3C. Install WGET using Homebrew

brew install wget

Install LFG Node CLI on MacOS

Once these steps are completed, you've successfully installed Homebrew and WGET. Go back to Step 2 to go through the Node installation process.
 

4. 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.

Install LFG Node CLI on MacOS

5. Connect your wallet to access the site. 

Install LFG Node CLI on MacOS

6. Click the Add Node button.

Install LFG Node CLI on MacOS

7. Enter your Node Address and assign a name, then press Add.

Install LFG Node CLI on MacOS

8. Press Confirm on your Wallet.

Install LFG Node CLI on MacOS

9. Return to the Terminal and press Enter.

Install LFG Node CLI on MacOS

10. Enter the workload number you wish to run:

image (77).png

11. After adding a workload, you’ll be directed to a confirmation screen that indicates the completion of the setup process.

Install LFG Node CLI on MacOS

The node setup is now complete. It may take up to 5 minutes for the node to appear operational on the dashboard.

nodelx2.png

Conclusion

By following these steps, you will have successfully installed and configured the LFG Node CLI on your MacOS. If you encounter any issues during installation or have additional questions, the LFG Discord Community is an excellent resource for troubleshooting and support.

Was this article helpful?