📒 

Debian is a popular, stable, and versatile Linux distribution widely used for servers and desktops. Installing and configuring Debian is straightforward, and this guide will take you through the process step by step.

1. Prerequisites

Before you begin the installation, ensure you have the following:

  • Debian ISO File: Download the latest Debian ISO image from the Debian website.
  • Bootable USB or DVD: Create a bootable USB drive or burn the ISO to a DVD.
  • Computer or Virtual Machine: A physical computer or a virtual machine (e.g., VirtualBox, VMware) to install Debian on.

2. Booting from the Installation Media

Step 1: Insert Installation Media

  1. Insert the bootable USB drive or DVD into your computer.
  2. Restart your computer and enter the BIOS/UEFI setup (usually by pressing F2, F10, or DEL during boot).

Step 2: Change Boot Order

  1. Set the boot order to prioritize the USB drive or DVD.
  2. Save the changes and exit the BIOS/UEFI setup.

3. Starting the Installation

Step 1: Select Installation Mode

  1. Upon booting from the installation media, you’ll see the Debian boot menu.
  2. Choose the installation mode:
    • Graphical Install: For an easier, more visual installation.
    • Install: For a text-based installation.

Step 2: Choose Language and Location

  1. Select your preferred language.
  2. Choose your location (country).

4. Configuring the Installation

Step 1: Set Up the Keyboard

  1. Choose the keyboard layout that matches your keyboard.
  2. Confirm your selection.

Step 2: Configure Network

  1. The installer will attempt to configure the network automatically.
  2. If successful, you will see your hostname; if not, you can enter it manually.

Step 3: Set Up Users and Passwords

  1. Root Password: Set a password for the root user (administrator).
  2. Create a User: Set up a regular user account by entering a username and password.

5. Partitioning the Disk

Step 1: Select Partitioning Method

  1. Choose a partitioning method:
    • Guided Partitioning: Automatically partition the entire disk.
    • Manual Partitioning: For advanced users to create custom partitions.

Step 2: Configure Partitions

For guided partitioning:

  1. Select the disk to partition.
  2. Choose how to use the disk (e.g., use the entire disk).
  3. Confirm the changes to partition the disk.

For manual partitioning:

  1. Create necessary partitions (e.g., root /, swap, home /home).
  2. Specify the mount points and filesystem types (e.g., ext4).

6. Installing the Base System

Step 1: Install Base System

  1. The installer will now copy files to the disk and install the base system.
  2. This process may take some time.

7. Configuring Package Manager

Step 1: Set Up APT Configuration

  1. Choose whether to use a network mirror for package updates and additional software.
  2. If prompted, select the appropriate mirror for your location.

8. Installing Additional Software

Step 1: Select Software to Install

  1. Choose to install additional software such as:
    • Debian Desktop Environment: Select a desktop environment (e.g., GNOME, KDE, XFCE).
    • Web Server: Install if you plan to run a web server.
    • SSH Server: Useful for remote access.

9. Installing the Bootloader

Step 1: Install GRUB

  1. Choose to install the GRUB bootloader to the master boot record.
  2. Confirm the installation.

10. Completing the Installation

Step 1: Finish Installation

  1. Once the installation is complete, remove the installation media.
  2. Reboot the system when prompted.

11. Logging Into Debian

After rebooting, you’ll be greeted with the login screen:

  1. Enter your username and password to log in.
  2. Explore your new Debian system!

12. Conclusion

Installing and configuring the Debian operating system is a straightforward process that can be completed with the help of this guide. Debian is known for its stability and flexibility, making it an excellent choice for both servers and desktops. After installation, remember to keep your system updated and explore the vast repositories of software available for Debian.