# Kali & LLM: Completely local with Ollama & 5ire

DevFeed: [Kali & LLM: Completely local with Ollama & 5ire](<https://devfeed.tech/articles/kali-llm-completely-local-with-ollama-5ire-47147.md>)

Original publisher: [Read original article](<https://www.kali.org/blog/kali-llm-ollama-5ire/>)

Published: 2026-03-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kali Linux](<https://devfeed.tech/sources/kali-linux.md>)

Topics: [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Ollama](<https://devfeed.tech/topics/ollama.md>), [GPU](<https://devfeed.tech/topics/gpu.md>), [Hardware](<https://devfeed.tech/topics/hardware.md>), [CUDA](<https://devfeed.tech/topics/cuda.md>), [Model Context Protocol](<https://devfeed.tech/topics/model-context-protocol.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Kernel](<https://devfeed.tech/topics/kernel.md>), [apt](<https://devfeed.tech/topics/apt.md>)

Tags: [advanced](<https://devfeed.tech/tags/advanced.md>), [apt](<https://devfeed.tech/tags/apt.md>), [cuda](<https://devfeed.tech/tags/cuda.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [kali](<https://devfeed.tech/tags/kali.md>), [kalilinux](<https://devfeed.tech/tags/kalilinux.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [llm](<https://devfeed.tech/tags/llm.md>), [local](<https://devfeed.tech/tags/local.md>), [local-llms](<https://devfeed.tech/tags/local-llms.md>), [ollama](<https://devfeed.tech/tags/ollama.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [penetration](<https://devfeed.tech/tags/penetration.md>), [penetration-testing](<https://devfeed.tech/tags/penetration-testing.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

A tutorial for running an LLM-driven Kali Linux setup entirely locally and offline using a GeForce GTX 1060, NVIDIA drivers, Ollama, 5ire, and an MCP Kali server. It covers hardware and driver checks, Ollama installation, model selection, testing, and MCP server setup.

## Source excerpt

We are extending our LLM-driven Kali series, where natural language replaces manual command input. This time however, we are doing everything locally and offline. We are using our own hardware and not relying on any 3rd party services/SaaS. Note: Local LLMs are hardware-hungry. The cost factor here is buying hardware and the running costs. If you have anything that you can re-use, great! GPU (Nvidia) Let's first find out what our hardware is: $ lspci | grep -i vga 07:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1) $ NVIDIA GeForce GTX 1060 (6 GB). Drivers We will check that our hardware is ready by making sure "non-free" proprietary drivers are installed. The non-free option allows for CUDA support which the open-source, nouveau, drivers lack. At the same time, make sure our Kernel and headers are at the latest version too: $ sudo apt update [...] $ $ sudo apt install -y linux-image-$(dpkg --print-architecture) linux-headers-$(dpkg --print-architecture) nvidia-driver nvidia-smi [...] │ Conflicting nouveau kernel module loaded │ │ The free nouveau kernel module is currently loaded and conflicts with the non-free nvidia kernel module. │ │ The easiest way to fix this is to reboot the machine once the installation has finished. | [...] $ $ sudo reboot Using a different GPU manufacture, such as AMD or Intel etc, is out of scope for this guide. Testing Once the box is back up and we are logged in again, we can do a quick check with nvidia-smi: $ lspci -s 07:00.0 -v | grep Kernel Kernel driver in use: nvidia Kernel modules: nvidia $ $ lsmod | grep '^nouveau' $ $ lsmod | grep '^nvidia' nvidia_drm 126976 2 nvidia_modeset 1605632 3 nvidia_drm nvidia 60710912 29 nvidia_drm,nvidia_modeset $ $ nvidia-smi Tue Jan 27 14:33:31 2026 +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 550.163.01 Driver Version: 550.163.01 CUDA Version: 12.4 | |-----------------------------------------+------