# 1. Installazione e Configurazione Iniziale

## Debian in maniera GRAFICA

### 1. Preparazione
* Scaricare l'immagine ISO [**Netinst**](https://www.debian.org/CD/netinst/index.it.html) (Network Installer) dal sito ufficiale di Debian.
* Creare una chiavetta USB avviabile utilizzando software come [**Rufus**](https://rufus.ie/en/#download) (Windows) o [**BalenaEtcher**](https://etcher.balena.io/) (multipiattaforma).

### 2. Installazione
* Avviare il dispositivo dalla chiavetta USB e selezionare **Graphical Install**.
[![Schermata_20260317_162454.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/gf7zXYYZ0XsIXnnZ-schermata-20260317-162454.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/gf7zXYYZ0XsIXnnZ-schermata-20260317-162454.png)
* Seguire le istruzioni a schermo per lingua, fuso orario e tastiera. (Nota per spostarsi tra i menù andare avanti o indietro premere TAB o premendo invio se volete spuntare una casella andateci sopra con il tab o con le freccie e poi premete lo spazio)
[![Schermata_20260317_162610.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/yEX7cHW6NHHum3k9-schermata-20260317-162610.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/yEX7cHW6NHHum3k9-schermata-20260317-162610.png)
[![Schermata_20260317_162634.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/ucZYZH0IrGxmXF4I-schermata-20260317-162634.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/ucZYZH0IrGxmXF4I-schermata-20260317-162634.png)
[![Schermata_20260317_162653.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/AOL5QNzouxwmkQe1-schermata-20260317-162653.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/AOL5QNzouxwmkQe1-schermata-20260317-162653.png)
* Inserire il nome host (es. `homeserver`).
[![Schermata_20260317_162940.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/nEOduFeAn6cEsR9D-schermata-20260317-162940.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/nEOduFeAn6cEsR9D-schermata-20260317-162940.png)
* Lasciare vuoto se chiede del dominio.
[![Schermata_20260317_162959.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/viNAzG58Ff4fPlZs-schermata-20260317-162959.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/viNAzG58Ff4fPlZs-schermata-20260317-162959.png)
* Impostare una password complessa per l'utente `root` e creare un nuovo account utente standard esempio `server`.
[![Schermata_20260317_163036.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/ARTAE8bF8RX4TqUF-schermata-20260317-163036.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/ARTAE8bF8RX4TqUF-schermata-20260317-163036.png)
[![Schermata_20260317_163100.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/pY0HVSafnpwKzO9B-schermata-20260317-163100.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/pY0HVSafnpwKzO9B-schermata-20260317-163100.png)
Mettere anche una password al nuovo utente salvarsi entrambe le password e che siano diverse.
* **Partizionamento dischi**: Per i principianti, selezionare **Guidato - usa l'intero disco** o **Guidato - usa l'intero disco e imposta LVM cifrato** (opzionale per una maggiore sicurezza).
[![Schermata_20260317_163149.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/TCAXIyRhMpYKiJF0-schermata-20260317-163149.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/TCAXIyRhMpYKiJF0-schermata-20260317-163149.png)
[![Schermata_20260317_163206.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/7IwOh3ySq9O8bEyk-schermata-20260317-163206.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/7IwOh3ySq9O8bEyk-schermata-20260317-163206.png)
[![Schermata_20260317_163234.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/2LubVBwjtL364fIs-schermata-20260317-163234.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/2LubVBwjtL364fIs-schermata-20260317-163234.png)
[![Schermata_20260317_163321.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/bhT1Vzd27ItBt63A-schermata-20260317-163321.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/bhT1Vzd27ItBt63A-schermata-20260317-163321.png)
* per i pachetti premere sempre invio e attendere scegliere se mandare statistiche a debian e attendere la fine.
### 3. Selezione del Software
Questo è il passaggio fondamentale per ottimizzare le risorse:
* **Deselezionare** "Debian desktop environment" e qualsiasi altra interfaccia grafica (GNOME, KDE, ecc.).
* **Selezionare** "SSH server". Questo è obbligatorio per gestire il server da remoto.
* **Mantenere** "Utilità di sistema standard".
[![Schermata_20260317_165321.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/DxuM6Ak2yXieV3FC-schermata-20260317-165321.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/DxuM6Ak2yXieV3FC-schermata-20260317-165321.png)

### 4. Primo Accesso
* Al termine dell'installazione, riavviare e rimuovere la chiavetta USB.
[![Schermata_20260317_165519.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/BBOMrZndzBWFQ7Si-schermata-20260317-165519.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/BBOMrZndzBWFQ7Si-schermata-20260317-165519.png)
* Individuare l'indirizzo IP del server facendo l'accesso alla macchina fisica come nell'immagine
  [![Schermata_20260317_170049.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/Lk8Fn4MKM2171XQb-schermata-20260317-170049.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/Lk8Fn4MKM2171XQb-schermata-20260317-170049.png)
  Una volta entrati con l'utente root mettere la password e lanciare il comando `ip addr` per vedere che ip ha la nostra macchina
* Dal computer principale, aprire il terminale (o software come PuTTY) e collegarsi tramite SSH:
  `ssh user@indirizzo_ip` e mettere la password. (ignorare il comando -p 22220)
  [![Schermata_20260317_172000.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/jUJPQnlmBSXmnwx1-schermata-20260317-172000.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/jUJPQnlmBSXmnwx1-schermata-20260317-172000.png)

In caso di errori sicuramente è la password inserita male allora dare il comando dal server `passwd server` e riprovare
[![Schermata_20260317_172319.png](https://bookstack.phast.foo/uploads/images/gallery/2026-03/scaled-1680-/rm1wFfwXVhcHUwDr-schermata-20260317-172319.png)](https://bookstack.phast.foo/uploads/images/gallery/2026-03/rm1wFfwXVhcHUwDr-schermata-20260317-172319.png)