We are running CLI on the server. First, let's go to the site and get the keys in the public key and private key sections shown in the image and save them somewhere. We will use them in the installation
Visit: https://node.hyper.space/
curl https://download.hyper.space/api/install | bash
source ~/.bashrc
aios-cli version
sudo nano /etc/systemd/system/aios.service
[Unit]
Description=aiOS CLI Service
After=network.target
[Service]
ExecStart=/root/.aios/aios-cli start
Restart=always
RestartSec=5
User=root
WorkingDirectory=/root
Environment=PATH=/usr/local/bin:/usr/bin:/bin:/root/.aios
[Install]
WantedBy=multi-user.target
sudo cp /root/.aios/aios-cli /usr/local/bin/
sudo chmod +x /usr/local/bin/aios-cli
sudo systemctl daemon-reload
sudo systemctl start aios.service
sudo systemctl enable aios.service
sudo systemctl status aios.service
#The output should be like this
Define the Wallet Key (We write the Private Key we got from the site. The quotation marks remain. The key in the 2nd photo I showed above.)
echo "PRİVATE KEY" > my-key.base58
aios-cli hive import-keys ./my-key.base58
aios-cli hive login
aios-cli hive whoami
#The output will show the publickey and private key
aios-cli hive select-tier 5
aios-cli models add hf:TheBloke/phi-2-GGUF:phi-2.Q4_K_M.gguf
Connect to Hive Network (wait until the command responds and moves to the directory. This is also valid for the following commands)
aios-cli hive connect
aios-cli hive points
!!!!! If you get an error with model registration. download the model to ''cd /root/.aios'' directory... apply hive disconnect and connect commands.
Check the logs to verify that the service is running properly and communicating with the Hive network:
sudo journalctl -u aios.service -f
aios-cli hive disconnect
aios-cli hive connect