DEV Community

Cover image for I Turned a Dusty 2014 Lenovo Into a Two-Brained Dev + Hacker Machine (and So Can You)
Ícaro Molinari
Ícaro Molinari

Posted on

I Turned a Dusty 2014 Lenovo Into a Two-Brained Dev + Hacker Machine (and So Can You)

It was dying in a drawer and I turned it into this:

ONE LAPTOP
  β”‚
  β”œβ”€β”€ 🐧 Fedora β†’ coding, Docker, daily driver
  └── πŸ›‘οΈ Kali   β†’ pentest, security labs

Enter fullscreen mode Exit fullscreen mode

Here's the trip: what I did, what broke, what I'd do differently.

Split-screen illustration: a blue Fedora coding setup on the left facing a red Kali Linux hacking setup on the right, the two computers merging in the middle into one login screen showing the Fedora and Kali logos

Why bother?

  • Full hardware access (no VM slowdown)
  • Free β€” no new hardware needed
  • Old laptops deserve a second life

The plan

SSD  β†’ Kali (small) + Fedora (big, main driver)
HDD  β†’ just files (/dados)
Enter fullscreen mode Exit fullscreen mode

Step 1 β†’ Install Kali, partition it manually

Guided partitioning eats the whole disk. Don't use it. Go manual:

SSD
 β”œβ”€β”€ EFI   β†’ 512 MB  β†’ /boot/efi
 └── ext4  β†’ rest     β†’ /

HDD
 └── ext4  β†’ all      β†’ /dados
Enter fullscreen mode Exit fullscreen mode

Rules that saved me:

  • Pick disks by model, never by name (sda can change)
  • Check "Use as:" on every partition before moving on
  • Read the final "write to disk?" screen. Every word.

Step 2 β†’ Black screen on first boot

Scary. Almost always one simple fix:

Boot Mode: Legacy Support ❌
      ↓
Boot Mode: UEFI Only      βœ…
Enter fullscreen mode Exit fullscreen mode

Still black? Add nomodeset to the boot line and try again.

Step 3 β†’ Check before you touch anything

lsblk -f
sudo fdisk -l
df -hT
Enter fullscreen mode Exit fullscreen mode

My Kali partition:

Claimed: 447 GB
Used:    18 GB  (5%)
Enter fullscreen mode Exit fullscreen mode

Huge safe gap β†’ easy to shrink, zero risk to files.

Step 4 β†’ Install Fedora next to Kali (no wipe)

In the installer:

"Use entire disk"              ❌ wipes everything
"Share disk with other OS"     βœ… this one
Enter fullscreen mode Exit fullscreen mode

It offers "Reclaim space" β€” shrinks Kali live, no extra tools needed.

BEFORE                  AFTER
Kali: 480 GB      β†’     Kali:   100 GB
                         Fedora: 380 GB (encrypted, new)
Enter fullscreen mode Exit fullscreen mode

Confirm screen, hit install, done in ~10 min.

Step 5 β†’ "bad shim signature" β€” Kali won't boot anymore

Fedora's bootloader β†’ trusted βœ…
Kali's kernel       β†’ not trusted ❌
      ↓
Secure Boot blocks it
Enter fullscreen mode Exit fullscreen mode

Fix: turn off Secure Boot in BIOS (Security tab). Fedora doesn't care. Kali boots again.

Step 6 β†’ Clean up the GRUB mess

Two distros + old kernels + recovery modes = 8 menu entries. Fix it in 2 moves:

1. Drop old kernels:

# Fedora
sudo dnf remove --oldinstallonly --setopt installonly_limit=2 -y

# Kali (check exact name first!)
dpkg --list | grep linux-image
sudo apt purge -y linux-image-OLD-VERSION+kali-amd64
sudo apt autoremove -y
sudo update-grub
Enter fullscreen mode Exit fullscreen mode

2. Kill recovery-mode duplicates:

echo 'GRUB_DISABLE_RECOVERY="true"' | sudo tee -a /etc/default/grub
sudo update-grub
Enter fullscreen mode Exit fullscreen mode
8 entries β†’ 4 entries
Enter fullscreen mode Exit fullscreen mode

Step 7 β†’ Make it pretty + make it yours

Four GRUB boot menu theme previews stacked vertically - Tela, Stylish, Vimix, and WhiteSur - each showing a dark boot menu listing Arch Linux, Manjaro, Ubuntu, and Windows entries with a different colored background design

  • GRUB_TIMEOUT=-1 β†’ menu waits, no countdown race
  • grub2-themes β†’ real GRUB theme in 2 commands
  • hostnamectl set-hostname kali β†’ fixes your terminal prompt
  • Second keyboard layout, one toggle:
echo 'XKBLAYOUT="br,us"' | sudo tee -a /etc/default/keyboard
echo 'XKBOPTIONS="grp:alt_shift_toggle"' | sudo tee -a /etc/default/keyboard
sudo dpkg-reconfigure -f noninteractive keyboard-configuration
Enter fullscreen mode Exit fullscreen mode

What I'd do differently

  • Check Secure Boot before starting, not after a scary error
  • Always lsblk -f first. I got this one right β€” kept it that way
  • Pick disks by model, never by name
  • Measure before you shrink
  • Read every confirm screen. Every time.

Got an old laptop doing nothing? This is a weekend project, not a wizard-level one. Go dig it out.

Top comments (0)