> For the complete documentation index, see [llms.txt](https://riteshs4hu.gitbook.io/infosec-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://riteshs4hu.gitbook.io/infosec-notes/linux-server-administrator/debian-installation.md).

# Debian Installation

### Launch VirtualBox and Create a New VM

* **Name:** Choose a name (e.g., `Debian`)
* **Location:** Specify where to save the VM
* **Type:** Linux
* **Version:** Debian (64-bit)

<figure><img src="/files/Mlh47h4b1kpVgAmp7gHz" alt=""><figcaption></figcaption></figure>

#### Allocate Memory (RAM)

* **Minimum:** 4 GB (4096 MB) recommended

#### Create a Virtual Hard Disk

* **Minimum Size:** 20 GB
* Use VDI (VirtualBox Disk Image) and dynamically allocated storage.

<figure><img src="/files/HVh02qZyj6i6YVbn1Q2c" alt=""><figcaption></figcaption></figure>

#### Configure VM Settings

* **Network:** Set to **Bridged Adapter**
* **Storage:** Attach the Debian ISO under the Optical Drive

<figure><img src="/files/eY1k1NyeeMF1bEMtIMbs" alt=""><figcaption></figcaption></figure>

### Start the Virtual Machine

#### Boot from ISO

* Select **Graphical Install**

<figure><img src="/files/ndlF0QyIdwxvAaLXmIBl" alt=""><figcaption></figcaption></figure>

#### Configure Basic Settings

* **Language:** e.g., English
* **Location:** e.g., India
* **Keyboard:** e.g., American English

#### Set Hostname and Root Password

* **Hostname:** e.g., `debian`
* **Domain Name:** Leave blank
* **Root Password:** Set a secure password

<figure><img src="/files/3ur0sjGyqmM6YyZ65AKm" alt=""><figcaption></figcaption></figure>

#### Create a New User

* **Full Name:** e.g., Debian User
* **Username:** e.g., `debian`
* **Password:** e.g., `debian`

#### Partition Disks

* Choose **Guided – use entire disk**
* Select the virtual hard disk
* Confirm and continue through the partition steps

<figure><img src="/files/lYB4b9OaDb7JCsWLdC4V" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/poXieCQF9nlE5acr9rsT" alt=""><figcaption></figcaption></figure>

* Confirm with **"Yes"** on "Write changes to disk?"

<figure><img src="/files/yhxX3LzOuho1pl7w5rcY" alt=""><figcaption></figcaption></figure>

#### Configure Package Manager

* **Scan installation media?** – Select **No**

<figure><img src="/files/zdmYmS69ksRfZMeY3TOm" alt=""><figcaption></figcaption></figure>

* **Country:** e.g., India
* **Debian Mirror:** Select `deb.debian.org`

<figure><img src="/files/pyFjKeq4SaaVCdqDPYbM" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/WZ5MOIrJHcTIbmMx52wh" alt=""><figcaption></figcaption></figure>

* **HTTP Proxy:** Leave blank and continue

#### Popularity Contest

* Select **No** when prompted to participate

<figure><img src="/files/DbfkSOSLktetwZnwBtp9" alt=""><figcaption></figcaption></figure>

#### Software Selection

* For a **minimal installation**, select:
  * `[ ] Debian Desktop Environment`
  * `[ ] GNOME`
  * `[x] standard system utilities`
  * `[x] web server`
  * `[x] SSH server`

<figure><img src="/files/F1QjHswHRa5RMSO3rnku" alt=""><figcaption></figcaption></figure>

#### Install GRUB Bootloader

* **Install GRUB?** – Select **Yes**
* **Choose device:** Select the virtual hard disk

<figure><img src="/files/s9kddmcjwtc45rivjV4v" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/eaKcUDZfeVmqpW2r1Lmz" alt=""><figcaption></figcaption></figure>

#### Finish Installation

* After installation is complete, the system will reboot.

<figure><img src="/files/gMo5JfFK0iIdKrmXRJlZ" alt=""><figcaption></figcaption></figure>

Your Debian VM is now ready to use. Log in using the credentials you created during installation and proceed with any additional setup.
