Skip to main content

A Better way to Daily Drive Kali!

·312 words·2 mins·
CyberSecurity Linux Virtual-Machines Kali Containers
Table of Contents
Daily Driving Kali , Well Here is a Better Way - This article is part of a series.

Preamble
#

In my Previous Post about Daily Driving Kali without Daily Driving Kali, I explained how to use ssh and KVM to make a native shell like experience for your kali VM in linux. However, after immersing myself in the Linux community, I found a better solution: containerizing the Kali OS using distrobox so in this post i will explain how to set that up

Distrobox Installation & Setup
#

I will explain how to do it as of March 24, 2025, but there may have been updates since then so check the official docs you done ? ok, let’s begin

since i use fedora all my commands will be fedora based , if you use a different distro there maybe some differences so check the official docs

run this command to install it on your fedora machine

sudo dnf install distrobox

then let’s setup the distrobox
#

running this command will create a distrobox with the kali image

distrobox create -i kali-rolling:latest -n kali

if you are using an nvidia GPU and want to access it’s power use this command instead

distrobox create -i kali-rolling:latest -n kali --nvidia

and also after i did some research it appears you can skip the last step of installing use init-hooks but i haven’t tested it yet but in theory it should work

distrobox create -i kali-rolling:latest -n kali --init-hooks "apt update && apt -y install kali-linux-headless"

Enter thine Distrobox
#

distrobox enter kali

Install the Kali Packages
#

if you used the init-hooks command and it worked for you! this step is unnecessary

This command will update your repositories and install the latest headless metapackage

sudo apt update && sudo apt -y install kali-linux-headless

Congrats
#

Now you have a completely Headless kali install, with an added bonus where you can Interact with whatever GUI tool u want directly from your host OS

Abdulaziz Askar
Author
Abdulaziz Askar
Hi, I’m Abdulaziz! I’m a computer science student with a passion for cybersecurity and homelabbing. I spend my time experimenting with tools, breaking things(and sometimes fixing them), and sharing what I’ve learned along the way. When I’m not geeking out over tech, you’ll probably find me stuck in a CTF rabbit hole or questioning why I decided to ‘just try one more project.’ This blog is where I document the chaos and (hopefully) help others learn from it too
Daily Driving Kali , Well Here is a Better Way - This article is part of a series.
Share this article