Monday, April 27, 2026

[LLM] llmster

 Switch to a working folder:

# cd /usr/local/sbin


Show what kernel my VPC owns:

# uname -a

Linux demonalex-VirtualBox 7.0.0-14-generic #14-Ubuntu SMP PREEMPT_DYNAMIC Mon Apr 13 11:09:53 UTC 2026 x86_64 GNU/Linux


Install llmster:

# curl -fsSL https://lmstudio.ai/install.sh | bash


Add the following into /etc/profile:

export PATH="/root/.lmstudio/bin:$PATH"


Open a new terminal and execute the following to see the model list:

# lms get

Press Ctrl+C to end the showing.


Download the model:

# lms get google/gemma-4-e2b


Check if the model has already been downloaded:

# lms ls


Have an interactive chatbot:

# lms chat

Type "/exit" can exit the chatbot conversation.


Tuesday, April 21, 2026

[AI][ML][LLM]Run Llama 3B through Docker Model

 Install necessary plugin:

# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

# echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

# apt-get update

# apt-get install docker-model-plugin


Pull:

# docker model pull ai/llama3.2


Run in Interactive mode:

# docker model run ai/llama3.2


Exit Interactive mode:

> /bye


Run in Single-prompt mode:

# docker model run ai/llama3.2 "Explain how Docker containers work in one sentence."



-----Failed to carry out from here:

Enable OpenAI mode:

# docker desktop enable model-runner --tcp 12434



Test OpenAI:

# curl http://localhost:12434/engines/v1/models



Remotely use through OpenAI:

# curl http://localhost:12434/engines/v1/chat/completions \

  -H "Content-Type: application/json" \

  -d '{

    "model": "ai/llama3.2",

    "messages": [{"role": "user", "content": "Hello!"}]

  }'


Monday, April 13, 2026

[Windows][Sniffer] Microsoft Pktmon command-based sniffer

#Add filter:

pktmon filter add MyFilter -i 192.168.215.11

#OR

pktmon filter add MyFilter -i 192.168.1.100 -p 443

pktmon filter add MyFilter -i 192.168.1.100 -p 443 -t tcp



#Start:

pktmon start --capture --log-mode real-time



#Stop:

pktmon stop



#Remove filter:

pktmon filter remove