DEV Community

Cover image for DAY 1: Set Up Python, Git, Docker, VS Code & Configure Git with GitHub SSH on Kali Linux
Zabby
Zabby

Posted on • Edited on

DAY 1: Set Up Python, Git, Docker, VS Code & Configure Git with GitHub SSH on Kali Linux

1. Install Python 3.12

Kali usually ships with Python preinstalled, but I have verified using the following command

python3.12 --version
Enter fullscreen mode Exit fullscreen mode

2. Install Git 2.47

Here’s how to compile Git 2.47:

Installed dependencies:

sudo apt install -y make libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip
Enter fullscreen mode Exit fullscreen mode

Download and build Git:

cd /usr/src
sudo curl -O https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.47.2.tar.gz
sudo tar -xvzf git-2.47.2.tar.gz
cd git-2.47.2
sudo make prefix=/usr/local all
sudo make prefix=/usr/local install
Enter fullscreen mode Exit fullscreen mode

Verified Installation using:

git --version
Enter fullscreen mode Exit fullscreen mode

3. Install Visual Studio Code

VS Code offers a .deb package for Debian-based distros like Kali so i downloaded it from the official website using the link "https://code.visualstudio.com/download".

Image description

Installed it using the command"

cd Downloads
sudo apt install ./code_1.101.1-1750254731_amd64.deb
Enter fullscreen mode Exit fullscreen mode

& Lanched it using

code
Enter fullscreen mode Exit fullscreen mode

then added a few extensions to better suit it for my python development.

4. Install Docker on Kali Linux

Kali already has a package named docker, but it’s not the container engine. You’ll want to install docker.io instead:

sudo apt install -y docker.io
Enter fullscreen mode Exit fullscreen mode

Enable and start Docker

sudo systemctl enable docker --now
Enter fullscreen mode Exit fullscreen mode

Then I Tested Installation:

docker --version
Enter fullscreen mode Exit fullscreen mode

Image description

5. Configure Git with GitHub SSH

Generate Your SSH Key

ssh-keygen -t ed25519 -C "email"
Enter fullscreen mode Exit fullscreen mode
  • Replace "email" with the email linked to your GitHub account.
  • When prompted, just press Enter to accept the default file location.
  • You can add a passphrase for extra security.

Add the Key to the SSH Agent & your private key

eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
Enter fullscreen mode Exit fullscreen mode

Add Your Public Key to GitHub

cat ~/.ssh/id_ed25519.pub
Enter fullscreen mode Exit fullscreen mode
  • Copy the entire output.
  • Paste your key and save.

Test your Setup

ssh -T git@github.com
Enter fullscreen mode Exit fullscreen mode

Configure Git Settings

git config --global user.name "Your Full Name"
git config --global user.email "your_email@example.com"
Enter fullscreen mode Exit fullscreen mode

At the end you should have installed

  1. Python.
  2. Git( & Configured it with GitHub SSH).
  3. Docker Engine.
  4. VS Code. Image description

Enjoy!!

Top comments (0)