{"id":2067,"date":"2015-08-29T23:15:26","date_gmt":"2015-08-29T14:15:26","guid":{"rendered":"http:\/\/tech.akat.info\/?p=2067"},"modified":"2015-08-30T18:07:09","modified_gmt":"2015-08-30T09:07:09","slug":"ajenti-%e3%82%b5%e3%83%bc%e3%83%90%e7%ae%a1%e7%90%86%e3%83%84%e3%83%bc%e3%83%ab-on-jessie","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=2067","title":{"rendered":"Ajenti-\u30b5\u30fc\u30d0\u7ba1\u7406\u30c4\u30fc\u30eb on jessie"},"content":{"rendered":"<h1>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<p>\u516c\u5f0f\u30b5\u30a4\u30c8\u306b\u4e01\u5be7\u306a\u8aac\u660e\u304c\u3042\u308b<br \/>\n<a href=\"http:\/\/ajenti.org\/#section-downloads\">ajenti-download<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/shimizu# wget http:\/\/repo.ajenti.org\/debian\/key -O- | apt-key add -\r\n...\r\nOK\r\nroot@hostname:\/home\/shimizu# echo &quot;#ajenti&quot; &gt;&gt; \/etc\/apt\/sources.list\r\nroot@hostname:\/home\/shimizu# echo &quot;deb http:\/\/repo.ajenti.org\/debian main main debian&quot; &gt;&gt; \/etc\/apt\/sources.list\r\nroot@hostname:\/home\/shimizu# aptitude update\r\n...\r\nroot@hostname:\/home\/shimizu# aptitude install ajenti\r\n\u4ee5\u4e0b\u306e\u65b0\u898f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\r\n  ajenti gir1.2-glib-2.0{a} libgirepository-1.0-1{a} libwebp5{a} libwebpdemux1{a} libwebpmux1{a} python-catcher{a} python-daemon{a} python-dbus{a} python-dbus-dev{a}\r\n  python-exconsole{a} python-gevent{a} python-gevent-socketio{a} python-gevent-websocket{a} python-gi{a} python-greenlet{a} python-imaging{a} python-ldap{a}\r\n  python-lockfile{a} python-mako{a} python-markupsafe{a} python-passlib{a} python-pil{a} python-psutil{a} python-reconfigure{a} python-requests{a}\r\n\u66f4\u65b0: 0 \u500b\u3001\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: 26 \u500b\u3001\u524a\u9664: 0 \u500b\u3001\u4fdd\u7559: 4 \u500b\u3002\r\n\r\nroot@hostname:\/home\/shimizu# netstat -anp | grep 8000\r\ntcp        0      0 0.0.0.0:8000            0.0.0.0:*               LISTEN      6743\/python\r\n<\/pre>\n<p>\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u305f\u304c\u3001\u4ee5\u4e0b\u30a8\u30e9\u30fc<\/p>\n<pre class=\"brush: plain; title: \u30a8\u30e9\u30fc\u5185\u5bb9; notranslate\" title=\"\u30a8\u30e9\u30fc\u5185\u5bb9\">\r\nroot@hostname:\/home\/shimizu# tail -f \/var\/log\/ajenti\/ajenti.log\r\nTraceback (most recent call last):\r\n  File &quot;\/usr\/lib\/python2.7\/dist-packages\/gevent\/greenlet.py&quot;, line 327, in run\r\n    result = self._run(*self.args, **self.kwargs)\r\n  File &quot;\/usr\/lib\/python2.7\/dist-packages\/gevent\/server.py&quot;, line 102, in wrap_socket_and_handle\r\n    ssl_socket = self.wrap_socket(client_socket, **self.ssl_args)\r\n  File &quot;\/usr\/lib\/python2.7\/dist-packages\/gevent\/ssl.py&quot;, line 382, in wrap_socket\r\n    ciphers=ciphers)\r\n  File &quot;\/usr\/lib\/python2.7\/dist-packages\/gevent\/ssl.py&quot;, line 84, in __init__\r\n    ctx = SSLContext(ssl_version)\r\nNameError: global name 'SSLContext' is not defined\r\n&lt;Greenlet at 0x7fbb0df6d050: &lt;bound method SocketIOServer.wrap_socket_and_handle of &lt;SocketIOServer at 0x7fbb0dfa8e90 fileno=8 address=0.0.0.0:8000&gt;&gt;(&lt;socket at 0x7fbb16401e50 fileno=13 sock=49.212.20, ('119.150.43.89', 55253))&gt; failed with NameError\r\n<\/pre>\n<p><a href=\"https:\/\/github.com\/ajenti\/ajenti\/issues\/702\">gevent\u306ebug<\/a>\u306e\u6a21\u69d8<br \/>\neasy_install\u3067gevent\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u304c<br \/>\n<a href=\"https:\/\/code.google.com\/p\/goagent\/issues\/detail?id=18773\">import ssl<\/a>\u3092\u3044\u308c\u308b\u3068\u89e3\u6c7a\u3059\u308b\u3068\u3044\u3046\u8a18\u4e8b\u304c\u3042\u3063\u305f\u305f\u3081<br \/>\neasy_install\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fgevent\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001ajenti\u304c\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305forz<\/p>\n<pre class=\"brush: plain; title: \u30a8\u30e9\u30fc\u5bfe\u5fdc; notranslate\" title=\"\u30a8\u30e9\u30fc\u5bfe\u5fdc\">\r\nroot@hostname:\/home\/shimizu# aptitude purge ajenti\r\n...\r\nroot@hostname:\/home\/shimizu# aptitude install python-setuptools python-dev\r\n\u4ee5\u4e0b\u306e\u65b0\u898f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\r\n  libpython-dev{a} python-dev python-setuptools python2.7-dev{a}\r\n...\r\nroot@hostname:\/home\/shimizu# easy_install -U gevent\r\n...\r\nroot@hostname:\/home\/shimizu# easy_install -m gevent\r\n...\r\nroot@hostname:\/home\/shimizu# cd \/usr\/local\/lib\/python2.7\/dist-packages\/\r\n...\r\nroot@hostname:\/usr\/local\/lib\/python2.7\/dist-packages# rm -R gevent-1.1b3-py2.7-linux-x86_64.egg\r\n...\r\nroot@hostname:\/usr\/local\/lib\/python2.7\/dist-packages# aptitude install ajenti\r\n...\r\n<\/pre>\n<h1>\u30ed\u30b0\u30a4\u30f3\u3068\u753b\u9762<\/h1>\n<p>Username:root<br \/>\nPassword:admin<br \/>\n<a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/08\/2015-08-29_202106.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/08\/2015-08-29_202106-300x182.png\" alt=\"2015-08-29_202106\" width=\"300\" height=\"182\" class=\"alignnone size-medium wp-image-2069\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/08\/2015-08-29_202106-300x182.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/08\/2015-08-29_202106-660x400.png 660w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/08\/2015-08-29_202106.png 662w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/08\/2015-08-29_210208.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/08\/2015-08-29_210208-300x202.png\" alt=\"2015-08-29_210208\" width=\"300\" height=\"202\" class=\"alignnone size-medium wp-image-2068\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/08\/2015-08-29_210208-300x202.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/08\/2015-08-29_210208-660x444.png 660w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/08\/2015-08-29_210208.png 1001w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h1>\u30c7\u30d0\u30c3\u30af\u65b9\u6cd5<\/h1>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/shimizu# ajenti-panel -v\r\n30.08.2015 11:55 ajenti-panel:105              INFO  Using config file \/etc\/ajenti\/config.json\r\n30.08.2015 11:55 ajenti-panel:130              INFO  Ajenti starting in foreground\r\n...\r\n<\/pre>\n<h1>\u53c2\u8003URL<\/h1>\n<p>\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u30c4\u30fc\u30eb\u300cAjenti\u300d\u304c\u306a\u304b\u306a\u304b\u826f\u3055\u3052<br \/>\nhttp:\/\/qiita.com\/kijtra\/items\/cda3648ed06410f492ef<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u516c\u5f0f\u30b5\u30a4\u30c8\u306b\u4e01\u5be7\u306a\u8aac\u660e\u304c\u3042\u308b ajenti-download root@hostname:\/home\/shimizu# wget http:\/\/repo.ajenti.org\/debian\/key -O-  [&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":[80,68],"tags":[79],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2067"}],"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=2067"}],"version-history":[{"count":6,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2067\/revisions"}],"predecessor-version":[{"id":2085,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2067\/revisions\/2085"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}