#!/bin/bash
# - bof - #



<<'comment'
# - Configured - #


rm -rf ~/.bashrc;
vim ~/.bashrc;

rm -rf ~/.zshrc;
vim ~/.zshrc;


ssh-keygen -R 192.168.1.1

# - On client - #
cd ~/.ssh;
ssh-keygen -t rsa;

cat ~/.ssh/id_rsa.pub;

# - On server - #
vim ~/.ssh/authorized_keys;

sudo apt install curl git htop inxi net-tools ntp neovim screenfetch tree -y;

comment



# :a
# -  - #
# - Install Ollama - #
LLM (Large Language Model)
www.ollama.com/download

sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y;
sudo apt install zstd -y;
curl -fsSL https://ollama.com/install.sh | sh



# :b
# -  - #
# - Install Ollama models - #

# :b.1
# -  - #
# - Install Ollama models - #
https://www.ollama.com/search

# :b.2
# -  - #
# - Search for llama3.1 - #
https://www.ollama.com/library/llama3.1

llama3.1:8b (Latest)   4.9Gb
llama3.1:70b          43Gb
llama3.1:405b        243Gb

# :b.3
# -  - #
# - Install llama3.1:8b - #
ollama pull llama3.1:8b;

# :b.4
# -  - #
# - Run llama3.1:8b model - #
ollama run llama3.1:8b;
ollama run llama3.1:70b;
ollama run llama3.1:405b;

# :b.5
# -  - #
# - Close llama3.1:8b model - #
/bye



# :c
# -  - #
# - Install Docker - #

# :c.1
# -  - #
# - Setup Docker repository - #
https://docs.docker.com/engine/install/ubuntu/

# Add Docker's official GPG key:
sudo apt update;
sudo apt install ca-certificates curl;
sudo install -m 0755 -d /etc/apt/keyrings;
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc;
sudo chmod a+r /etc/apt/keyrings/docker.asc;

# Add the repository to Apt sources:
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF;

# :c.2
# -  - #
# - Install Docker packages (Latest version) - #
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin;

# :c.3
# -  - #
# - Start Docker services - #
sudo systemctl start --now docker;
sudo systemctl status docker;

# :c.4
# -  - #
# - Test Docker - #
sudo docker run hello-world;



# :d
# -  - #
# - Install WebUI - #
https://openwebui.com/

Click on "Get Open WebUI" button

# :d.1
# -  - #
# - Example Docker Command - #
https://github.com/open-webui/open-webui
sudo docker run -d --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main

# :d.2
# -  - #
# - Go to Firefox - #
localhost:8080
192.168.1.225:8080





















# :a
# -  - #
# - OpenClaw - #

# :a.1
# -  - #
# - Documentation - #
https://openclaw.ai/
https://www.youtube.com/watch?v=T-HZHO_PQPY

# :a.2
# -  - #
# - Software installation - #
ssh uOClaw;
ssh 192.168.1.195;

# :a.2.1
# -  - #

# - Copy the link from - #
https://openclaw.ai/

# - Terminal - Installation - #
curl -fsSL https://openclaw.ai/install.sh | bash



# :a.2.2
# -  - #
# - Configuration - #

I understand
QuickStart

Model/auth provider
  DeepSeek
  Enter DeepSeek API key
    sk-e1af7***********************eda9
  Default model
    deepseek/deepseek-reasoner (DeepSeek Reasoner . ctx 128k . reasoning)
  Select channer (QuickStart)
    Telegram
  Telegram token
    AAGz****OuvFE
  Search provider
    Brave Search
  Brave Search API key
    Enter
  Configure skill now?
    No
  Enable hooks
    boot-md 
    bootstrap-extra-files
    command-logger
    session-memory

  # -  - #
  # - Get brave API keys - #
  https://brave.com/search/api/
  https://api-dashboard.search.brave.com/login





  OpenAI (Codex OAuth + API key)

  (Use AI subscription you already paid for)
  OpenAI auth method
    OpenAI Codex (ChatGPT OAuth)

    Open this URL in your LOCAL browser:
    https://...
    copy URL & paste it into your terminal






# :a.3
# -  - #
# - Security - #
ssh -N -L 18789:127.0.0.1:18789 root@192.168.1.195

sudo ufw allow ssh && sudo ufw enable;












 

# - eof - #