Instead of copying the script file manually to ~/.local/bin using 'cp', we now recommend creating a symbolic link with 'ln -s'. This makes updates easier, as any changes pulled from the Git repository are immediately reflected in the linked binary without needing to copy the file again. It’s also safer in the long term, as users won’t accidentally run outdated versions from ~/.local/bin.
35 lines
805 B
Markdown
35 lines
805 B
Markdown
# 🔧 Installation von `chkip`
|
||
|
||
`chkip` ist ein kleines, praktisches DNS- und Mailserver-Check-Tool für die Kommandozeile.
|
||
Es benötigt Python 3 und zwei zusätzliche Bibliotheken – und funktioniert komplett ohne Root-Rechte.
|
||
|
||
---
|
||
|
||
## 🧰 Voraussetzungen
|
||
|
||
Du brauchst:
|
||
|
||
- ein Linux-System mit Python 3
|
||
- Git (zum Klonen des Repos)
|
||
- Die Python-Module `dnspython` und `requests`
|
||
|
||
---
|
||
|
||
## 📦 Abhängigkeiten installieren
|
||
|
||
### Debian / Ubuntu / Linux Mint:
|
||
|
||
```bash
|
||
sudo apt update
|
||
sudo apt install python3 python3-pip git python3-dnspython python3-requests
|
||
|
||
cd
|
||
git clone https://git.bouquet24.de/paase/chkip.git
|
||
cd chkip
|
||
mkdir -p ~/.local/bin
|
||
ln -s "$PWD/chkip.py" ~/.local/bin/chkip
|
||
chmod +x ~/.local/bin/chkip
|
||
|
||
echo -e "alias chkip='python3 ~/.local/bin/chkip'" >> $HOME/.bashrc
|
||
source ~/.bashrc
|