############### install ollama ###############
curl -fsSL https://ollama.com/install.sh | sh
sudo mkdir -p /etc/systemd/system/ollama.service.d/
printf '[Service]\nEnvironment="OLLAMA_HOST=0.0.0.0:11434"\n' | sudo tee /etc/systemd/system/ollama.service.d/override.conf

############### restart services ###############
sudo systemctl daemon-reload
sudo systemctl restart ollama
sudo systemctl enable ollama
sleep 3
sudo systemctl status ollama

############### ollama pull model ###############
ollama pull deepseek-r1:8b
ollama list
ollama status

############### open ollama port ###############
sudo firewall-cmd --permanent --add-port=11434/tcp
#success
sudo firewall-cmd --reload
#success
sudo firewall-cmd --list-all
