{"id":19097,"date":"2025-05-24T21:22:02","date_gmt":"2025-05-24T19:22:02","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=19097"},"modified":"2025-05-24T21:28:46","modified_gmt":"2025-05-24T19:28:46","slug":"debian-xfce-system-update-per-maus-klick","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2025\/05\/24\/debian-xfce-system-update-per-maus-klick\/","title":{"rendered":"Debian Xfce: System-Update per Maus-Klick"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Systemupdates unter Linux sind essenziell f\u00fcr Sicherheit, Stabilit\u00e4t und Performance &#8211; schlie\u00dfen Sicherheitsl\u00fccken, bringen neue Funktionen und halten das System auf dem aktuellen Stand der Technik.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Damit das so einfach wie m\u00f6glich erledigt wird, hab ich mir ein kleines Skript zurecht gelegt. Es startet per einfachen Mausklick zum einem den regul\u00e4ren Update-Prozess von Debian 12 und \u00fcberpr\u00fcft &#8211; nach erfolgreichen Abschluss &#8211; auf verf\u00fcgbare Aktualisierungen installierter Flatpaks.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Im weiteren Verlauf positioniere ich mir einen sogenannten Starter in die Xfce-Leiste.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">I. Skript anlegen<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u00d6ffnen Sie ein Terminal und f\u00fcgen folgenden Befehl ein:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/usr\/local\/bin\/update-upgrade<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Markieren und kopieren Sie im n\u00e4chsten Schritt folgenden Skript-Inhalt:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n\n# Falls nicht als root gestartet, Skript mit sudo neu starten\nif (( $EUID != 0 )); then\n    exec sudo \"$0\" \"$@\"\nfi\n\n# Farben f\u00fcr die Ausgabe\nTEXT_RESET='\\e&#91;0m'\nTEXT_LIGHTBLUE='\\e&#91;1;34m'\nTEXT_GREEN='\\e&#91;0;32m'\nTEXT_RED_B='\\e&#91;1;31m'\n\necho -e \"${TEXT_LIGHTBLUE}Starte apt update...${TEXT_RESET}\"\nif ! apt update; then\n    echo -e \"${TEXT_RED_B}apt update fehlgeschlagen!${TEXT_RESET}\"\n    exit 1\nfi\necho -e \"${TEXT_GREEN}APT update abgeschlossen...${TEXT_RESET}\"\n\necho -e \"${TEXT_LIGHTBLUE}Starte apt upgrade...${TEXT_RESET}\"\nif ! apt -y upgrade; then\n    echo -e \"${TEXT_RED_B}apt upgrade fehlgeschlagen!${TEXT_RESET}\"\n    exit 1\nfi\necho -e \"${TEXT_GREEN}APT upgrade abgeschlossen...${TEXT_RESET}\"\n\n# Hinweis, falls ein Neustart erforderlich ist\nif &#91; -f \/var\/run\/reboot-required ]; then\n    echo -e \"${TEXT_RED_B}Neustart erforderlich!${TEXT_RESET}\"\nfi\n\n# Flatpak-Update (im Benutzerkontext)\nif command -v flatpak &gt;\/dev\/null 2&gt;&amp;1; then\n    if &#91; -n \"$SUDO_USER\" ]; then\n        echo -e \"${TEXT_LIGHTBLUE}Starte flatpak update...${TEXT_RESET}\"\n        if ! sudo -u \"$SUDO_USER\" flatpak update -y; then\n            echo -e \"${TEXT_RED_B}flatpak update fehlgeschlagen!${TEXT_RESET}\"\n            exit 1\n        fi\n        echo -e \"${TEXT_GREEN}Flatpak update abgeschlossen...${TEXT_RESET}\"\n    else\n        echo -e \"${TEXT_LIGHTBLUE}Flatpak update \u00fcbersprungen (kein Benutzerkontext).${TEXT_RESET}\"\n    fi\nfi<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">und f\u00fcgen Sie diesen in den Nano-Editor ein.<br>Speichern Sie nun mit [strg+O], best\u00e4tigen mit [Enter] und schlie\u00dfen den Nano-Editor mit [strg+X].<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Auszug aus dem Nano-Editor&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_01.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"863\" height=\"540\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_01.png\" alt=\"\" class=\"wp-image-19104\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_01.png 863w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_01-150x94.png 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_01-300x188.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_01-768x481.png 768w\" sizes=\"auto, (max-width: 863px) 100vw, 863px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">II. Skript ausf\u00fchrbar machen<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Im noch offenen Terminal f\u00fcgen Sie dazu folgendes Kommando ein:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chmod +x \/usr\/local\/bin\/update-upgrade<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Mit folgenden Befehl im Terminal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>xfce4-terminal --hold -e \"\/usr\/local\/bin\/update-upgrade\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">l\u00e4sst sich das Skript auf Funktion testen &#8211; best\u00e4tigen Sie die Passwortabfrage&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_03.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"863\" height=\"584\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_03.png\" alt=\"\" class=\"wp-image-19103\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_03.png 863w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_03-150x102.png 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_03-300x203.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_03-768x520.png 768w\" sizes=\"auto, (max-width: 863px) 100vw, 863px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Im Beispiel wurden keine Aktualisierungen registriert &#8211; die einzelnen Schritte erfolgreich quittiert. Das Terminal kann geschlossen werden.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">III. Starter f\u00fcr den Update-Aufruf direkt in die Xfce-Leiste einf\u00fcgen<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Um nicht jedes mal manuell ein Terminal aufrufen zu m\u00fcssen, verwenden wir einen Starter in der Leiste von Xfce.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Dazu folgt ein Rechtsklick in eine freie Stelle in der Leiste rechts, im Kontextmen\u00fc auf <strong>Leiste<\/strong> -&gt; <strong>Leisteneinstellungen<\/strong> -&gt; <strong>Objekte<\/strong> -&gt; <strong>Hinzuf\u00fcgen<\/strong> (4) -&gt; <strong>Starter<\/strong> -&gt; <strong>Hinzuf\u00fcgen<\/strong> (6) &#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_04.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"704\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_04-1024x704.png\" alt=\"\" class=\"wp-image-19106\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_04-1024x704.png 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_04-150x103.png 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_04-300x206.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_04-768x528.png 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_04.png 1128w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Markieren Sie den Starter unter (1) klicken auf (2), vergeben in (4) und (5) passende Bezeichnungen wie Abbildung und f\u00fcgen in (6) folgenden Befehl ein:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>xfce4-terminal --hold -e \"\/usr\/local\/bin\/update-upgrade\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Unter (7) w\u00e4hlen Sie ein passenden Icon aus &#8211; setzen die H\u00e4kchen in (8) und klicken abschlie\u00dfend auf <strong>Erstellen<\/strong> (9)&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_05.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"553\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_05-1024x553.png\" alt=\"\" class=\"wp-image-19107\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_05-1024x553.png 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_05-150x81.png 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_05-300x162.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_05-768x415.png 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_05.png 1445w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Kehren Sie nochmal zur\u00fcck zu den Leisteneinstellungen (Rechtsklick in die Leiste&#8230;) &#8211; klicken auf den Reiter <strong>Objekte<\/strong>, markieren den eben erstellten Starter und verschieben diesen mit den Auf- \/ Ab-Symbolen (2) an die gew\u00fcnschte Position in der Leiste (3)&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_06.png\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" width=\"573\" height=\"851\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_06.png\" alt=\"\" class=\"wp-image-19108\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_06.png 573w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_06-101x150.png 101w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2025\/05\/update_06-202x300.png 202w\" sizes=\"auto, (max-width: 573px) 100vw, 573px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Melden Sie sich vom System ab und wieder an. <br>Ein Klick auf das neue Symbol \u00f6ffnet ein Terminal mit Passwortabfrage. Nun starten der Reihe nach die Aktualisierungs-Routinen f\u00fcr:<br>apt update -&gt; apt upgrade -&gt; flatpak update<br>Sollten Fehler w\u00e4hrend des Update-Prozesses entstehen, erfolgen entsprechende Hinweise &#8211; ebenso f\u00fcr einen evtl. erforderlichen Neustart des Systems.<br>Nach Fertigstellung bleibt das Terminal bewusst ge\u00f6ffnet um Details nachlesen zu k\u00f6nnen.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Anmerkung<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Es w\u00e4re auch m\u00f6glich, den Aktualisierungsvorgang komplett zu automatisieren, z.B. kurz nach Systemstart oder vor dem Herunterfahren, oder, oder&#8230;<br>Doch das m\u00f6chte ich nicht &#8211; ich finde die vorliegende L\u00f6sung als ausreichend und praktikabel.<br>Das Skript kann nat\u00fcrlich auch f\u00fcr andere Desktop-Umgebungen in Debian verwendet werden &#8211; lediglich die Integration von Startern \u00e4ndert sich, falls gew\u00fcnscht.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Titelbild: <a href=\"http:\/\/www.freepik.com\">Designed by Freepik<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"19097\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">33    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"19097\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Systemupdates unter Linux sind essenziell f\u00fcr Sicherheit, Stabilit\u00e4t und Performance &#8211; schlie\u00dfen Sicherheitsl\u00fccken, bringen neue Funktionen und halten das System auf dem aktuellen Stand der Technik. Damit das so einfach wie m\u00f6glich erledigt wird, hab ich mir ein kleines Skript zurecht gelegt. Es startet per einfachen Mausklick zum einem den regul\u00e4ren Update-Prozess von Debian 12 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":19100,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61,17,102,545],"tags":[1347,1275],"class_list":["post-19097","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripts","category-system","category-tipps-system","category-xfce","tag-system-aktualisierung","tag-update"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/19097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=19097"}],"version-history":[{"count":9,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/19097\/revisions"}],"predecessor-version":[{"id":19498,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/19097\/revisions\/19498"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/19100"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=19097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=19097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=19097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}