January 27, 2025
Gaianet. Гайд на базовую установку ноды и как кратно увеличить получаемые поинты, если нода уже установлена
DropPredator - дропы, ноды, анекдоты.
Гайд. Как начать получать в разы больше очков, если нода уже установлена
screen -ls
- Находим сессию, где работает скрипт на автоматическое общение с AI, и вписываем название после точки.
screen -r НАЗВАНИЕСЕССИИ
nano ~/random_chat_with_faker.py
import requests
import random
import logging
import time
from faker import Faker
from datetime import datetime
node_url = "https://АДРЕСКОШЕЛЬКА.gaia.domains/v1/chat/completions"
faker = Faker()
headers = {
"accept": "application/json",
"Content-Type": "application/json"
}
logging.basicConfig(filename='chat_log.txt', level=logging.INFO, format='%(asctime)s - %(message)s')
def log_message(node, message):
logging.info(f"{node}: {message}")
def send_message(node_url, message):
try:
response = requests.post(node_url, json=message, headers=headers)
response.raise_for_status()
return response.json()
except requests.exceptions.RequestException as e:
print(f"Failed to get response from API: {e}")
return None
def extract_reply(response):
if response and 'choices' in response:
return response['choices'][0]['message']['content']
return ""
while True:
random_question = faker.sentence(nb_words=10)
message = {
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": random_question}
]
}
question_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
response = send_message(node_url, message)
reply = extract_reply(response)
reply_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
log_message("Node replied", f"Q ({question_time}): {random_question} A ({reply_time}): {reply}")
print(f"Q ({question_time}): {random_question}\nA ({reply_time}): {reply}")
delay = random.randint(1, 3)
time.sleep(delay)python3 random_chat_with_faker.py
Поздравляю, вы альфа и теперь фармите в разы больше поинтов, чем незнающее об этой фишке большинство !!!
Установка первой ноды
wget https://raw.githubusercontent.com/predator-bites/Gaianet-mine-fake-rep/main/gaia_install_1.sh && wget https://raw.githubusercontent.com/predator-bites/Gaianet-mine-fake-rep/main/gaia_install_2.sh && sudo chmod +x gaia_install_1.sh gaia_install_2.sh && ./gaia_install_1.sh && source ~/.bashrc && ./gaia_install_2.sh
Установка второй ноды
sudo apt update -y sudo apt-get update mkdir gaianet-2
curl -sSfL 'https://github.com/GaiaNet-AI/gaianet-node/releases/latest/download/install.sh' | bash -s -- --base $HOME/gaianet-2
source ~/.bashrc
gaianet init --config https://raw.gaianet.ai/qwen2-0.5b-instruct/config.json --base $HOME/gaianet-2
gaianet info --base $HOME/gaianet-2
nano /root/gaianet-2/config.json
Сохраняем изменения CNTR + X, Y.
sudo nano /etc/systemd/system/gaianet-2.service
[Unit] Description=Gaianet Node Service After=network.target [Service] Type=forking RemainAfterExit=true ExecStart=/root/gaianet-2/bin/gaianet start --base $HOME/gaianet-2 ExecStop=/root/gaianet-2/bin/gaianet stop --base $HOME/gaianet-2 ExecStopPost=/bin/sleep 20 Restart=always RestartSec=5 User=root [Install] WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl restart gaianet-2.service
sudo systemctl status gaianet-2.service
gaianet stop --base $HOME/gaianet-2
sudo systemctl status gaianet-2.service
Привязываем ноду к кошельку
- Переходим на сайт и коннектим кошелек - ТЫК.
- Далее двигаемся по стрелкам на фото.
Устанавливаем скрипт на автоматическое общение с Gaianet AI
sudo apt update -y sudo apt update
sudo apt install python3-pip -y
sudo apt install nano -y
sudo apt install screen -y
pip install requests
pip install faker
nano ~/random_chat_with_faker_2.py
В строке node_url вместо АДРЕСКОШЕЛЬКА вставляем ваш Node id.
import requests
import random
import logging
import time
from faker import Faker
from datetime import datetime
node_url = "https://АДРЕСКОШЕЛЬКА.gaia.domains/v1/chat/completions"
faker = Faker()
headers = {
"accept": "application/json",
"Content-Type": "application/json"
}
logging.basicConfig(filename='chat_log.txt', level=logging.INFO, format='%(asctime)s - %(message)s')
def log_message(node, message):
logging.info(f"{node}: {message}")
def send_message(node_url, message):
try:
response = requests.post(node_url, json=message, headers=headers)
response.raise_for_status()
return response.json()
except requests.exceptions.RequestException as e:
print(f"Failed to get response from API: {e}")
return None
def extract_reply(response):
if response and 'choices' in response:
return response['choices'][0]['message']['content']
return ""
while True:
random_question = faker.sentence(nb_words=10)
message = {
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": random_question}
]
}
question_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
response = send_message(node_url, message)
reply = extract_reply(response)
reply_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
log_message("Node replied", f"Q ({question_time}): {random_question} A ({reply_time}): {reply}")
print(f"Q ({question_time}): {random_question}\nA ({reply_time}): {reply}")
delay = random.randint(0, 1)
time.sleep(delay)
- Сохраняем и закрываем редактор: CTRL + X, потом Y и Enter.
- Далее создаем новую сессию с помощью screen:
screen -S faker_session_2
python3 random_chat_with_faker_2.py
Можете закрывать терминал, скрипт работает в фоновом режиме.
Установка завершена Мне будет мега приятно, если в знак благодарности, подпишитесь на мой тг канал - ТЫК
Полезные команды
screen -r faker_session_2
sudo systemctl status gaianet-2.service
journalctl -u gaianet-2.service -f