Step-by-Step Guide to Installing Debian 12 with XFCE.

Advertisement

Installing Debian 12 (codenamed Bookworm) is an excellent choice for several reasons, especially if you're looking for a robust, secure, and flexible operating system.

Here are the main reasons to install Debian 12:

  1. Proven stability
    • Debian is renowned for its stability: Each version is rigorously tested before release, making it ideal for critical environments such as servers and workstations.
    • Debian 12 inherits this tradition with additional improvements and updates.
  1. Updated software
    • Latest packages: Debian 12 includes updated versions of software such as GNOME 43, KDE Plasma 5.27, and a Linux 6.1 LTS (long-term support) kernel.
    • Compatible with modern development, productivity, and entertainment tools.
  1. Security and long-term support
    • Debian has a team dedicated to quickly resolving vulnerabilities.
    • You'll receive security updates for years thanks to long-term support.
  1. Great versatility
    • Different uses:
    • Personal desk.
    • Servers.
    • IoT and embedded systems.
    • You can customize it to suit your needs, either by installing a complete graphical environment or a minimalist system.
  1. Community and documentation
    • Debian has an active global community that offers free support on forums, mailing lists, and chats.
    • Its official documentation is extensive and available in several languages, including Spanish.
  1. 100% free (but flexible) software
    • Strictly complies with free software guidelines, but allows you to install non-free software (such as proprietary drivers) if needed.
  1. Graphical environment options and lightweight systems
    • You can choose between graphical environments such as:
    • GNOME (modern and complete).
    • KDE Plasma (customizable and powerful).
    • XFCE MATE and LXQt (lightweight for older hardware).
  1. Efficiency on older or modern hardware
    • Debian 12 is suitable for new hardware, but is also lightweight and runs very well on older computers.
  1. It's free and open source
    • You can download, use, and share it at no cost, with full access to the source code.

Why choose Debian 12 over other distributions?
• Extreme stability: More reliable than newer, more experimental distributions.
• A universal system: It can be used on servers, desktops, and embedded devices.
• Total control: You can customize every aspect of the system.

Now we will move on to documenting the installation of Debian Linux 12.x by creating an easy-to-understand summary guide.

Detail of the Debian Linux installer.

  1. Boot from USB or ISO
    • When booting from the USB, you will see a menu with options such as:
    Install: Installation in text mode.

Text mode installation

The Debian text-mode installation is a simple and lightweight way to install the operating system, designed for environments where a graphical interface is not needed or where the hardware does not support advanced graphics well.

Graphical Install: Graphical installation (recommended for new users).

The option Graphical Install The Debian Installer provides a user-friendly visual environment for installing the operating system, designed specifically for users who prefer a more intuitive experience compared to text mode. This method uses a window-based graphical interface that guides the user through the installation process more comfortably.

Advanced Options, Install with speech synthesis, etc.

In the Debian installation menu, the option Advanced Options (Advanced Options) offers additional settings for users who need to customize or adjust specific aspects of their installation. This menu is primarily designed for more experienced users or for cases where the standard installation isn't sufficient.

What can you find in “Advanced Options”?

  1. Expert Mode (Expert Install)
    • It offers detailed control over all installation steps, including advanced hardware configurations, partitioning, networking, and more.
    • Ideal for advanced users who want to customize all aspects of the installation.
  2. Rescue Mode
    • Allows you to repair an installed Debian system that won't boot or is experiencing problems.
    • It gives you access to tools to recover data, reinstall the boot loader (GRUB), or troubleshoot system errors.
  3. Automatic Mode (Automated Install)
    • Performs a preconfigured installation based on a custom configuration file.
    • Useful for deploying Debian to multiple computers with the same parameters.
  4. Safe Mode Installation (Graphical Expert Install)
    • Similar to expert mode, but with a graphical interface for greater ease.
  5. Loading additional drivers (Load Installer Components)
    • Allows you to add additional modules to the installer, such as specific hardware drivers.
  6. Installation with UEFI or Legacy compatibility
    • Settings for installations on systems with traditional BIOS or UEFI.
  7. Custom kernel configurations
    • Options to load specific kernel versions or advanced parameters.

When to use Advanced Options?

  • If you have problems with the standard installation (for example, hardware not detected correctly).
  • When you need to configure complex networks, advanced partitioning, or install Debian on unusual hardware.
  • If you want to rescue or repair an already installed system.
  • To perform automated installations or with specific configurations for business environments.

Accessible Dark Contrast Installer Menu

The Accessible Dark Contrast Installer Menu is an option in the Debian installer designed to improve visual accessibility by providing a high-contrast, dark-toned color scheme. It is intended to make the menu easier to read and navigate for people with low vision or sensitivity to bright light.

Install with Speech Synthesis

The option «Install with Speech Synthesis» (Install with Speech Synthesis) in the Debian installer is designed to make the installation process easier for people with visual impairments or users who prefer hearing assistance. This feature uses a speech synthesizer to narrate the options and guide the user through the installation.

GRUB Command Line

He GRUB (GRand Unified Bootloader) is the boot loader used by Debian and many other Linux distributions. If your system boots to the GRUB command line instead of the usual menu, it may be due to a problem with the bootloader configuration or system files.

What is the GRUB Command Line?

The GRUB command line allows you to perform advanced tasks such as:

  1. Manually start an operating system.
  2. Repair boot configurations.
  3. Test kernel parameters.

E: Edit Selection

The option «E» in the Debian installer boot menu allows you to edit kernel boot options before starting the installer. This is especially useful for configuring additional kernel parameters or troubleshooting specific hardware issues.

When to Use Option “E”?

  1. Configure Kernel Options:
    • Add custom parameters, such as disabling problematic drivers or adjusting specific hardware settings.
  2. Troubleshooting Boot Problems:
    • For example, if the system does not properly recognize a network device or experiences hardware errors upon startup.
  3. Configure Advanced Options:
    • Enable modes such as “rescue” or debugging settings.

We begin the installation of Debian Linux on our computer:

Select Graphical Install.

1

Language Selection

A screen will ask you to choose your preferred language. Example: Spanish.

Time Zone Settings

• Select your location to set the local time.

Keyboard Configuration

• Select your keyboard layout, such as “Spanish” or “Latin American” or “Portuguese” or “English.”

Network Hardware Detection

• The installer will search for network devices to connect to the Internet…
• If necessary, you can configure Wi-Fi by entering the key, or configure an Ethernet network or the network via your Android smartphone as a portable hotspot or USB tethering in case of problems with the network drivers.

Setting the System Name

• Enter a name for your computer (hostname), such as “debianlinux.”

Setting Up a Domain Name in Debian

The domain name is used to identify the network or subnet to which your system belongs, especially useful in server or local network configurations.

Username and Password Configuration for Debian Installation

During the Debian installation process, setting up a username and password is a crucial step to ensure system security and customization.

Steps to Configure Username and Password

  1. Root User Password (Optional):
    • If you decide to enable the user root (administrator), the installer will ask you to set a password for this user.
    • Enter a strong and easy-to-remember password. If you prefer not to enable root, you can leave this step empty and continue. The system will grant administrator permissions to the first user created with sudo.
  2. Create the Regular User:
    • The installer will prompt you to create a user for daily use of the system.
    • Details that will be asked of you:
      1. Full name:
        For example, "Javier Cachón Garrido."
      2. User name:
        Typically, the system will suggest one based on the full name, such as javier02. You can modify it if you wish.
      3. User password:
        Enter a secure password that will be used to log in. Make sure you remember it.
  3. Password Confirmation:
    • You will need to enter the password again to confirm that it is entered correctly.

Recommendations for a Secure Configuration

  • Password Length:
    Use passwords of at least 8 characters that include uppercase, lowercase, numbers, and symbols.
  • Administrative Users vs. Regular Users:
    • Use the user root only when strictly necessary for administrative tasks.
    • Perform daily work with the regular user, elevating permissions only when necessary by sudo.

Setting the Clock and Time Zone in Debian

Correct time and time zone settings are essential to ensure proper system operation, especially for tasks such as scheduling cron jobs, network synchronization, and logging.

Disk Partitioning in the Debian Installer

The Debian installer offers several disk partitioning options, depending on your needs and experience level. These options are presented during the installation, and I'll explain how to use them here.

• The installer offers several options:
• Guided: Recommended for beginners (you can use the entire disc).

Guided Partitioning in Debian

He guided partitioning It's an easy and recommended option during Debian installation for users who are inexperienced with partitions or prefer to have the installer automatically configure the disk. This method ensures that the partitions are optimally organized for a functional Debian system.

Guided Partitioning Options

When you select Guided Mode, the installer presents you with several options for partitioning your disk. The most common are:

  1. Use the entire disk
    • The installer erases all contents of the disk and configures it exclusively for Debian.
    • Ideal if you don't need to keep previous data or operating systems.
  2. Use the entire disk with a separate partition for /home
    • Similar to the previous option, but creates a separate partition for the directory /home.
    • Advantage: Facilitates updating or reinstalling the system without losing user data.
  3. Use the entire disk with separate partitions for /home, /var, and /tmp
    • Divide the disk into several partitions specific to each component:
      • /home: User files.
      • /var: Variable files such as logs.
      • /tmp: Temporary files.
    • Advantage: Improves organization and can protect the system in case of partition errors.
  4. Guided with LVM (Logical Volume Manager)
    • Use LVM to manage partitions flexibly.
    • Advantage: Allows easy resizing of partitions in the future.
  5. Guided with disk encryption
    • Protects data on disk using encryption.
    • Requires entering a password at system startup.

LVM Partitioning and LVM Encryption in Debian

LVM (Logical Volume Manager) allows you to manage partitions more flexibly, making it easier to resize, create, and delete logical volumes. If you also want to protect your data, you can use Encrypted LVM, which adds a layer of security by encrypting partitions.

Advantages of LVM

  1. Flexibility:
    • Resize partitions without rebooting.
    • Create multiple logical volumes on the same volume group.
  2. Space Management:
    • Combines multiple physical disks into a single volume group.
  3. Security (with encryption):
    • Data is automatically encrypted before being written to disk, protecting your information in the event of disk loss or theft.

LVM in the Debian Installer

  1. Select LVM:
    • During partitioning, choose Guided Partitioning → Configure LVM.
    • The installer will automatically guide you through the creation of a volume group and logical volumes.
  2. Create Logical Volumes:
    • After setting up the volume group, divide the space into logical volumes:
      • / (root): Contains the operating system.
      • /home: For personal data.
      • swap: For memory swapping.

LVM Encryption in Debian

Encrypted partitioning uses dm-crypt and LUKS (Linux Unified Key Setup) to encrypt logical volumes. Here's how to set it up:

  1. Select LVM Encryption:
    • During partitioning, select Guided Partitioning → Configure Encrypted LVM.
  2. Choose the Partition to Encrypt:
    • Choose the physical partition that will be encrypted and used for the LVM volume group.
  3. Set the Encryption Key:
    • The installer will prompt you for a secure encryption password. This password will be required to unlock the partition on every boot.
  4. Create the Group and Logical Volumes:
    • Just like in regular LVM, define logical volumes for //homeswap, etc.

Key Differences Between LVM and LVM Encryption

FeatureLVMLVM Encryption
FlexibilityHighHigh
Data ProtectionNot encryptedFully encrypted data
PerformanceBetter (without encryption)Slight reduction (by encryption)
SecurityWithout extra protectionProtection in case of theft
Key RequirementsNoYes, at every system startup

Recommendations

  1. Use Normal LVM:
    • If you need flexibility and aren't worried about extra security.
  2. Use LVM Encryption:
    • Ideal for laptops, external drives or servers with sensitive data.
  3. Secure Password:
    • On encrypted LVM, use a strong password to maximize security.
  4. Backup:
    • Make sure you have backups, as losing the encryption key can mean total data loss.

Both approaches have advantages depending on your needs. LVM is ideal for dynamically managing partitions, while encrypted LVM combines that flexibility with robust data protection.

This is the result of the guided partitioning, we click Finish partitioning and write the changes to the disk.

Manual Partitioning: For advanced users who want to partition in a custom way.

He manual partitioning is an advanced option in the Debian installer that allows users to fully customize how partitions are laid out and configured on the disk. This method is ideal if you need full control over the partitioning scheme, are installing Debian alongside other operating systems, or have specific requirements.

We choose to partition the entire empty hard drive:

Creating table schemas in partitions in GPT and MBR

The two main partition table schemes you can use when setting up a disk are:

1. GPT (GUID Partition Table)

Characteristics:

  • It is the modern and recommended scheme for most systems.
  • Supports disks larger than 2 TB.
  • Allows up to 128 primary partitions (without the need for extended or logical partitions).
  • It uses a redundant table (backup) at the beginning and end of the disk, making it more robust against errors.
  • It is compatible with systems that use UEFI for the start.

Advantages:

  • More reliable due to redundancies.
  • Required for UEFI systems.
  • Support for large discs.

Disadvantages:

  • Older systems with traditional BIOS may not be supported.

2. MBR (Master Boot Record)

Characteristics:

  • It is the traditional and oldest scheme.
  • Supports discs up to 2 TB.
  • Allows only 4 primary partitions, but you can create extended partitions to add more logical partitions.
  • It is compatible with most older systems.

Advantages:

  • Compatible with older BIOS.
  • Simple for small drives and basic configurations.

Disadvantages:

  • Strict limits on disk size and number of partitions.
  • It has no partition table redundancy.

When to use each one?

ConditionRecommendation
Disk larger than 2 TBGPT
Boot in UEFI modeGPT
Old operating system or BIOSMBR
Wide compatibility requiredMBR

Let's partition the hard drive with the file format EXT4 which I consider perfect for a home user, and for companies the file format would be XFS, BTRFS etc

Ext4: File System in Linux

Ext4 (Fourth Extended Filesystem) It is the most widely used file system in modern Linux distributions, such as Debian. It is the evolution of Ext3, with significant improvements in performance, capacity and stability.

Ext4 Features

  1. Compatibility:
    • It is backward compatible with Ext3, allowing Ext3 partitions to be mounted as Ext4.
    • You can also convert an Ext3 system to Ext4 without formatting.
  2. Improved performance:
    • Delayed allocation: Optimizes data writing to disk, improving speed and reducing fragmentation.
    • Extents: Groups contiguous blocks of data together to reduce fragmentation and improve reading and writing.
  3. Support for large volumes:
    • Maximum file system size: 1 exabyte (theoretical).
    • Maximum file size: 16 terabytes.
  4. Faster file system check:
    • It uses a design that reduces the time required to verify file system integrity after an unexpected shutdown.
  5. Journal (registry):
    • Like Ext3, it uses a log to track changes to the file system, reducing the risk of data corruption in the event of a crash.

Advantages of Using Ext4

  • Reliability: Ideal for servers and workstations thanks to its resistance to errors.
  • Universal compatibility: Supported by almost all Linux distributions.
  • Good performance: Suitable for both hard disk drives (HDD) and solid state drives (SSD).
  • Low maintenance: Requires little user intervention to function optimally.

When to Use Ext4

  • Daily use on personal equipment: Perfect for general Linux operating systems like Debian, Ubuntu or Fedora.
  • Servers: Suitable for small and medium-sized servers without special requirements for advanced file systems.
  • Simplicity: If you do not need specific features of other file systems like Btrfs or XFS.

Partitioning Scheme

Here is a partitioning scheme that includes the partitions swapEFI/boot/root and /home, all configured correctly to install Debian with the file system ext4.

PartitionSuggested SizeMount PointFile SystemPurpose
EFI300-500 MB/boot/efiFAT32Required for UEFI systems.
/boot512 MB – 1 GB/bootext4Boot files, including GRUB.
swapEqual to 1.5x RAM(None)swapVirtual memory for swapping.
/20-50 GB/ext4Root system, includes all files.
/homeRest of the album/homeext4Stores user data and settings.

Let's create the fat32 EFI partition for UEFI systems with GPT:

What is EFI Partition?

The EFI partition (EFI System Partition, ESP) is a special partition used in systems that use firmware UEFI (Unified Extensible Firmware Interface) to boot the operating system. This is one of the key differences between UEFI systems and older systems that use BIOS.

EFI Partition Functions

  1. Storing boot files:
    • Contains the boot loaders (such as GRUB or the Windows loader itself).
    • Saves firmware-specific boot applications.
  2. Support for multiple operating systems:
    • In dual or multi-boot systems, each operating system can install its boot loader on this partition.
  3. UEFI Firmware Management:
    • UEFI loads the boot loader from this partition, rather than relying on a boot sector as in the BIOS/MBR scheme.

Technical Characteristics

  • File System: FAT32. This is a requirement for the UEFI firmware to be able to read files.
  • Recommended Size:
    • Generally between 300 MB and 500 MB is enough.
    • On systems with many operating systems or advanced configurations, it may be larger.
  • Mount Point in Linux/boot/efi.

When Do You Need an EFI Partition?

  1. UEFI system:
    • If your computer uses UEFI instead of BIOS, you'll need this partition to boot the operating system.
  2. Dual/Multi-Boot:
    • The EFI partition is shared by all operating systems installed on the same disk.
  3. UEFI support:
    • It is mandatory for modern systems that use GPT as a partition scheme.

Differences between BIOS and UEFI

AspectBIOS (MBR)UEFI (GPT)
Boot storageBoot sector (MBR)EFI Partition (FAT32)
Number of partitionsMaximum 4 primariesUp to 128 partitions
Maximum disk size2 TBMore than 2 TB

How to Create an EFI Partition in Debian

During the Debian installation, if you're using UEFI, the installer will automatically detect the need for an EFI partition. If you're partitioning manually:

  1. Create a new partition 300-500 MB.
  2. Maps the file system to FAT32.
  3. Set the mount point as /boot/efi.

Let's create the /boot partition with ext4 file system

What is the /boot partition in Linux?

The partition /boot It is a dedicated area of the disk where the files necessary to boot the Linux operating system are stored. It's especially useful in specific configurations, although not always required.

What Does the /boot Partition Contain?

Inside the partition /boot There are essential files for the boot process, such as:

  • Linux Kernel (vmlinuz-*): The core of the operating system.
  • Initramfs file (initrd.img-*): An initial system image that is used during boot to load necessary modules before mounting the root filesystem.
  • Bootloader: Depending on the system, includes GRUB files (grub.cfg, modules, themes, etc.).

When Do You Need a /boot Partition?

  1. Using encryption or LVM:
    • If the disk is encrypted or the system uses LVM, the boot loader may need a partition /boot separate to access the boot files.
  2. Systems with UEFI:
    • Although not always necessary, a partition can be used /boot separated together with a partition EFI.
  3. Server or Multiboot Environments:
    • It is common on servers to separate critical files from the rest of the system.
    • It is also useful when multiple operating systems share the same disk.
  4. BIOS Limitations:
    • On older systems with BIOS, the partition /boot may be necessary if the root partition (/) is not within the first accessible sectors of the disk.

Recommended size for /boot

The size of /boot It depends on the expected use, but these are the recommendations:

Advertisement
UseRecommended Size
Standard system500 MB
Multikernel (various versions)1 GB
Complex servers2 GB

How to Configure /boot on Debian?

During Manual Installation

  1. In the partitioner, select free space and create a new partition.
  2. Recommended size: 500 MB.
  3. File system: ext4.
  4. Mount point: /boot.
  5. Mark the partition to be formatted.

Advantages of Using a Separate /boot Partition

  • Security: Keeps boot files isolated from the rest of the system, especially useful on encrypted disks.
  • Compatibility: Avoid problems with old BIOS or advanced settings.
  • Ease of recovery: Allows you to access the boot files without mounting the rest of the system.

Let's create the system root partition /

The partition root (/) is the foundation of the file system in Linux. It's the starting point from which all other directories and partitions are mounted. It contains the operating system, applications, and all the essential files for Linux to function.

What Does the Root Partition (Contain)?/)?

The root partition includes the main directories of the file system. Some of the most important are:

  • /bin: Basic system programs, such as lscpmv.
  • /etc: System configuration files.
  • /lib: Libraries needed to run programs on /bin and /sbin.
  • /usr: User files, installed programs and their libraries.
  • /var: Variable files such as logs, temporary databases, etc.
  • /tmp: Temporary files.

Other important directories such as /home/boot, either /srv They can be within the root or on separate partitions, depending on the configuration.

When to Use a Separate Partition for /?

The root partition (/) is generally required and should always be present. In most configurations, it is located on a separate partition, especially in the following situations:

  1. Systems with multiple partitions:
    • They are usually separated /home/var either /boot for better system control.
  2. Using encryption or LVM:
    • The root partition is mounted before the others and may be necessary for systems with encrypted disks or advanced configurations.
  3. Simpler systems:
    • If you don't have many specific needs, you can use a single partition where everything is contained in /.

Recommended Partition Size /

The size of the root partition depends on the use you plan to give to the system:

Type of UseRecommended Size
Basic system or light server20-25 GB
General use (average user)30-50 GB
Development or large servers50-100 GB

Note: If you separate other partitions like /home either /var, you can reduce the size of /.

How to Set Up Partition / in Debian

During the Debian installation:

  1. Select free disk space.
  2. Create a new partition:
    • Size: According to your needs (e.g., 100 GB).
    • Partition type: Primary.
  3. File system: ext4 (or whichever you prefer as btrfs either xfs).
  4. Assign the mount point: /.
  5. Save changes and continue.

What Happens if There Is No Partition /?

Without a root partition (/), the Linux system cannot boot, as it contains all the essential components to initialize the operating system.

Let's create the /home partition

The partition /home This is where users' personal files are stored. Each user has their own directory within /home, which contains specific settings for your applications, documents, downloads, and other personal data.

Why Create a Separate Partition for /home?

Separate /home in its own partition has several advantages:

  1. Preserve User Data:
    • If you need to reinstall the operating system, you can format the root partition (/) without affecting the data stored in /home.
  2. Better Space Management:
    • Facilitates the allocation of space between system data and personal data.
  3. Security:
    • You can apply different permissions and encryption settings to the partition only. /home.
  4. Flexibility:
    • In multi-user environments, each user has their own independent space.

Recommended Size for the /home Partition

The size of /home It depends on how you use your computer:

User TypeRecommended Size
Basic user (browsing, office)50-100 GB
Average user (multimedia, development)200-500 GB
Advanced user (large files, games)Rest of the album

Note: If you plan to store many large files like videos or projects, allocate more space.

How to Configure /home in Debian

  1. During Installation:
    • Select free disk space.
    • Create a new partition:
      • Size: According to your needs.
      • Partition type: Primary either Logic.
    • Assign the file system: ext4.
    • Mount point: /home.
    • Save changes.

Advantages of Separating /home

  • Ease of Update: You can upgrade or change the operating system without deleting your files.
  • Organization: Maintains system data (/) separated from user data.
  • Back: It is easier to make specific backups of /home.

Is a Separate /home Partition Mandatory?

No. If you do not create a separate partition for /home, your data will be stored inside the root partition (/). However, separating them is a good practice, especially on desktop systems or when handling large volumes of data.

Let's create the swap area partition Swap

The swap partition It is a reserved space on the disk that acts as virtual memory. It is used when the system's RAM becomes full, providing a backup area so the system doesn't run out of memory.

Swap Partition Functions

  1. Expand RAM Memory:
    • Allows the system to run temporarily even if the RAM is full.
  2. Hibernation:
    • During hibernation, the contents of RAM are saved to the swap partition, so the swap size must be at least equal to the RAM size for this feature to work.
  3. Avoid Memory Problems:
    • Swap is used as a last resort to prevent “out of memory” errors in applications.

How Much Space to Allocate to Swap?

The recommended swap partition size depends on how much RAM you have and how you plan to use your system:

RAM in the SystemNormal UseHibernation
Less than 2 GBEqual to the size of the RAMEqual to the size of the RAM
2-8 GB1-2 times the RAMEqual to the size of the RAM
More than 8 GB4-8 GBEqual to the size of the RAM

Grades:

  • On systems with a lot of RAM (16GB or more), swap usage may be minimal, but it's good to have a small partition for emergencies.
  • If you don't use hibernation, a smaller swap partition is usually sufficient.

Swap Types

  1. Swap Partition:
    • It's set up as a dedicated partition on the disk. It's reliable and easy to configure during installation.
  2. Swap File:
    • Swap can also be implemented as a file within the file system. This method is flexible, as you can resize it without modifying disk partitions.

How to Configure Swap on Debian

During Installation:

  1. Select free disk space.
  2. Create a new partition.
    • Size: As recommended.
    • Partition type: Primary either Logic.
  3. Configure partition usage:
    • File system: Swap area.
  4. Save changes.

Post-installation (optional):

If you need to add swap after installation, you can:

  • Create a swap file.
  • Or use a tool like gparted to add a swap partition.

Checking Swap Usage

After configuration, you can check if swap is active with the command:

$ swapon --show

Or to see a summary of memory and swap:

$ free -h

Advantages and Disadvantages of Using Swap

AdvantagesDisadvantages
Avoid failures due to lack of memoryIt is much slower than RAM
Allows use of hibernationFrequent use can reduce the lifespan of SSD drives.
Easy setupOn systems with a lot of RAM, swap may be unnecessary.

The result of hard disk partitioning:

If everything is fine, finish partitioning and write the changes to disk and continue…

Now the base installation of Debian begins on our computer:

The installer installs the minimum components necessary for the operating system to function. This process includes the system kernel, basic drivers, command-line tools, and essential configurations.

Additional Installation Media in Debian

Debian offers several ways to install the operating system, each designed to meet specific user needs. These methods include ISO downloads, physical media, and network methods.

If you have other official Debian DVD Binary 2 or 3 ISO media, you can insert them if you don't have internet access for a full installation.

Network Mirroring in the Debian Installer

During the installation of Debian, the installer offers the option to use a network mirrorThis feature allows you to download packages directly from online repositories, ensuring that you install the most up-to-date version of the operating system and its components.

Setting up a network mirror during your Debian installation is a great way to ensure an up-to-date and functional system. It's especially useful when using lightweight installation images or customizing installed software.

What is a Network Replica?

A network mirror is a server that stores official Debian packages. These servers are distributed globally and synchronize their content to provide an up-to-date copy of the packages.

When you select to use a network mirror during installation, the installer:

  1. Automatically configure repositories on your system.
  2. Download the necessary packages from the selected server.
  3. Ensures that the operating system has the latest updates and fixes.

Advantages of Using a Network Replica

  • Recent Updates: Downloaded packages are up-to-date, correcting known bugs or vulnerabilities.
  • Flexibility: Allows you to install only the necessary packages, reducing disk space used.
  • Access to Additional Packages: If you selected a minimal ISO (such as netinstall), you can install additional software from online repositories.

How to Configure Network Replication During Installation

  1. Choosing the Use of Replica:
    During installation, the system will ask:
    • "Do you want to use a network mirror?"
      Select "Yeah" if you have an Internet connection.
  2. Mirror Selection:
    The installer provides a list of nearby servers based on your location.
    • Example: deb.debian.org or mirrors specific to your country.
  3. Proxy Settings (optional):
    If you're behind a proxy, enter the details here.
    • If you are not using a proxy, leave this field empty.
  4. Connection Test:
    The installer will verify the connection to the selected mirror and download the package list.

What to Do if You Don't Use a Network Replica

  • If you choose not to use a mirror, the installer will use the packages included on the installation media (CD, DVD, or USB).
  • You can configure the repositories later by editing the file /etc/apt/sources.list.

Setting Up a Proxy in the Debian Installer

During the Debian installation, the system may request information from a proxy If you need to connect the installer to the Internet through one. This is common in corporate or institutional networks, or in environments where Internet access is restricted and channeled through a proxy server.

What is a Proxy?

A proxy is an intermediary between your system and the server you wish to connect to. In the context of Debian, it's used to:

  1. Download packages from online repositories.
  2. Access network mirrors in facilities that require an Internet connection.

When to Set Up a Proxy?

  • If you are behind a corporate or institutional network with controlled access.
  • If you need to log all outgoing connections for security or auditing reasons.
  • If your Internet provider requires the use of a proxy to browse or download data.

How to Configure a Proxy During Installation

  1. When the Installer Asks for the Proxy:
    The installer will display a message like:
    • "If you need an HTTP proxy to connect to the Internet, enter it here. Otherwise, leave the field blank."

Setting up the Popularity Contest in Debian

popularity-contest, either popcon, is a package in Debian that collects usage statistics about the packages installed on the system. This information is sent to Debian developers to help them prioritize the development and maintenance of the most frequently used packages.

What Is It and Why Set It Up?

  1. What are you doing?
    • Analyze how frequently the packages installed on your system are used.
    • Send reports (anonymously) to the Debian project.
  2. Why Set It Up?
    • Help the Debian team identify the most relevant packages.
    • It allows you to optimize repositories and ISO image distributions.
    • It is optional and completely voluntary.

Configuration During Debian Installation

During installation, the system will ask you if you want to configure the popularity-contest:

  • Installer Message:
    "Do you want to participate in the popularity contest to help Debian developers?" Options:
    • Yeah: It will be installed and configured automatically. Reports will be sent periodically.
    • No: It won't be installed. You can configure it later if you wish.

Selecting Programs and Desktop Environments in the Debian Installer

During the Debian installation, the system offers you the option to select programs and desktop environments to install. This step is crucial for customizing the system to your needs, whether for a graphical environment, a server, or specialized use.

Software Options Offered

When you reach the program selection step, the installer will present a list with options such as:

  1. Debian Desktop Environment (default)
    Installs the desktop environment selected as the default for Debian. It is usually GNOME in modern versions.
  2. Alternative Desktop Environments:
    • GNOME: Complete and modern. Ideal for users looking for an elegant graphical experience.
    • KDE Plasma: Focused on customization and visual effects.
    • XFCE: Lightweight and fast, perfect for older or resource-limited systems.
    • LXQt: Even lighter than XFCE, ideal for very basic hardware.
    • Cinnamon: A modern yet traditional interface, derived from GNOME.
    • MATE: A lightweight environment based on GNOME 2, for those who prefer a classic interface.
    • LXDE: Ultra lightweight, designed to maximize efficiency on limited hardware.
  3. Print Server:
    • Includes software such as CUPS to manage printers and print jobs.
  4. Standard System Tools:
    • Basic utilities such as text editors, network tools, and file management.
  5. SSH Server:
    • Install OpenSSH to allow remote access to the system.
  6. Server-Only Environment (no graphical desktop):
    • It does not include a graphical environment, ideal for servers where the use of the command line is prioritized.

How to Select Programs

  1. Selection Screen:
    During installation, the installer displays a list of options with check boxes.
    • Use the keyboard arrows to navigate.
    • Press the space bar to select or deselect options.
  2. Automatic Desktop Selection:
    If you do not select a specific desktop, Debian will install its default environment (GNOME).
  3. Advance:
    Once you have made your selection, press Enter to proceed.

Installing the GRUB Boot Loader on Debian

He GRUB boot loader (Grand Unified Bootloader) is an essential system component that allows you to boot the operating system. During Debian installation, configuring GRUB correctly ensures your machine can boot effectively.

GRUB Installation Process During Debian Installation

  1. GRUB Selection:
    • During the installation process, the installer will ask:
      • "Do you want to install the GRUB boot loader to the master boot record (MBR)?"
    • Select "Yeah" if you want GRUB to be the primary boot loader.
  2. Installation Disc:
    • The installer will ask you to select the disk where GRUB will be installed.
      Example:
      • /dev/sda: Main disk. Avoid selecting specific partitions as /dev/sda1.
    Note: If you are using GPT partitioning with BIOS boot mode, make sure you have a “BIOS boot” partition for GRUB to work properly.
  3. Ending:
    • The installer will automatically configure GRUB and install it to the selected disk.

Restart your computer…

Completing the Debian Installation with the XFCE Desktop Environment

Install Debian with XFCE It's an excellent option for users looking for a stable, efficient, and easy-to-use operating system. This process stands out for its flexibility, allowing you to configure the system according to your needs without including unnecessary elements. Below is a summary of the key points:

Advantages of the Installation Process

  1. Simplicity and Personalization:
    • The Debian installer guides you through the process clearly, allowing you to choose essential components and settings such as partitions, networking, and desktop.
  2. Lightness of the System:
    • XFCE as a desktop environment ensures efficient use of system resources, ideal for both older and modern hardware.
  3. Software Selection:
    • Allows you to install only the necessary tools, avoiding additional packages such as servers or services that you don't need.
  4. Compatibility and Stability:
    • Debian, renowned for its robustness, ensures that XFCE runs smoothly, providing a reliable system for everyday use.
  5. Suitable for all types of users:
    • From beginners looking for simplicity to advanced users requiring full control over their settings.

What Makes Debian + XFCE Special

  1. Easy to Customize:
    • From appearance (themes and icons) to desktop behavior, XFCE lets you fine-tune the environment to your preferences.
  2. Optimal Performance:
    • Thanks to the efficiency of XFCE, the system remains fast and agile, even with multiple applications open.
  3. Minimalist System:
    • By installing Debian without additional servers or services, you have a clean installation ready to optimize to your needs.

Why Choose Debian with XFCE?

If you value stability, lightness, and a hassle-free experience, Debian with XFCE is a perfect choice. It offers the solid Debian foundation with a graphical environment that combines functionality and simplicity, adapting to a wide variety of use cases.

Our score
Click to rate this post!
(Votes: 0 Average: 0)
Advertisement
Share on social media...

Descubre más desde javiercachon.com

Subscribe to get the latest posts sent to your email.

Deja un comentario

Your email address will not be published. Required fields are marked *

Basic information on data protection
Responsible Javier Cachón Garrido +info...
Purpose Manage and moderate your comments. +info...
Legitimation Consent of the concerned party. +info...
Recipients Automattic Inc., USA to spam filtering. +info...
Rights Access, rectify and cancel data, as well as some other rights. +info...
Additional information You can read additional and detailed information on data protection on our page política de privacidad.

Scroll al inicio

Descubre más desde javiercachon.com

Suscríbete ahora para seguir leyendo y obtener acceso al archivo completo.

Seguir leyendo

Hello!

Click on one of our representatives below to chat via Telegram or send us an email to soporte@javiercachon.com

Aid!