🚀 Running Debian on a system with 1 CPU, 1 GB of RAM, and 80 GB of storage is entirely possible, but to get the most out of these limited resources, we need a performance-optimized setup. This guide will walk you through a minimal installation of Debian's latest version, focusing on removing unnecessary components and fine-tuning system settings. 🎯
🎉 First, head to the official Debian website and download the "netinst" ISO for the latest stable release. The netinst image is perfect for minimal installations because it downloads only the necessary packages during setup. 🌐
🔥 Burn the ISO to a USB stick using a tool like Rufus (Windows) or dd
(Linux). For example, on Linux, you can use:
sudo dd if=debian-netinst.iso of=/dev/sdX bs=4M status=progress
Replace /dev/sdX
with the correct device name of your USB drive. Be cautious, as this command will overwrite the target device. ⚠️
🎯 Boot From the USB Stick: Insert the USB stick into the machine, power it on, and boot into the installation media (often requires pressing a key like F12 or Esc during startup).
🌟 Step-by-Step Installation:
💾 Partitioning: For simplicity:
🔧 Package Selection:
📈 Once Debian is installed, reboot into the system and log in as root or your user.
💡 Reduce the system’s dependency on swap to improve responsiveness:
echo "vm.swappiness=10" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
This setting ensures RAM is preferred over swap space. 🧠
🔒 1. Update the System: Always ensure your system is up-to-date:
sudo apt-get update && sudo apt-get upgrade
Keeping your system updated protects it from vulnerabilities. ⚡
🔐 2. Firewall Configuration: Install and configure a basic firewall with UFW:
sudo apt-get install ufw
sudo ufw allow ssh
sudo ufw enable
A firewall ensures better security for your server. 🛡️
🌟 With these steps, you've installed Debian with a minimal footprint, optimized for performance. This setup is perfect for resource-constrained systems, ensuring every bit of CPU, RAM, and storage is used efficiently. If you need additional tools, consider only installing packages as needed to maintain a clean and fast system. 🎉