/etc/xdg/lxsession/Lubuntu/autostart sollte stehen ./wetter.sh /usr/bin/numlockx on raspi:https://raspberrytips.com/autostart-a-program-on-boot/ Raspberry Pi Autostart Skript Traditional System Method (All Users): Beginning with the Dec 2020 release, Raspberry Pi OS now uses the /etc/xdg/autostart directory to start some background apps for printer etc. You can use this directory to start apps or scripts which will apply to all users. Note that autostart here is a directory and not a file. This method does not use an autostart file. It uses filename.desktop files instead. See example .desktop file below. Traditional User Method (Specific User): The traditional method also has a user based option. It requires your filename.desktop file(s) to be located here for pi user /home/pi/.config/autostart/ or for other user /home/{user}/.config/autostart/ You may need to create the auotstart directory if not present Note that the System autostart file OR User autostart file if present, is run and processed along with the .desktop file(s). In addition the .desktop files for system /etc/xdg/autostart and the .desktop files in the users home directory /home/pi/.config/autostart/ will all be processed. Example .desktop file to start File Manager: Code: Select all [Desktop Entry] Name=File Manager Exec=pcmanfm Type=Application Give the file a unique name such as pcm.desktop and place it in /etc/xdg/autostart for system wide all users or /home/pi/.config/autostart for specific user. You can have multiple .desktop files. Als erstes muss im Verzeichnis /etc/init.d/ ein Skript erstellt werden, mittels welchem das Programm gestartet wird, daher erstellen wir ein Skript (es muss nicht unbedingt eine Datei-Endung haben) sudo nano /etc/init.d/NameDesSkripts mit folgendem Inhalt: #! /bin/sh ### BEGIN INIT INFO # Provides: noip # Required-Start: $syslog # Required-Stop: $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: noip server # Description: ### END INIT INFO case "$1" in start) echo "noip wird gestartet" # Starte Programm /usr/local/bin/noip2 ;; stop) echo "noip wird beendet" # Beende Programm killall noip2 ;; *) echo "Benutzt: /etc/init.d/noip {start|stop}" exit 1 ;; esac exit 0 Anstelle von noip2 kann hier natürlich auch jeden andere installierte Programm stehen, aber sei vorsichtig, dass auf keine Benutzerinteraktion gewartet wird (wie das Bestätigen bei apt-get), da es im schlimmsten Fall dazu kommt, dass beim booten auf die Eingabe gewartet wird und der Pi nicht startet. Als nächstes weisen wir die benötigten Rechte zu (Lesen & Schreiben) sudo chmod 755 /etc/init.d/NameDesSkripts und testen das Skript indem wir es starten sudo /etc/init.d/NameDesSkripts start und gleich wieder stoppen: sudo /etc/init.d/NameDesSkripts stop Damit das Skript beim booten auch aufgerufen wird, führen wir folgendes aus: sudo update-rc.d NameDesSkripts defaults Nun sollte das Programm bei starten auch ausgeführt werden. Solltest du eines Tages dich umentscheiden und das Programm aus dem Autostart nehmen wollen, kannst du dies mit: sudo update-rc.d -f NameDesSkripts remove