Fork me on GitHub

Organizations

@github @rss
4 results for bash
  • Niveau de difficulté: Ça peut prendre un peu plus de temps
    Dans ce tutoriel, je montre comment on peut contrôler un bureau Linux via Bash. Les paquets suivants sont nécessaires pour le robot Bash : x – + Terminal $ apt-get install xdotool xclip Ensuite, on peut utiliser toutes les commandes xdotool, par exemple #!/bin/bash #mouse bewegen xdotool mousemove 100 200 #Mouse - Koordinaten erfassen xdotool getmouselocation #Mouse-klick xdotool click 1 Mouse-Klick auf Koordinaten xdotool mousemove 100 200 click 1 #usw.
    bash linux robot roboter linux Created Sun, 04 Apr 2021 00:00:00 +0000
  • Niveau de difficulté: Ça peut prendre un peu plus de temps
    images/featured-image.jpg
    Si vous souhaitez créer une image d’aperçu de la page à partir d’un fichier PDF, vous êtes au bon endroit ! Étape 1 : Créer un dossier de travail Cette commande permet de créer un dossier de travail temporaire : x – + Terminal $ mkdir /tmp/bilder Étape 2 : Séparer la page La commande suivante permet de créer une image de chaque page PDF : x – + Terminal $ convert 716023b632a9cbe6cad3ab368c202288.
    bash linux pdf postscript imagemagick Created Fri, 14 Feb 2020 00:00:00 +0000
  • Niveau de difficulté: Ça peut prendre un peu plus de temps
    images/featured-image.jpg
    Si vous souhaitez éteindre un Raspberry à partir d’une certaine température, vous êtes au bon endroit. J’ai un script qui vérifie la température du CPU par crontab : #!/bin/sh # This script reads the Broadcom SoC temperature value and shuts down if it # exceeds a particular value. # 80ºC is the maximum allowed for a Raspberry Pi. # Get the reading from the sensor and strip the non-number parts SENSOR="`/opt/vc/bin/vcgencmd measure_temp | cut -d "=" -f2 | cut -d "'" -f1`" # -gt only deals with whole numbers, so round it.
    bash cpu cron linux maker Created Fri, 14 Feb 2020 00:00:00 +0000
  • Niveau de difficulté: Ni trop facile, ni trop difficile
    images/featured-image.png
    Si l’on veut intégrer un script bash dans la platine stream d’Elgato, il faut d’abord un script bash. Étape 1 : Créer un script bash : Je crée un fichier nommé “say-hallo.sh” avec le contenu suivant : #!/bin/bash say "hallo" Étape 2 : Définir les droits La commande suivante permet de rendre le fichier exécutable : x – + Terminal $ chmod 755 say-hallo.sh
    bash elgato skript stream-deck Created Fri, 07 Feb 2020 00:00:00 +0000