80 lines
2.5 KiB
Markdown
80 lines
2.5 KiB
Markdown
# WinterIT Sysadmin
|
|
|
|
Sammlung von System-Administrationsskripten für WinterIT und Kunden.
|
|
|
|
## Verzeichnisstruktur
|
|
|
|
```
|
|
sysadmin/
|
|
├── linux/
|
|
│ ├── kubuntu/ # Kubuntu-spezifische Skripte
|
|
│ │ ├── setup-unattended-upgrades.sh # Nur Security-Updates
|
|
│ │ ├── setup-unattended-upgrades-full.sh # Alle Updates (legacy v1)
|
|
│ │ └── setup-unattended-upgrades-full-v2.sh # Alle Updates (verbessert)
|
|
│ └── debian/ # Debian-spezifische Skripte
|
|
├── windows/ # Windows-Administration
|
|
├── networking/ # Netzwerk-Konfigurationen
|
|
└── docs/ # Dokumentation
|
|
```
|
|
|
|
## Kubuntu: Automatische Updates einrichten
|
|
|
|
### Schnellstart (vor Ort)
|
|
|
|
**Empfohlen: Verbesserte v2-Version**
|
|
|
|
```bash
|
|
wget https://git.winterit.de/WinterIT/sysadmin/raw/branch/main/linux/kubuntu/setup-unattended-upgrades-full-v2.sh
|
|
chmod +x setup-unattended-upgrades-full-v2.sh
|
|
sudo ./setup-unattended-upgrades-full-v2.sh
|
|
```
|
|
|
|
**Variante A: Nur Security-Updates (stabile Systeme)**
|
|
|
|
```bash
|
|
wget https://git.winterit.de/WinterIT/sysadmin/raw/branch/main/linux/kubuntu/setup-unattended-upgrades.sh
|
|
chmod +x setup-unattended-upgrades.sh
|
|
sudo ./setup-unattended-upgrades.sh
|
|
```
|
|
|
|
### Was verbessert die v2-Version?
|
|
|
|
| Feature | v1 (legacy) | v2 (empfohlen) |
|
|
|---------|-------------|----------------|
|
|
| `sed`-Muster | Starr (`//"`) | Flexibel (`//[[:space:]]*"`) |
|
|
| `apt-daily.timer` | ❌ Nicht aktiviert | ✅ Aktiviert |
|
|
| `apt-daily-upgrade.timer` | ❌ Nicht aktiviert | ✅ Aktiviert |
|
|
| `20auto-upgrades` | ❌ Fehlend | ✅ Explizit gesetzt |
|
|
| GUI-Notifier | `apt remove` (aggressiv) | `Hidden=true` (sanft) |
|
|
| Verifikation | ❌ Keine | ✅ Zeigt aktive Origins |
|
|
|
|
### Was passiert?
|
|
|
|
- **unattended-upgrades** installieren und konfigurieren
|
|
- **Security-Updates** automatisch im Hintergrund installieren
|
|
- **Reguläre Updates** (bei Full-Version) — Firefox, LibreOffice, etc.
|
|
- **GUI-Benachrichtigungen** deaktivieren (keine Popups mehr)
|
|
- **Service + Timer** aktivieren und starten
|
|
- **Verifikation** am Ende — zeigt sofort, ob alles funktioniert
|
|
|
|
### Nach dem Setup prüfen
|
|
|
|
```bash
|
|
# Status des Services
|
|
sudo systemctl status unattended-upgrades
|
|
|
|
# Timer-Status
|
|
sudo systemctl status apt-daily.timer
|
|
sudo systemctl status apt-daily-upgrade.timer
|
|
|
|
# Testlauf (simuliert, ändert nichts)
|
|
sudo unattended-upgrade --dry-run
|
|
|
|
# Logs ansehen
|
|
ls /var/log/unattended-upgrades/
|
|
```
|
|
|
|
## Lizenz
|
|
|
|
Interner Code für WinterIT.
|