Hey farmers,
Some of you asked for simpler ways to set the Farmerbot. With this in mind, we present here a script to write the .env and nodes.md files.
This is an ongoing work. Please share your ideas and feedback if you have any.
All the steps are on this link: https://github.com/Mik-TF/farmerbot-script
You should double-check the files once the script is done.
Let us know if you have any questions.
Note: This isn’t an official script from Threefold. It might become an official one later. Who knows?
Steps to Create the Files
- Create a folder to store the script and the files
-
cd ~
-
mkdir -p farmerbot_script && cd "$_" || exit
-
- Download the script
- Bash version
-
wget -O farmerbot_script.sh https://raw.githubusercontent.com/Mik-TF/farmerbot-script/main/farmerbot_script.sh
-
- Python version
-
wget -O farmerbot_script.py https://raw.githubusercontent.com/Mik-TF/farmerbot-script/main/farmerbot_script.py
-
- Bash version
- Set the permissions to run the script
- Bash version
-
chmod +x farmerbot_script.sh
-
- Python version
-
chmod +x farmerbot_script.py
-
- Bash version
- Run the script
- Bash version
-
./farmerbot_script.sh
-
- Python version
-
python farmerbot_script.py
-
- Bash version
- Enter the values asked
- The .env and config.md files are saved in the folder /farmerbot_script/farmerbot_files
Steps to See the Content of the Files
- Go to the newly created folder
-
cd farmerbot_files
-
- See the content of the file
config.md
-
cat config.md
-
- See the content of the file
.env
-
cat .env
-