Situatie
Solutie
Before starting, make sure you have:
-
A computer or virtual machine
-
Stable internet connection (optional but recommended)
-
A USB stick (at least 4 GB) or DVD
-
Debian 12 ISO file (choose the appropriate architecture, e.g., amd64 for most systems)
-
A tool to write the ISO to USB/DVD:
-
Rufus (Windows)
-
balenaEtcher (Linux/macOS/Windows)
-
dd command (Linux/macOS)
-
Step 1: Create a Bootable Debian 12 USB/DVD
A. On Windows (Using Rufus)
-
Download and open Rufus
-
Insert your USB drive
-
Under “Device”, select the USB
-
Under “Boot selection”, click
SELECT
and choose the Debian ISO -
Leave other options at default (MBR/GPT based on your BIOS/UEFI)
-
Click
START
.
B. On Linux/macOS (Using Terminal)
Replace /dev/sdX
with your actual USB device (not a partition like /dev/sdX1
).
Step 2: Boot from the Installation Media
-
Reboot the computer
-
Enter BIOS/UEFI settings (usually F2, F10, DEL, or ESC)
-
Change boot order to prioritize USB/DVD
-
Save and exit. The Debian installer should start
Step 3: Install Debian 12
Choose Graphical install or Install (text-based).
A. Language, Location, and Keyboard
-
Select your language
-
Choose your location
-
Configure the keyboard layout.
B. Network Configuration
-
Set up via DHCP (auto) or enter IP manually (for static IP)
-
Choose hostname (e.g.,
debian-server
) and domain name (optional)
C. User Setup
-
Set root password (or leave blank to disable root login)
-
Create a user account (your normal user)
-
Choose a secure password.
D. Partitioning
Choose one:
-
Guided – use entire disk (for beginners):
-
Choose with or without LVM and encryption
-
Debian will auto-partition into root, swap, and home (optional)
-
-
Manual (for advanced users):
-
Create partitions:
-
/
(root): at least 10–20 GB -
/home
: rest of the space -
swap
: ~2 GB (or use a swap file later) -
/boot
: optional, ~512 MB -
EFI System Partition if using UEFI
-
-
E. Package Manager Configuration
-
Choose a mirror country and a nearby Debian archive mirror
-
If behind proxy, enter proxy info
-
Opt-in to
popularity-contest
(optional).
F. Software Selection
Choose:
-
Standard system utilities
-
SSH server (for remote access)
-
Graphical desktop environment (GNOME, KDE, XFCE, etc.)
Use Space to select/deselect.
G. Install GRUB Bootloader
-
Install to the primary drive (
/dev/sda
or equivalent). -
If dual-booting, ensure the bootloader doesn’t overwrite another OS’s boot entry.
Installation Complete
-
Remove installation media when prompted.
-
Reboot the system.
Step 4: Post-Installation Configuration
A. Log In
Use the user account you created.
Step 5: First-Time Setup
A. Update the System
B. Enable sudo (if not already set)
If you didn’t enable the root account and your user isn’t in the sudo
group:
Log out and back in for changes to take effect.
Step 6: Desktop Environment Setup (Optional)
If you didn’t install a DE, you can add one now:
Enable display manager if needed:
Step 7: Security Configuration
A. Enable UFW (Uncomplicated Firewall)
B. Fail2Ban (SSH brute force protection)
Step 8: Install Useful Tools
Optional GUI tools:
Step 9: Configure Network (Static IP, if needed)
Edit network interface:
Example for static IP:
Restart network:
Step 10: Optional – Set Up SSH Access
To access:
Leave A Comment?