{"id":2638,"date":"2016-07-01T01:07:23","date_gmt":"2016-06-30T16:07:23","guid":{"rendered":"http:\/\/tech.akat.info\/?p=2638"},"modified":"2016-07-01T01:07:23","modified_gmt":"2016-06-30T16:07:23","slug":"dbus","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=2638","title":{"rendered":"dbus"},"content":{"rendered":"<h1>\u53c2\u8003URL<\/h1>\n<p><a href=\"http:\/\/d.hatena.ne.jp\/debug-ito\/20130502\/1367487352\">DBus\u30a4\u30f3\u30c8\u30ed\u30b9\u30da\u30af\u30b7\u30e7\u30f3 \u30e1\u30e2<\/a><br \/>\n<a href=\"http:\/\/www.usupi.org\/sysad\/175.html\">D-Bus \u306e\u5b58\u5728\u3092\u611f\u3058\u3066\u307f\u308b<\/a><\/p>\n<h1>\u6982\u8981<\/h1>\n<p>\u30fb\u30e1\u30c3\u30bb\u30fc\u30b8\u30d0\u30b9\u3068\u547c\u3070\u308c\u308b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u9593\u3067\u3084\u308a\u3068\u308a\u3092\u884c\u3046\u305f\u3081\u306e\u3001\u30d7\u30ed\u30bb\u30b9\u9593\u901a\u4fe1(IPC)\u5b9f\u88c5\u306e\u3072\u3068\u3064<br \/>\n\u30fbsystem bus\u3068session bus\u304c\u3042\u308a\u6b86\u3069\u306e\u30b5\u30fc\u30d3\u30b9\u306f\u3069\u3061\u3089\u304b\u306e\u30d0\u30b9\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b<br \/>\n\u30fbdbus \u306f systemd \u306e\u4f9d\u5b58\u30d1\u30c3\u30b1\u30fc\u30b8<br \/>\n\u30fbd-feet\u3092\u5229\u7528\u3057\u3088\u3046\u3068\u3057\u305f\u304c\u3001GUI\u30c4\u30fc\u30eb\u3067CUI\u3067\u306f\u52d5\u4f5c\u3055\u305b\u3089\u308c\u306a\u304b\u3063\u305f<\/p>\n<h1>\u30b3\u30de\u30f3\u30c9<\/h1>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/shimizu# apt-file search \/usr\/bin\/dbus-daemon\r\ndbus: \/usr\/bin\/dbus-daemon\r\nroot@hostname:\/home\/shimizu# dpkg -S \/usr\/bin\/dbus-daemon\r\ndbus: \/usr\/bin\/dbus-daemon\r\n\r\n\r\nroot@hostname:\/home\/shimizu# dbus-send --system --dest=org.freedesktop.DBus --type=method_call --print-reply \/org\/freedesktop\/DBus  org.freedesktop.DBus.Introspectable.Introspect\r\nmethod return sender=org.freedesktop.DBus -&gt; dest=:1.41 reply_serial=2\r\n   string &quot;&lt;!DOCTYPE node PUBLIC &quot;-\/\/freedesktop\/\/DTD D-BUS Object Introspection 1.0\/\/\r\nEN&quot;\r\n&quot;http:\/\/www.freedesktop.org\/standards\/dbus\/1.0\/introspect.dtd&quot;&gt;\r\n&lt;node&gt;\r\n  &lt;interface name=&quot;org.freedesktop.DBus&quot;&gt;\r\n    &lt;method name=&quot;Hello&quot;&gt;\r\n      &lt;arg direction=&quot;out&quot; type=&quot;s&quot;\/&gt;\r\n    &lt;\/method&gt;\r\n    &lt;method name=&quot;RequestName&quot;&gt;\r\n...\r\n\r\n# \u5b58\u5728\u3059\u308b\u30d0\u30b9\u540d\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\r\nroot@hostname:\/home\/shimizu#  dbus-send --system --dest=org.freedesktop.DBus --type=method_call --print-reply  \/org\/freedesktop\/DBus org.freedesktop.DBus.ListNames\r\nmethod return sender=org.freedesktop.DBus -&gt; dest=:1.18 reply_serial=2\r\n   array &#x5B;\r\n      string &quot;org.freedesktop.DBus&quot;\r\n      string &quot;org.freedesktop.login1&quot;\r\n      string &quot;:1.3&quot;\r\n      string &quot;org.freedesktop.systemd1&quot;\r\n      string &quot;:1.4&quot;\r\n      string &quot;:1.18&quot;\r\n   ]\r\n\r\n\r\nroot@hostname:\/home\/shimizu# dbus-send --system --dest=org.freedesktop.systemd1 --type=method_call --print-reply \/org\/freedesktop\/systemd1  org.freedesktop.DBus.Introspectable.Introspect\r\nmethod return sender=:1.3 -&gt; dest=:1.62 reply_serial=2\r\n   string &quot;&lt;!DOCTYPE node PUBLIC &quot;-\/\/freedesktop\/\/DTD D-BUS Object Introspection 1.0\/\/EN&quot;\r\n&quot;http:\/\/www.freedesktop.org\/standards\/dbus\/1.0\/introspect.dtd&quot;&gt;\r\n&lt;node&gt;\r\n &lt;interface name=&quot;org.freedesktop.DBus.Peer&quot;&gt;\r\n  &lt;method name=&quot;Ping&quot;\/&gt;\r\n  &lt;method name=&quot;GetMachineId&quot;&gt;\r\n   &lt;arg type=&quot;s&quot; name=&quot;machine_uuid&quot; direction=&quot;out&quot;\/&gt;\r\n...\r\n\r\n# interface\u306b&quot;org.freedesktop.DBus.Peer&quot;\u3092\u6307\u5b9a\u3057\u3001method\u306b&quot;Ping&quot;\u3092\u6307\u5b9a\u3059\u308b\r\nroot@hostname:\/home\/shimizu# dbus-send --system --dest=org.freedesktop.systemd1 --type=method_call --print-reply \/org\/freedesktop\/systemd1  org.freedesktop.DBus.Peer.Ping\r\nmethod return sender=:1.3 -&gt; dest=:1.63 reply_serial=2\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u8003URL DBus\u30a4\u30f3\u30c8\u30ed\u30b9\u30da\u30af\u30b7\u30e7\u30f3 \u30e1\u30e2 D-Bus \u306e\u5b58\u5728\u3092\u611f\u3058\u3066\u307f\u308b \u6982\u8981 \u30fb\u30e1\u30c3\u30bb\u30fc\u30b8\u30d0\u30b9\u3068\u547c\u3070\u308c\u308b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u9593\u3067\u3084\u308a\u3068\u308a\u3092\u884c\u3046\u305f\u3081\u306e\u3001\u30d7\u30ed\u30bb\u30b9\u9593\u901a\u4fe1(IPC)\u5b9f\u88c5\u306e\u3072\u3068\u3064 \u30fbsystem bus\u3068s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2638"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2638"}],"version-history":[{"count":1,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2638\/revisions"}],"predecessor-version":[{"id":2639,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2638\/revisions\/2639"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}