Debian Wheezy \u3067 GitHub \u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b\u30dc\u30c3\u30c8 Hubot<\/a> \u3092\u52d5\u4f5c\u3055\u305b\u308b\u65b9\u6cd5\u3092\u307e\u3068\u3081\u307e\u3059.
\n\u51fa\u6765\u308b\u9650\u308a, Debian \u6a19\u6e96\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u74b0\u5883\u3092\u6574\u5099\u3057\u307e\u3059.<\/p>\n
Node.js \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f Wheezy \u6a19\u6e96\u3067\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u306a\u3044\u305f\u3081, Debian \u304c\u516c\u5f0f\u306b\u63d0\u4f9b\u3057\u3066\u3044\u308b Backports \u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059.
\n\/etc\/apt\/sources.list \u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3057\u307e\u3059.<\/p>\n
\r\ndeb http:\/\/ftp.jp.debian.org\/debian\/ wheezy-backports main\r\n<\/pre>\napt \u3092\u66f4\u65b0\u3057\u3066, wheezy-backports \u304b\u3089 Node.js \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059.<\/p>\n
\r\nsudo aptitude update\r\nsudo aptitude upgrade\r\nsudo aptitude -t wheezy-backports install nodejs\r\n<\/pre>\nnodejs \u304c\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059.<\/p>\n
\r\n$ nodejs\r\n> console.log("Hello")\r\nHello\r\nundefined\r\n<\/pre>\nnode \u3068\u3044\u3046\u540d\u524d\u3067\u3082 nodejs \u3092\u8d77\u52d5\u51fa\u6765\u308b\u3088\u3046\u306b, \u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u3066\u304a\u304d\u307e\u3059.<\/p>\n
\r\ncd \/usr\/bin\r\nsudo ln -s nodejs node\r\n<\/pre>\nnpm \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n
npm \u306f wheezy-backports \u3067\u3082\u63d0\u4f9b\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067, \u76f4\u63a5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059. \u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059.
\n–no-check-certificate \u306f\u8a3c\u660e\u66f8\u95a2\u4fc2\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u305f\u3081\u4ed8\u52a0\u3057\u3066\u3044\u307e\u3059.<\/p>\n\r\nwget http:\/\/www.npmjs.org\/install.sh --no-check-certificate\r\nsudo sh install.sh\r\n<\/pre>\nnpm \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059.<\/p>\n
\r\n$ npm\r\n\r\nUsage: npm <command>\r\n\r\nwhere <command> is one of:\r\n add-user, adduser, apihelp, author, bin, bugs, c, cache,\r\n completion, config, ddp, dedupe, deprecate, docs, edit,\r\n explore, faq, find, find-dupes, get, help, help-search,\r\n home, i, info, init, install, isntall, issues, la, link,\r\n list, ll, ln, login, ls, outdated, owner, pack, prefix,\r\n prune, publish, r, rb, rebuild, remove, repo, restart, rm,\r\n root, run-script, s, se, search, set, show, shrinkwrap,\r\n star, stars, start, stop, submodule, t, tag, test, tst, un,\r\n uninstall, unlink, unpublish, unstar, up, update, v,\r\n version, view, whoami\r\n<\/pre>\nRedis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n
Hubot \u306e\u30c7\u30fc\u30bf\u3092\u6c38\u7d9a\u5316\u3057\u305f\u3044\u5834\u5408\u306f, Redis \u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059.<\/p>\n
\r\nsudo aptitude install redis-server\r\n<\/pre>\nHubot \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n
npm \u3092\u4f7f\u3063\u3066, Hubot \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059.<\/p>\n
\r\nsudo npm install -g hubot coffee-script\r\n<\/pre>\nHubot \u306e\u4f5c\u6210<\/h3>\n
Hubot \u3092\u4f5c\u6210\u3057\u3066, \u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059.
\n\u8a73\u7d30\u306f Hubot \u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044.<\/p>\n\r\n$ hubot --create myhubot\r\n$ cd myhubot\r\n$ bin\/hubot\r\nHubot> hubot help\r\nHubot> Events:\r\ndebug - {user: <user object to send message to>}\r\nHubot <user> doesn't have <role> role - Removes a role from a user\r\nHubot <user> has <role> role - Assigns a role to a user\r\nHubot <user> is a badass guitarist - assign a role to a user\r\nHubot <user> is not a badass guitarist - remove a role from a user\r\n<\/pre>\n\u53c2\u8003<\/h3>\n
Deploying Hubot to UNIX<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"