Dans la vidéo précédente je terminais sur une démonstration qui montrait le bon fonctionnement de la fonction bash sous Linux que l’on venait d’implémenter. Mais en regardant plus tard la vidéo, je me suis rendu compte qu’il y avait en fait une erreur : une bonne occasion pour debugguer Christophe Casalegno Vous pouvez me suivre …
Lire la suite
Dans cette vidéo je vous montre comment écrire très simplement une nouvelle fonction depuis une première fonction différente mais avec une structure similaire. Christophe Casalegno Vous pouvez me suivre sur : Twitter | Facebook | Linkedin | Telegram | Youtube
En video : Comment coder des scripts bash pour Linux de plusieurs milliers lignes de code facilement en utilisant les variables les fonctions et source. Christophe Casalegno Vous pouvez me suivre sur : Twitter | Facebook | Linkedin | Telegram | Youtube
Ce petit script bash vous permet d’installer facilement jitsi sur un serveur debian linux en une ligne de commande. Pour l’utiliser rien de plus facile : il vous faut un serveur debian 9 (peut fonctionner sous debian 10 mais je n’ai pas effectué de test), puis télécharger le fichier et l’exécuter en précisant en paramètre …
Lire la suite
Bonsoir, aujourd’hui j’ai décidé de vous partager quelques unes des fonctions bash que j’utilise dans mes scripts shell. Pour chacune je vous dit ce qu’elle fait. Il s’agit de microfonctions simples à comprendre et modifier si besoin. Le fichier complet contenant les fonctions est également téléchargeable depuis la page contributions. scpcopy : Cette fonction bash …
Lire la suite
Hi all, after showing you how to simply check load average or memory usage on linux, today i’ll simply show you how to check disk space and take action if a threshold is reached. We’ll simply use df, grep, awk, cut and if/then to do this : Just put it in your crontab and you’ll …
Lire la suite
In your admin work it can be useful to check free memory and take action on threshold. The most tools don’t show you a realistic state of your memory. For example if you launch « top » command on a server, you’ll obtain an information like this : If you use the « free » command, you’ll obtain the …
Lire la suite
WordPress « Pingback » DDoS attacks can generate a lot of requests to your website that can affect performances and availability. You can recognize easily this attacks : you just need to do a tail -f on your logs and you’ll probably see thousand of request that have a User-Agent « WordPress xxxx » on it. I don’t think …
Lire la suite
When you work for a MSP, a hosting company or a cloud operator, sometimes you need to delete a lot of dns zone in one time. If you need to delete 1500 zones with your hand and you keyboard, you ‘ll need week to do the job. So let me show you how you can …
Lire la suite
Hi all, install bind 9 on debian 8 and chroot it isn’t a complicated task. But that’s steal a precious time for doing something else. So this is just a tiny post to simplify you this way First Step : install Debian 8 Second step : Third step : just use wget to download the …
Lire la suite