# Debian / Derivatives

## 1. Prerequisites:

Before installation, you’ll need the following:

* [x] A USB drive with at least 8 GB of storage.
* [x] **Secure Boot** should be disabled.
* [x] BitLocker disabled to avoid potential data loss during installation.
* [x] dGPU mode should be set to Standard (Hybrid) or Ultimate in Windows.

## 2. Installation Media Creation:

After downloading the ISO of your preferred distro, you will need to flash it to a USB drive to boot from it and install the OS. You can use tools such as Balena Etcher, Rufus, or other similar software to burn the ISO.

If you haven’t downloaded the ISOs yet, here’s where you can get them.

* [Debian 13](https://www.debian.org/distrib/)
* [Ubuntu GNOME](https://Ubuntu.com/download/desktop)
* [Ubuntu KDE](https://kUbuntu.org/download/)

{% tabs %}
{% tab title="Rufus" %}

1. Download [Rufus](https://rufus.ie/).
2. Select “ISO Image” and choose your distro’s ISO.
3. Insert your USB drive.
4. Select the correct **Partition Scheme** (GPT for modern systems).
5. Click **Start** and wait for it to finish.
6. Safely eject the USB.
   {% endtab %}

{% tab title="Ventoy" %}
Ventoy allows multiple ISO files on one USB. It’s perfect for testing or switching between OSes.

1. [Download Ventoy](https://github.com/ventoy/ventoy/releases).
2. Extract and run `Ventoy2Disk.exe`.
3. Go to **Options > Partition Style > GPT**
4. Select your USB drive and click **Install**.
5. After installation, copy the ISO file directly to the **Ventoy** partition.
   {% endtab %}
   {% endtabs %}

## 3. Partitioning for Dual Boot:

If you are trying to dual boot Linux alongside Windows, you will need to leave some unallocated space for the installer to detect and use. A minimum of 60 GiB is recommended for the Linux partition. If you plan on playing multiple large games, you may want to allocate even more space, as games installed on the Windows (NTFS) partition generally won’t work on Linux.

### 3.1 Steps:

To create a partition, open Disk Management, then right-click on your partition or drive. If you want to share the same SSD between two operating systems, right-click on the C: partition and select Shrink Volume. In the field **Enter the amount of space to shrink in MB**, enter the size you want to allocate to Linux and click Shrink.

After shrinking, you will see a black unallocated space of the same size. Do not create a new volume, leave it unallocated. Once confirmed, you can exit Disk Management and continue to the next step.

![](/files/ec019c2RXIgjGpEpqTdn)

{% hint style="info" %}
If you are not confident with partitioning and are worried you might mess something up, then take a screenshot of the Disk Management screen so you can identify which partitions are new and can be safely removed.
{% endhint %}

## 4. Installation Steps:

### 4.1 Booting from the Installation USB:

Assuming you have disabled Secure Boot, if you have not, hold the F2 key and press the Power button, keeping F2 held until you enter the BIOS screen. Inside the BIOS, go to the Security tab, turn off Secure Boot, then save the changes and exit. Once Secure Boot is disabled, plug in your USB drive, hold the Esc key, and press the Power button. When prompted to select a boot device, choose your USB drive and press Enter.

### 4.2 Installation:

<details>

<summary>Ubuntu</summary>

Once Ubuntu has booted, wait a few seconds and the installer should open automatically after a chime. If it doesn’t, click on the installer icon in the dock on the left side of the screen.

![](/files/qsvRdH64aaPvGeFteIaS)

The installer will open on the language tab. Simply choose your preferred language and click 'Next'.

![](/files/5hOy6pLLNXQLKLXq22cs)

On the second tab, you’ll be asked if you want to enable any accessibility features. Enable any you need, or simply click 'Next' if you don’t want to use any.

![](/files/rhzmGq5N7uQ1ePMAiCWR)

On this screen, select your keyboard layout.

![](/files/FG8PxQIZl3YfRjvORjI6)

The installer will ask if you want to connect to the internet. It is recommended to do so in order to download updates and additional software.

If you connect to the internet, the installer may prompt you to update. Simply update it and continue with the setup.

![](/files/QV722nqD1UVEBjwL1465)

For this step, choose 'Interactive Installation' and click 'Next'.

![](/files/TUzfmf9Y5tBFZgoenoDy)

The default selection will install the basic set of apps, while the extended selection will include additional apps like LibreOffice and others. You can choose either option according to your preference.

You will be prompted to install third-party software and multimedia codecs. Simply enable both options to have them downloaded.

![](/files/ckcHyL6253omn67n5Zqk)

If you are dual-booting Ubuntu with Windows and have already done the partitioning in Windows, you will see the option to 'Install alongside Windows.' Simply select that and continue. For a standalone installation, select 'Erase disk and install Ubuntu,' making sure to choose the correct disk.

![](/files/ESiHhXqdHlkhzPB4QMiI)

Simply enter your username, device name, set a password, and click 'Continue.

![](/files/jFnq4iKQDQwKKwRMUeFP)

Select a timezone and click 'Next.'

![](/files/CV0eQcHRwcePqWILGsJ0)

Finally, the installer will show a summary of the selected options and the changes it will make. Make sure everything is correct, then click 'Install' and wait for the installation to complete.

</details>

<details>

<summary>Debian:</summary>

Begin by choosing your language, region, and keyboard layout.

![language](/files/YVGrU6zBIwFyDisdEnlB)

![region](/files/ssztgvaj1T0uw9P6Wa0U)

![keyboard layout.](/files/B9kbDTWNoVIPxeSJ8Ia4)

![](/files/nt7lySK78CP0HhpRlSBV)

If you are using Ethernet, the installer will automatically detect it and configure the connection for use during installation. If you plan to use Wi-Fi instead, the installer will prompt you to select your wireless card, which will look something like this:

```bash
eno1: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller
wlo1: Intel Corporation Wi-Fi 6E AX210/AX211/AX411 160MHz
```

On this page, select your Wi-Fi card (it is generally named `wlo1`). Simply choose the name of your Wi-Fi card and click Next.

On the next page, you will see a list of all the networks detected by the Wi-Fi card. Simply select your network and enter its passphrase to connect. If your network does not appear, try manually entering the ESSID (the network name), click Continue, and then enter the passphrase.

**Once connected, the installer will simply proceed to the next step.**

![](/files/91g0gBxgQT4YlR2FYYRk)

Enter a hostname (the name for your device).

![](/files/bzFQClQUZb7Kqd0tJQ7W)

You can leave this blank, as it isn’t something a home user typically needs. If you understand what this means and require it, enter your domain.

![](/files/EbNi6uR5RK0niHW8sMkl)

Enter the password for the root account.

![](/files/L2j9A49UwvdwWSjXwoc0)

Enter your name and username.

![](/files/wx5hpY8N6kqjpQmW7YD1)

Enter the password for your user account.

![](/files/LIirsfsMz3WXhhCC01zH)

Select your time zone. If your time zone doesn’t appear, you may have selected the wrong region. You can either go back and change it in the previous section or change it after the installation; it doesn’t matter.

If you are planning on dual booting Debian, choose `Guided - use the largest continuous free space.` This will allocate only the unassigned space to Debian, and the rest will remain unchanged.

If you are planning to use only Debian, choose `Guided - use entire disk.` This will wipe the drive and install Debian on it. If you want to partition the disk manually, choose Manual.

It is recommended for beginners to use a single partition for both root and home.

![](/files/SVW17Weqpx855rusNzhk)

This will show a summary of the changes that will be made to the disk. After making sure everything is correct, including the drive you are installing to, scroll to the bottom and choose `Finish partitioning and write changes to disk.`

![](/files/3IdLhjKDO5TOhI24zcgZ)

It will show the summary again, including the partitions that will be created and deleted. If everything is correct, simply accept and continue.

![](/files/hYevzVeN1hvZ5XeROhHN)

In this step, the installer will install the base system packages. Simply let it run and wait for it to complete.

{% hint style="info" %}
You may be asked to take part in the popularity-contest survey. This step is completely optional; you can choose whether or not to participate.

<img src="/files/qmayjX3jkELuHdPKJ1FA" alt="" data-size="original">
{% endhint %}

![](/files/szk6bfPOBawiDTMZdh7Z)

The installer will ask which desktop environment to install and present you with several options. GNOME or KDE are recommended, but you may choose whichever option you prefer.

![](/files/SYJQA8thIWLwJlpgWMFs)

Finally, the installer will install everything. This step may take some time, so be patient and let it complete. Once the installation finishes, you will be prompted to reboot into the installed system; simply continue.

By default, Debian excludes the user from the `sudo` group, so you won’t be able to run commands with sudo, including `apt`. To fix this, log in as root and add your user to the sudo group.

```bash
su -

usermod -aG sudo <username>
```

After that, simply reboot and you will be able to use sudo normally.

</details>

{% hint style="info" %}
Before installation, please check that basic functionality such as Wi-Fi, Bluetooth, keyboard, and trackpad works in the live installer. If not, the distro you selected may not yet support your hardware.
{% endhint %}

## 5. Uninstalling Linux

### 5.1 For Dual Boot Users

<details>

<summary>Ubuntu/Mint:</summary>

Open Disk Management in Windows, delete the Linux partitions, and then extend the partition from which the space was taken.

When Linux is installed alongside Windows, its bootloader files are copied to the Windows EFI system partition. To fully remove Linux, you’ll need to delete those files. If you skip this step, you might get an error on boot from the Linux bootloader saying it can’t find the Linux system.

#### Open PowerShell as administrator and run the following commands in order.

```bash
diskpart

select disk X  # Replace X with your disk number

list partition

select partition 1  # The EFI partition on Windows is usually 1

assign letter=Z
```

#### Now open a new PowerShell window as administrator while keeping the old one open.

```bash
cd Z:

cd EFI

dir

rd /s /q Ubuntu  
```

**For both Mint and Ubuntu, the folder is named Ubuntu, but it may be different for other distributions, so check the listed names.**

Return to the previous window and run:

```bash
remove letter=Z
```

After that, you can close both windows and use Windows normally.

</details>

<details>

<summary>Debian:</summary>

Debian creates its own EFI System Partition (ESP), so you don’t need to manually remove the bootloader first. You can open Disk Management in Windows and delete all additional partitions created by Debian. Once those partitions are removed, Debian will be completely removed from your system.

Note that the Debian EFI partition cannot be deleted using Disk Management. To remove it, you’ll need to use diskpart manually.

Open PowerShell or Command Prompt as Administrator, then run the following commands:

```bash
diskpart

list disk
```

Identify the drive where Windows and Debian are installed, then run the following commands:

```bash
select disk X # Replace X with the correct drive.
```

Then list all partitons with

```bash
list partitons
```

The following are the default partitions created by Windows and should not be removed. If you are using an OEM installation, a MyASUS partition may also appear in the list.

| Partiton ### | Type     | Size  |
| ------------ | -------- | ----- |
| Partition 1  | System   | 100MB |
| Partition 2  | Reserved | 16MB  |
| Partition 3  | Primary  | C:    |
| Partition 4  | Recovery | 591MB |

The default partition created by Debian will usually appear as a `977 MB` partition in Windows if you didn’t change the partition layout. You can identify it by comparing the partitions shown in Disk Management.

Once identified, simply remove it using the following command:

```bash
delete partition X override
```

After that, extend the C: drive, and Debian should be completely removed from your system.

</details>

### 5.2 For Standalone Linux Installation:

If you want to return to Windows after using Linux, open DiskPart, select the Linux drive, and remove its filesystem by returning it to an uninitialized state using the `clean` command in DiskPart.

```bash

diskpart

select disk X  # Replace X with the correct drive.

clean

exit
```

{% hint style="info" %}
If you are using an Intel system and the Windows installer cannot detect your drive, disable VMD (Volume Management Device) in BIOS.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://asus-tuf-linux.gitbook.io/introduction/installation/debian.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
