{"id":1746,"date":"2011-02-07T09:07:59","date_gmt":"2011-02-07T08:07:59","guid":{"rendered":"http:\/\/www.bdjl.de\/localhost\/?p=1746"},"modified":"2017-03-01T12:10:50","modified_gmt":"2017-03-01T11:10:50","slug":"usv","status":"publish","type":"post","link":"https:\/\/www.bdjl.de\/localhost\/?p=1746","title":{"rendered":"USV"},"content":{"rendered":"<p>Der Strom &#8222;wackelt&#8220; bei uns in Nehren &#8211; oder bei mir im Haus. Auf jeden Fall zuckte immer mal wieder einer meiner Bildschirme. Also hab ich mir eine USV zugelegt &#8211; von APC, damit auch ja nix schief geht.<\/p>\n<p>Die Grundeinrichtung war recht simpel:<\/p>\n<blockquote><p>sudo apt-get install gapcmon<\/p><\/blockquote>\n<p>installiert die grafische Oberfl\u00e4che f\u00fcr apcmon f\u00fcr gnome, vor allem jedoch den Daemon apcupsd. Die Einrichtung dieses Daemons ist hier umfassend beschrieben:<\/p>\n<p><a href=\"http:\/\/wiki.ubuntuusers.de\/USV\/Apcupsd\" target=\"_blank\">http:\/\/wiki.ubuntuusers.de\/USV\/Apcupsd<\/a><\/p>\n<h3>gnome<\/h3>\n<p>Nach der Installation liefert gnome unter \/System \/Einstellungen \/Energieverwaltung grundlegende Konfigurationsm\u00f6glichkeiten f\u00fcr den Desktop:<\/p>\n<p><a href=\"http:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/Einstellungen-der-Energieverwaltung_001.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1763\" title=\"Einstellungen der Energieverwaltung_001\" src=\"http:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/Einstellungen-der-Energieverwaltung_001-640x295.png\" alt=\"\" width=\"640\" height=\"295\" srcset=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/Einstellungen-der-Energieverwaltung_001-640x295.png 640w, https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/Einstellungen-der-Energieverwaltung_001.png 848w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<h3>gapcmon<\/h3>\n<p>Wer es ein wenig bunter haben will, greift direkt auf gapcmon zu:<\/p>\n<p><a href=\"http:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/gapcmon-UPS-Information-Panels-localhost_001.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1747\" title=\"gapcmon: UPS Information Panels {localhost}_001\" src=\"http:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/gapcmon-UPS-Information-Panels-localhost_001-640x493.png\" alt=\"\" width=\"640\" height=\"493\" srcset=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/gapcmon-UPS-Information-Panels-localhost_001-640x493.png 640w, https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/gapcmon-UPS-Information-Panels-localhost_001.png 644w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Sollte man auf die Idee kommen, das tray icon von gapcmon nutzen zu wollen, rennt man gegen einen wohl schon l\u00e4ngere Zeit bestehenden <a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/gapcmon\/+bug\/707177\" target=\"_blank\">bug<\/a>.<\/p>\n<p><a href=\"http:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/gapcmon-UPS-Information-Panels_002.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1748\" title=\"gapcmon: UPS Information Panels_002\" src=\"http:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/gapcmon-UPS-Information-Panels_002-640x414.png\" alt=\"\" width=\"640\" height=\"414\" srcset=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/gapcmon-UPS-Information-Panels_002-640x414.png 640w, https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/gapcmon-UPS-Information-Panels_002.png 648w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Zwar wird die gew\u00fcnschte Funktionalit\u00e4t nun im Benachrichtigungsfeld zur Verf\u00fcgung gestellt, man sieht diese jedoch nicht, weil das Icon fehlt. Vielmehr befindet sich dort nun eine kaum wahrnehmbare d\u00fcnne Linie, die auch USV Statusmeldungen ausgibt, wenn man mit der Maus dr\u00fcber f\u00e4hrt.<\/p>\n<p>Nur ein extrem fummeliger Rechtsklick auf diese d\u00fcnne Linie f\u00fchrt einen dann wieder zur\u00fcck zum Einstellungsfenster, in dem man die H\u00e4kchen in den Checkboxen f\u00fcr das tray icon wieder entfernen kann.<\/p>\n<p>Ein workaround ist <a href=\"http:\/\/ubuntuforums.org\/showthread.php?t=1382824\" target=\"_blank\">hier<\/a> beschrieben &#8211; dieser stammt jedoch aus dem Jahr 2008 und ich habe nicht getestet, ob das heute noch so zu l\u00f6sen ist.<\/p>\n<h3>Apache<\/h3>\n<p>Wer mit seinem lokalen Apachen gucken will, kann apcuspd-cgi installieren. Ubuntu tr\u00e4gt dann die n\u00f6tigen Ver\u00e4nderungen f\u00fcr den Apachen selbst ein:<\/p>\n<blockquote><p>ScriptAlias \/cgi-bin\/ \/usr\/lib\/cgi-bin\/<br \/>\n&lt;Directory &#8222;\/usr\/lib\/cgi-bin&#8220;&gt;<br \/>\nAllowOverride None<br \/>\nOptions +ExecCGI -MultiViews +SymLinksIfOwnerMatch<br \/>\nOrder allow,deny<br \/>\nAllow from all<br \/>\n&lt;\/Directory&gt;<\/p><\/blockquote>\n<p>Das l\u00e4sst sich nun noch anpassen &#8211; out of the box ist die Anzeige hier zu finden, nachdem man den Apachen neu gestartet hat:<\/p>\n<blockquote><p>http:\/\/localhost\/cgi-bin\/apcupsd\/multimon.cgi<\/p><\/blockquote>\n<p><a href=\"http:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/apc_004.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1756\" title=\"apc_004\" src=\"http:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/apc_004-640x91.png\" alt=\"\" width=\"640\" height=\"91\" srcset=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/apc_004-640x91.png 640w, https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/apc_004.png 1021w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Ein Klick auf Local Host bringt das folgende Fensterchen in den Browser:<\/p>\n<p><a href=\"http:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/apc_005.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1755\" title=\"apc_005\" src=\"http:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/apc_005-640x428.png\" alt=\"\" width=\"640\" height=\"428\" srcset=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/apc_005-640x428.png 640w, https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2011\/02\/apc_005.png 867w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Das reicht f\u00fcr den schnellen Blick im Alltag &#8211; ist jedoch noch nicht wirklich sch\u00f6n. In<\/p>\n<blockquote><p>\/etc\/apcupsd\/<\/p><\/blockquote>\n<p>liegen genug Dateien, um den Output anzupassen &#8211; vor allem die apcupsd.css sollte einen Blick erhalten.<\/p>\n<p>Mehr Informationen hier: <a href=\"http:\/\/www.apcupsd.org\/manual\/\" target=\"_blank\">http:\/\/www.apcupsd.org\/manual\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Der Strom &#8222;wackelt&#8220; bei uns in Nehren &#8211; oder bei mir im Haus. Auf jeden Fall zuckte immer mal wieder einer meiner Bildschirme. Also hab ich mir eine USV zugelegt &#8211; von APC, damit auch ja nix schief geht. Die Grundeinrichtung war recht simpel: sudo apt-get install gapcmon installiert die grafische Oberfl\u00e4che f\u00fcr apcmon f\u00fcr [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[105,104],"class_list":["post-1746","post","type-post","status-publish","format-standard","hentry","category-linux","tag-strom","tag-usv"],"_links":{"self":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/1746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1746"}],"version-history":[{"count":22,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/1746\/revisions"}],"predecessor-version":[{"id":4988,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/1746\/revisions\/4988"}],"wp:attachment":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}