Golem Provider installation guide
Welcome to the Golem Provider installation guide. This guide provides step-by-step instructions on how to become a provider in the Golem Network and earn GLM tokens.
To follow this tutorial, you will need the following:
- A linux machine with the x86-64 architecture
- Nested virtualization enabled in your BIOS
Install the provider
Launch your terminal and execute the following command to run the installer:
curl -sSf https://join.golem.network/as-provider | bash -
Configuring your node
After installing all required components, you will be asked to set up your node, by providing configuration values. If you leave them empty, the default values (presented in brackets) will be applied. Press Enter for each entry to save it.
|Type in the name of your new node. If you leave this space empty, a random auto-generated name will be used.|
|Paste your own Ethereum address to which you have private keys stored. If you leave this space empty, an address will be created for you on your local system.|
|When configuring your pricing, consider the current market conditions. The initial default rate is set at 0.1 GLM per hour, per thread, which might be high given the current market rates. To ensure your pricing is competitive, you can refer to the list of online providers and their earnings on the Golem Network Stats page. The table of providers is automatically sorted by earnings, which can help you gauge and set a more market-aligned pricing.|
Modifying your PATH
Post-installation, you may need to update your system's PATH. This step ensures that you can run Golem commands directly from the terminal without having to specify the full path to the executable each time.
For users utilizing the bash shell, you can modify your
.bashrc file to update your PATH with the following command:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
Then, refresh your shell environment with the new PATH using:
Running the provider
To run the Golem provider on the mainnet, type the following command into the terminal:
Verifying node status
To check your node's status and see if it is active and computing tasks from the network, open a new terminal window and type:
As an output, you will get the information about your node's current state as shown below. The following, more important values are given and correspond to:
|Service||Shows the running status of the provider|
|Wallet||The ERC-20 wallet address where you receive your GLM|
|Network||Which network you are on, e.g., mainnet or testnet|
|Amount||For each respective network, it shows how much GLM is owned|
|Tasks||Information of how much work your provider has done|
$ golemsp status ┌─────────────────────────┬──────────────────────────────────────────────┬─────────────────────────────┐ │ Status │ Wallet │ Tasks │ │ │ 0x2a14f8ae0272bd4c38ed1b40c66e88ed719dab69 │ │ │ Service is running │ │ last 1h processed 0 │ │ Version 0.12.2 │ network mainnet │ last 1h in progress 0 │ │ Commit 37060503 │ amount (total) 0 GLM │ total processed 509 │ │ Date 2023-06-06 │ (on-chain) 0 GLM │ (including failures) │ │ Build 296 │ (polygon) 0 GLM │ │ │ │ (zksync) 0 GLM │ │ │ Node Name lato │ │ │ │ Subnet public │ pending 0 GLM (0) │ │ │ VM valid │ issued 0 GLM (0) │ │ └─────────────────────────┴──────────────────────────────────────────────┴─────────────────────────────┘
How to keep the provider running when closing the terminal
Screen is a utility that lets you run commands or programs in the background of your terminal. It's like having a separate workspace that keeps going even if you close the terminal window. This is handy for keeping
golemsp run active at all times.
Why Screen? Normally, if you close the terminal, any running commands stop. With Screen, your
golemsp run command will keep on working in its own space, uninterrupted, no matter if you log out or lose connection.
To install Screen on your system, use the package manager:
sudo apt-get install screen
Starting golemsp in Screen
- Open your terminal.
screen -S providerto begin a new named session
- Start the Golem provider:Your Golem provider is now running within a Screen session.
Detaching from Screen
To detach and leave
golemsp run running in the background:
Ctrl-A followed by
Attaching to Screen
To reattach to the session:
- Open a terminal.
screen -r providerand press Enter.
- Reattach to your Screen session as above.
golemsp runby pressing
- Exit Screen by typing
The Yagna service utilizes UDP protocol on port 11500 to facilitate communication. While the Golem Network can relay data through nodes without direct port forwarding, configuring your node to have a public IP address significantly strengthens the network's resilience and stability. Nodes with a public IP can provide better performance and are generally more desirable to Requestors.
Although not mandatory, setting up port forwarding is highly encouraged as it contributes to a more robust network. To do this, you'll need to manually open UDP port 11500 on your router.
For detailed instructions tailored to your router model, visit PortForward.com
To verify if port forwarding is correctly configured, check CanYouSeeMe.org. Should you encounter any difficulties, contacting your Internet Service Provider (ISP) for assistance with your router's settings may be necessary.
Was this helpful?