Skip to content

Commit 14162d3

Browse files
author
marci
committed
Update links and add help page snippets across various posts; create new post for automated Debian updates with Bash script.
1 parent 9bb28eb commit 14162d3

28 files changed

Lines changed: 339 additions & 156 deletions

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
},
1414
"editor.minimap.enabled": false
1515
},
16-
"frontMatter.panel.openOnSupportedFile": true
16+
"frontMatter.panel.openOnSupportedFile": true,
17+
"window.autoDetectColorScheme": true
1718
}

content/posts/fritzbox/fritzbox-portfreigabe.de.md

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
---
22
title: Tipp - Fritzbox Portfreigabe richtig einrichten
3-
descripton: Fritzbox Portfreigabe richtig einrichten | In diesem Video zeige ich, wie ihr eine Freigabe / Portweiterleitung in der Fritzbox konfiguriert.
43
hero: /images/posts/fritzbox/Video-FritzBox-Portfreigabe.png
54
date: 2022-03-19
65
menu:
76
sidebar:
87
name: Fritzbox Portfreigabe einrichten
98
identifier: fritzbox-port
109
parent: fritzbox
11-
categories:
12-
- "Hardware"
13-
- "Netzwerk"
14-
- "Security"
15-
- "Tutorials"
16-
- "Video"
17-
tags:
18-
- "fritzbox"
19-
- "netzwerk"
20-
- "security"
21-
- "tutorials"
22-
- "video"
10+
categories:
11+
- Hardware
12+
- Netzwerk
13+
- Security
14+
- Tutorials
15+
- Video
16+
tags:
17+
- fritzbox
18+
- netzwerk
19+
- security
20+
- tutorials
21+
- video
22+
description: Fritzbox Portfreigabe richtig einrichten | In diesem Video zeige ich, wie ihr eine Freigabe / Portweiterleitung in der Fritzbox konfiguriert.
23+
preview: ../../../assets/images/posts/fritzbox/Video-FritzBox-Portfreigabe.png
2324
---
2425

2526
## FritzBox Portfreigabe einrichten
@@ -134,6 +135,10 @@ Was ist eine Portweiterleitung / Portfreigabe
134135

135136
[https://de.wikipedia.org/wiki/Portweiterleitung](https://de.wikipedia.org/wiki/Portweiterleitung)
136137

137-
### Andere Themen zur FritzBox-Konfiguration
138-
139-
FritzBox [Gastzugang einrichten](https://secure-bits.org/fritzbox-gastzugang-einrichten-aktivieren/)
138+
<!-- FM:Snippet:Start data:{"id":"Help deutsch","fields":[]} -->
139+
> ## Fragen und Antworten
140+
>
141+
> Wenn Sie Fragen oder Feedback zu diesem Blog oder YouTube-Kanal haben, nutzen Sie bitte meine Hilfeseite. Dort finden Sie Fragen und Antworten zu den verschiedenen Beiträgen. Sie können dort auch gerne Ihre eigene Frage stellen.
142+
>
143+
> [**Zur Hilfeseite**](https://help.secure-bits.org/)
144+
<!-- FM:Snippet:End -->

content/posts/fritzbox/fritzbox-portfreigabe.en.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Tip - Setting up Fritzbox port forwarding correctly
3-
descripton: Setting up port forwarding correctly on Fritzbox | In this video, I show you how to configure port forwarding on Fritzbox.
43
hero: /images/posts/fritzbox/Video-FritzBox-Portfreigabe.png
54
date: 2022-03-19
65
menu:
@@ -9,17 +8,19 @@ menu:
98
identifier: fritzbox-port
109
parent: fritzbox
1110
categories:
12-
- “Hardware”
13-
- “Network”
14-
- “Security”
15-
- “Tutorials”
16-
- ‘Video’
11+
- “Hardware”
12+
- “Network”
13+
- “Security”
14+
- “Tutorials”
15+
- ‘Video’
1716
tags:
18-
- “fritzbox”
19-
- “network”
20-
- “security”
21-
- ‘tutorials’
22-
- “video”
17+
- “fritzbox”
18+
- “network”
19+
- “security”
20+
- ‘tutorials’
21+
- “video”
22+
description: Setting up port forwarding correctly on Fritzbox | In this video, I show you how to configure port forwarding on Fritzbox.
23+
preview: ../../../assets/images/posts/fritzbox/Video-FritzBox-Portfreigabe.png
2324
---
2425
## Setting up FritzBox port forwarding
2526
Today's post is about how to set up **FritzBox port forwarding** correctly, what you can use it for, and what risks arise from using port forwarding.
@@ -91,5 +92,10 @@ What is port forwarding / port sharing?
9192

9293
[https://de.wikipedia.org/wiki/Portweiterleitung](https://de.wikipedia.org/wiki/Portweiterleitung)
9394

94-
### Other topics related to FritzBox configuration
95-
FritzBox [Set up guest access](https://secure-bits.org/fritzbox-gastzugang-einrichten-aktivieren/)
95+
<!-- FM:Snippet:Start data:{"id":"Visit Help-page","fields":[]} -->
96+
> ## Questions and answers
97+
>
98+
> If you have any questions or feedback about this blog or YouTube channel, please use my help page. Here you will find questions and answers about the various posts. You are also welcome to ask your own question here.
99+
>
100+
> [**Visit the Help-page**](https://help.secure-bits.org/)
101+
<!-- FM:Snippet:End -->
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
---
2+
title: Automatische Updates von Debian mit einem Bash-Script
3+
description: Automatisierte Updates auf einem debian-basierenden OS mit einem Bash-Script
4+
date: 2025-08-15T08:57:42.002Z
5+
tags:
6+
- bash
7+
- linux
8+
- debian
9+
categories:
10+
- Linux
11+
- Tutorials
12+
menu:
13+
sidebar:
14+
name: Bash-Script für automatische Updates unter Debian
15+
identifier: debian-update
16+
parent: linux
17+
keywords:
18+
- debian update script
19+
draft: true
20+
---
21+
## Updates auf debian-basierenden Systemen automatisieren mit einem Bash-Script
22+
23+
In diesem kleinen Tutorial möchte ich zeigen, wie ihr mit Hilfe eines Bash-Script, debian-basierende Server-Systeme automatisch aktualisieren lassen könnt.
24+
25+
## Warum ein Bash-Script nutzen
26+
27+
Ich denke jeder Administrator weiß die Vorzüge der Verwendung von Scripte zur Automatierung von immer wiederkehrenden Aufgaben zu schätzen und kann so seine produktive Arbeit effizienter gestalten.
28+
29+
Daher habe ich mir gedacht, dass ich euch in diesem Tutorial das Bash-Scripting ein wenig näher bringe und euch anhand eines Beispiels, dass Scripting in der Shell zeige.
30+
Als Beispiel schreibe ich ein Script mit dessen Hilfe, Updates von debian-basierenden Betriebssystemen, vollkommen automatisiert ablaufen.
31+
32+
## Erstellung des Bash-Scripts für automatische Updates
33+
34+
<!-- FM:Snippet:Start data:{"id":"Warning","fields":[]} -->
35+
{{< alert type="warning" >}}
36+
**Warnung**
37+
Bitte Bash-Scripte immer erst auf **Test-Systeme** vorab Testen und dann auf Produktiv-Systemen ausrollen!!!
38+
{{< /alert >}}
39+
<!-- FM:Snippet:End -->
40+
41+
## Zum Aufbau von diesem Beispiel-Script
42+
Zunächst werde ich in diesem Beispiel-Script euch die **einzelnen Befehls-Abschnitte** des Bash-Scripts nacheinander deren Bedeutung und Funktionsweise erklären und weiter unten in diesem Artikel findet ihr dann das fertige Update-Script zur eurer freien Verfügung.
43+
<!-- FM:Snippet:Start data:{"id":"Info","fields":[]} -->
44+
{{< alert type="info" >}}
45+
In meinem GitHub-Repository findet ihr noch viele praktische Scripte für die Bash oder das Scripting mit Phyton.
46+
47+
[**--> Hier geht es zum Repository**](https://github.com/securebitsorg/community-templates)
48+
49+
{{< /alert >}}
50+
<!-- FM:Snippet:End -->
51+
52+
#### Was braucht ihr für die Erstellung eines Bash-Scripts?!
53+
Für das Erstellen eines Bash-Scripts braucht es eigentlich nur einen einfachen Text-Editor.
54+
Besser jedoch ist es, wenn ihr einen Editor nutzt, der auch das Syntax-Highlighting der Bash-Scripting beherrscht. So ist einfacher, die richtige Formatierung für das Script einzuhalten und sorgt auch für eine bessere Übersicht.
55+
56+
##### Hier eine kleine Auswahl an Editoren unter Linux:
57+
- KWrite
58+
- VSCode
59+
- nano
60+
- VIM
61+
- NEOvim
62+
- Kate
63+
64+
65+
### Erstellung der Bash-Script-Datei
66+
Bevor mit dem Erstellen des Bash-Scripts für unser Update-Script anfangen können, brauchen wir zunächst eine Script-Datei.
67+
Um diese zu Bash-Script-Datei zu erstellen, erstellt ihr eine neue Datei mit der Endung **`.sh`** mit dem **nano-Editor** oder dem Editor eurer Wahl.
68+
69+
**In diesem Beispiel erstellen wir das Script im Wurzelverzeichnis des `root-users`**
70+
71+
>
72+
> #### Installieren des **nano-Editor**
73+
>
74+
> Unter debain-basierenden Distros ist der **nano-Editor** in den meisten Fällen schon vorinstalliert. Sollte das nicht der Fall sein (z.B. bei Ubuntu minimal-Server-Installation), könnt ihr einfach die Installation mit diesen Befehl nachholen.
75+
>
76+
>```sh
77+
># Installation des nano-Editor
78+
>
79+
>sudo apt update
80+
>
81+
>sudo apt install nano
82+
>```
83+
84+
In diesem Beispiel nutze ich einfachshalber den `nano-editor` im Terminal, da dieser einfach zu Bedienen ist und auch für alle Distros (meines Wissens) verfügbar ist.
85+
86+
```sh
87+
# Solltet ihr als nicht root-user angemeldet sein, könnt ihr euch mit dem folgenden Befehl als root-user anmelden
88+
89+
sudo -s
90+
91+
# Erstellen der Script-Datei im root-Verzeichnis
92+
touch ~/simple_update_debian_script.sh
93+
94+
# Bearbeiten der Script-Datei
95+
nano ~/simple_update_debian_script.sh
96+
```
97+
Im nun offnen Editor-Fenster der Datei `simple_update_debian_script.sh`, gibt ihr in der ersten Zeile, das folgende ein:
98+
99+
`/bin/bash`
100+
101+
> Mit dieser ersten Zeile `/bin/bash` weisen wir aus, das es sich hier um ein Bash-Script handelt und so weiß das Betriebssystem, mit welchem Interpreter (Shell) unser Script ausgeführt werden soll.
102+
103+
### Bash-Script-Beschreibung einfügen
104+
105+
106+
107+
108+
109+
110+

content/posts/privacy/pihole/pihole-auf einen-raspberry-pi-installieren.de.md

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,36 @@
22
title: Pi-hole Raspberry Pi Installation
33
date: 2022-03-30
44
hero: /images/posts/pihole/pi-hole-installation.png
5-
descripton: Pi-hole Raspberry Pi | In diesem Tutorial installieren wir Pihole auf einem Raspberry Pi
65
menu:
76
sidebar:
87
name: Pihole auf einen Raspberry Pi installieren
98
identifier: pihole-raspberry
109
parent: pihole
11-
categories:
12-
- "Hardware"
13-
- "Linux"
14-
- "Netzwerk"
15-
- "Security"
16-
- "Tutorials"
17-
tags:
18-
- "security"
19-
- "linux"
20-
- "netzwerk"
21-
- "pi-hole"
22-
- "raspberry pi"
23-
- "tutorials"
24-
- "video"
10+
categories:
11+
- Hardware
12+
- Linux
13+
- Netzwerk
14+
- Security
15+
- Tutorials
16+
tags:
17+
- security
18+
- linux
19+
- netzwerk
20+
- pi-hole
21+
- raspberry pi
22+
- tutorials
23+
- video
24+
description: Pi-hole Raspberry Pi | In diesem Tutorial installieren wir Pihole auf einem Raspberry Pi
25+
preview: ../../../../assets/images/posts/pihole/pi-hole-installation-beendet.jpg
2526
---
2627

2728
## Pi-hole auf einen Raspberry Pi installieren und einrichten
2829

2930
In diesem Tutorial '**Pi-hole auf einen Raspberry Pi installieren**' zeige ich euch, wie ihr den Pi-hole DNS-Server installieren und mit Unbound einen rekursiven DNS-Server einrichten könnt.
3031

31-
Die Schritt für Schritt-Installation geschiehttps://secure-bits.org/wp-content/uploads/2022/03/Pi-hole-auf-Raspberry-Pi-installieren-Schritt-3.jpght bei diesem Tutorial auf einen Raspberry Pi.
32+
Die Schritt für Schritt-Installation geschieht bei diesem Tutorial auf einen Raspberry Pi.
3233

33-
In einem [anderen Tutorial hier auf SecureBits](https://secure-bits.org/pi-hole-installation/), habe ich euch ja schon die **Installation auf einem Debian-System in einer virtuellen Maschine** gezeigt und aufgeführt, sowie warum und wofür ihr einen Pi-Hole DNS-Server einsetzen solltet.
34+
In einem [anderen Tutorial hier auf SecureBits](https://secure-bits.org/posts/privacy/pihole/pihole-installation-debian/), habe ich euch ja schon die **Installation auf einem Debian-System in einer virtuellen Maschine** gezeigt und aufgeführt, sowie warum und wofür ihr einen Pi-Hole DNS-Server einsetzen solltet.
3435

3536
## Video-Tutorial zum Thema 'Pi-hole Raspberry Pi'
3637

@@ -370,3 +371,11 @@ Der Einsatz eines Pi-hole-DNS-Server ist eine super und günstige Sache (außer
370371
Gerade im heimischen Netzwerk kann dieser DNS-Server wunderbar an einem Consumer-Router wie FritzBox, Speedport und andere als Nameserver implementiert werden. So hat man einen wunderbaren Schutz vor Tracking, Werbung, Malware und Pishing auf allen Geräten im Netzwerk. Natürlich ist dieser Schutz nicht hundertprozentig, aber sicherlich besser als nichts für seinen Datenschutz zu unternehmen.
371372

372373
Gerne könnt ihr mir auch Vorschläge für Blacklists die ihr in Verwendung habt zukommen lassen. Darüber würde ich mich echt freuen!
374+
375+
<!-- FM:Snippet:Start data:{"id":"Help deutsch","fields":[]} -->
376+
> ## Fragen und Antworten
377+
>
378+
> Wenn Sie Fragen oder Feedback zu diesem Blog oder YouTube-Kanal haben, nutzen Sie bitte meine Hilfeseite. Dort finden Sie Fragen und Antworten zu den verschiedenen Beiträgen. Sie können dort auch gerne Ihre eigene Frage stellen.
379+
>
380+
> [**Zur Hilfeseite**](https://help.secure-bits.org)
381+
<!-- FM:Snippet:End -->

content/posts/privacy/pihole/pihole-auf einen-raspberry-pi-installieren.en.md

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,32 @@
22
title: Pi-hole Raspberry Pi Installation
33
date: 2022-03-30
44
hero: /images/posts/pihole/pi-hole-installation.png
5-
descripton: Pi-hole Raspberry Pi | In this tutorial, we will install Pihole on a Raspberry Pi
65
menu:
76
sidebar:
87
name: Install Pihole on a Raspberry Pi
98
identifier: pihole-raspberry
109
parent: pihole
11-
categories:
12-
- “Hardware”
13-
- “Linux”
14-
- “Network”
15-
- “Security”
16-
- “Tutorials”
10+
categories:
11+
- “Hardware”
12+
- “Linux”
13+
- “Network”
14+
- “Security”
15+
- “Tutorials”
1716
tags:
18-
- “security”
19-
- “linux”
20-
- ‘network’
21-
- “pi-hole”
22-
- “raspberry pi”
23-
- "tutorials"
24-
- “video”
17+
- “security”
18+
- “linux”
19+
- ‘network’
20+
- “pi-hole”
21+
- “raspberry pi”
22+
- tutorials
23+
- “video”
24+
description: Pi-hole Raspberry Pi | In this tutorial, we will install Pihole on a Raspberry Pi
2525
---
2626
## Install and set up Pi-hole on a Raspberry Pi
2727
In this tutorial, ‘**Install Pi-hole on a Raspberry Pi**’, I will show you how to install the Pi-hole DNS server and set up a recursive DNS server with Unbound.
28-
The step-by-step installation is fohttps://secure-bits.org/wp-content/uploads/2022/03/Pi-hole-auf-Raspberry-Pi-installieren-Schritt-3.jpghtly on a Raspberry Pi in this tutorial.
28+
The step-by-step installation is on a Raspberry Pi in this tutorial.
29+
30+
2931
In another tutorial here on SecureBits (https://secure-bits.org/pi-hole-installation/), I already showed you how to install it on a Debian system in a virtual machine and explained why and how you should use a Pi-Hole DNS server.
3032
## Video tutorial on ‘Pi-hole Raspberry Pi’
3133
For those of you who would prefer to watch a video tutorial on installing Pi-hole on a Raspberry Pi, I have published an installation video on my YouTube channel.
@@ -40,9 +42,11 @@ You can download the Raspberry Pi Imager here:
4042
#### Pi-hole on a Raspberry Pi – installation process Raspberry OS
4143
After downloading, open Raspberry PI Imager (in this example for Windows), insert an SD card into your SD reader and select the appropriate OS for the Raspberry Pi in the Imager. Make sure that you select either the 64-bit or 32-bit version of Raspberry PI OS Lite. The Lite version is sufficient for operating Pi-hole.
4244
After selecting the appropriate OS, select the appropriate SD card for the image and, before clicking Write, click on the gear icon on the Raspberry PI Imager interface, enable access via SSH, and assign a secure password for access.
45+
4346
![Installation process Raspberry OS Image 1](/images/posts/pihole/Raspberry-OS-installieren-Bild-1.jpg)
4447
![Raspberry OS installation process image 2](/images/posts/pihole/Raspberry-OS-installieren-Bild-2.jpg)
4548
![Raspberry OS installation process image 3](/images/posts/pihole/Raspberry-OS-installieren-Bild-3.jpg)
49+
4650
## Install Pihole
4751
### Install Pi-Hole on a Raspberry Pi
4852
First, we will install and set up Pi-hole on a Raspberry Pi.
@@ -158,6 +162,8 @@ sudo nano /etc/dhcpcd.conf
158162
# In the Nano editor window, change the new IP address here under ‘static-ip-address’, save your entries with CTRL+O and ENTER, and exit the Nano editor with CTRL+X. See next image
159163
```
160164
![Assign static IP address to Raspberry Pi](/images/posts/pihole/pi-hole-IP-Adresse-aendern.jpg)
165+
166+
161167
#### Reconfigure/set up Pi-hole - Pi-hole on a Raspberry Pi
162168
To run the Pi-hole installation setup again, you can connect to the Raspberry Pi via SSH and restart the setup with the following command
163169
```sh
@@ -243,3 +249,11 @@ IPv6: 2a01:3a0:53:53::
243249
Using a Pi-hole DNS server is a great and inexpensive way (except that the PI is currently difficult to obtain due to a semiconductor shortage and therefore very expensive) to protect yourself from tracking, malware, and adware.
244250
Especially in your home network, this DNS server can be implemented wonderfully as a name server on a consumer router such as FritzBox, Speedport, and others. This provides excellent protection against tracking, advertising, malware, and phishing on all devices in the network. Of course, this protection is not 100% effective, but it is certainly better than doing nothing to protect your data privacy.
245251
Feel free to send me any suggestions for blacklists that you use. I would really appreciate it!
252+
253+
<!-- FM:Snippet:Start data:{"id":"Visit Help-page","fields":[]} -->
254+
> ## Questions and answers
255+
>
256+
> If you have any questions or feedback about this blog or YouTube channel, please use my help page. Here you will find questions and answers about the various posts. You are also welcome to ask your own question here.
257+
>
258+
> [**Visit the Help-page**](https://help.secure-bits.org/)
259+
<!-- FM:Snippet:End -->

content/posts/privacy/pihole/pihole-basic-setup.en.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,19 @@ If you have any questions on this topic, just leave a comment either below the v
3232

3333
### Block lists/ad lists for Pihole
3434
You can find a list of block lists I use in this post:
35-
**[Installing Pi-hole on a Raspberry Pi](https://secure-bits.org/pi-hole-auf-einen-raspberry-pi-installieren/)**
35+
**[Installing Pi-hole on a Raspberry Pi](https://secure-bits.org/en/posts/privacy/pihole/pihole-auf-einen-raspberry-pi-installieren/)**
3636
### Setting up Pihole - More videos on Pihole and Raspberry Pi
37-
[FritzBox + Pi-hole | Configuring FritzBox | SecureBits (secure-bits.org)](https://secure-bits.org/fritzbox-pi-hole-fritzbox-konfigurieren/)
37+
[FritzBox + Pi-hole | Configuring FritzBox | SecureBits (secure-bits.org)](https://secure-bits.org/en/posts/privacy/pihole/pihole-fritzbox-setup/)
3838

3939
[Securing Raspberry Pi from A to Z | 2023 | SecureBits](secure-bits.org)
4040

41-
[Setup Unbound + Pi-hole and DNS encryption](https://secure-bits.org/pihole-unbound-jetzt-richtig-installieren-in-2023/)
41+
[Setup Unbound + Pi-hole and DNS encryption](https://secure-bits.org/en/posts/privacy/pihole/pihole-unbound/)
42+
43+
44+
<!-- FM:Snippet:Start data:{"id":"Visit Help-page","fields":[]} -->
45+
> ## Questions and answers
46+
>
47+
> If you have any questions or feedback about this blog or YouTube channel, please use my help page. Here you will find questions and answers about the various posts. You are also welcome to ask your own question here.
48+
>
49+
> [**Visit the Help-page**](https://help.secure-bits.org/)
50+
<!-- FM:Snippet:End -->

0 commit comments

Comments
 (0)