{"id":8050,"date":"2017-04-24T21:09:53","date_gmt":"2017-04-24T19:09:53","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=8050"},"modified":"2022-03-16T18:48:04","modified_gmt":"2022-03-16T17:48:04","slug":"openhab2-apache-karaf-konsole-starten-osgi-feeling-on-raspberry-pi","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=8050","title":{"rendered":"OpenHAB2 Apache Karaf Konsole starten &#8211; OSGI Feeling on Raspberry Pi"},"content":{"rendered":"<p>OSGI Feeling on Raspberry Pi!<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Karaf.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Karaf.png\" alt=\"\" width=\"2732\" height=\"2048\" class=\"aligncenter size-full wp-image-8056\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Karaf.png 2732w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Karaf-300x225.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Karaf-768x576.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Karaf-1024x768.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Wenn man auf der Raspberry Pi Konsole ist, kann die <a href=\"https:\/\/karaf.apache.org\/\" target=\"_blank\" rel=\"noopener\">Apache Karaf<\/a> Konsole wie folgt gestartet werden:<\/p>\n<pre class=\"lang:default decode:true \" >\r\n\r\n# ssh Verbindung mit User openhab auf Port 8101\r\n\r\nssh openhab@localhost -p 8101\r\n\r\n# wenn die Passwortabfrage kommt eingeben: habopen\r\n<\/pre>\n<p>Nicht ungeduldig werden, beim 1. Aufruf kann es einige Minuten dauer, bis die Konsole startet. Beim 1. Aufruf kommt noch eine Sicherheitsabfrage mit Key, da mit &#8222;<strong>yes<\/strong>&#8220; best\u00e4tigen.<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.28.00.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.28.00.png\" alt=\"\" width=\"833\" height=\"468\" class=\"aligncenter size-full wp-image-8051\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.28.00.png 833w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.28.00-300x169.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.28.00-768x431.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Dann mal alle OpenHAB Bundel listen, um die jeweiligen Versionen anzuzeigen:<!--more--><\/p>\n<pre class=\"lang:default decode:true \" >\r\n\r\nbundle:list | grep openHAB\r\n\r\n<\/pre>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.34.38.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.34.38.png\" alt=\"\" width=\"1019\" height=\"333\" class=\"aligncenter size-full wp-image-8052\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.34.38.png 1019w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.34.38-300x98.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.34.38-768x251.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Oder wenn man alle <strong>things<\/strong> sehen will:<\/p>\n<pre class=\"lang:default decode:true \" >\r\nsmarthome:things list<\/pre>\n<p>Oder alle <strong>Items<\/strong> listen:<\/p>\n<pre class=\"lang:default decode:true \" >\r\nsmarthome:items<\/pre>\n<p>Oder alle gestartete Feature:<\/p>\n<pre class=\"lang:default decode:true \" >\r\nfeature:list | grep Started\r\n<\/pre>\n<p>Oder eine ziemlich lange Feature Liste:<\/p>\n<pre class=\"lang:default decode:true \" >feature:list<\/pre>\n<p>Manchmal braucht man zu einer Komponente weitere Infos. Das geht mit<\/p>\n<pre class=\"lang:default decode:true \" >feature:info Komponente\r\n# z.B.\r\nfeature:info openhab-binding-weather1\r\n<\/pre>\n<p>Als Ergebnis erhl\u00e4lt man z.B.:<\/p>\n<pre class=\"lang:default decode:true \" >Feature openhab-binding-weather1 1.9.0\r\nDescription:\r\n  Weather Binding\r\nFeature has no configuration\r\nFeature configuration files:\r\n  ${openhab.conf}\/services\/weather.cfg\r\nFeature depends on:\r\n  openhab-runtime-base 0.0.0\r\n  openhab-runtime-compat1x 0.0.0\r\nFeature contains followed bundles:\r\n  mvn:org.openhab.binding\/org.openhab.binding.weather\/1.9.0 start-level=80\r\nFeature has no conditionals. <\/pre>\n<p>Wenn man <strong>loggen<\/strong> will, es gibt diese Befehle <strong>help log<\/strong>:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.52.24.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.52.24.png\" alt=\"\" width=\"1040\" height=\"306\" class=\"aligncenter size-full wp-image-8055\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.52.24.png 1040w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.52.24-300x88.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.52.24-768x226.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/04\/Bildschirmfoto-2017-04-24-um-20.52.24-1024x301.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Allso auch mit <strong>log:tail<\/strong> schauen, was so aktuell vor sich geht.<\/p>\n<p>Verlassen der Konsole mit <strong>logout<\/strong>.<\/p>\n<p>Auf der Konsole k\u00f6nnen mit der <strong>TAB<\/strong> Taste auch eine Befehlserg\u00e4nzung durchgef\u00fchrt werden.<\/p>\n<p>Weiter Beispiele hier.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OSGI Feeling on Raspberry Pi! Wenn man auf der Raspberry Pi Konsole ist, kann die Apache Karaf Konsole wie folgt gestartet werden: # ssh Verbindung mit User openhab auf Port 8101 ssh openhab@localhost -p 8101 # wenn die Passwortabfrage kommt eingeben: habopen Nicht ungeduldig werden, beim 1. Aufruf kann es einige Minuten dauer, bis die &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.wenzlaff.de\/?p=8050\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eOpenHAB2 Apache Karaf Konsole starten &#8211; OSGI Feeling on Raspberry Pi\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2807,2678],"tags":[346,2813,345,1687,2808,2679],"class_list":["post-8050","post","type-post","status-publish","format-standard","hentry","category-openhab2","category-osgi","tag-console","tag-karaf","tag-konsole","tag-openhab","tag-openhab2","tag-osgi"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/8050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8050"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/8050\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8050"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}