{"id":264,"date":"2014-04-02T01:47:00","date_gmt":"2014-04-01T16:47:00","guid":{"rendered":"https:\/\/iwatakenichi.com\/2014\/04\/%e3%81%95%e3%81%8f%e3%82%89vps%e3%81%abznc%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab\/"},"modified":"2014-04-02T01:47:00","modified_gmt":"2014-04-01T16:47:00","slug":"%e3%81%95%e3%81%8f%e3%82%89vps%e3%81%abznc%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/iwatakenichi.com\/?p=264","title":{"rendered":"\u3055\u304f\u3089VPS\u306bznc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u4ee5\u524d\u3001\u81ea\u5b85\u306ePC (MMX 133MHz!) \u3067NetBSD\u3092\u904b\u7528\u3057\u3066\u304a\u308a\u307e\u3057\u3066\u3001<br \/>\n\u305d\u306e\u4e0a\u3067IRC\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4(\u3068\u3044\u3046\u306e\u304b\u30d7\u30ed\u30ad\u30b7\u30fc\u3068\u3044\u3046\u306e\u304b)\u3092\u8d70\u3089\u305b\u3066\u3044\u305f\u3093\u3067\u3059\u304c\u3001<br \/>\n\u305a\u3044\u3076\u3093\u524d\u306b\u96f7\u3067\u30de\u30b7\u30f3\u3054\u3068\u3084\u3089\u308c\u307e\u3057\u3066\u3001\u305d\u306e\u307e\u307e\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3092\u6025\u306b\u601d\u3044\u51fa\u3057\u307e\u3057\u305f ^^;<\/p>\n<p>\u4eca\u5ea6\u306f\u3055\u304f\u3089VPS\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306b\u3057\u3066\u3001<br \/>\n\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u306f\u3069\u308c\u306b\u3057\u3088\u3046\u304b\u60a9\u3093\u3060\u306e\u3067\u3059\u304c\u3001\u6700\u8fd1\u306ftiarra\u3088\u308aznc\u306e\u3088\u3046\u306a\u306e\u3067\u3001<br \/>\nznc\u306b\u3057\u3066\u307f\u307e\u3059\u3002\u4ee5\u524d\u52d5\u304b\u3057\u3066\u3044\u305f\u306e\u306f\u306a\u3093\u3060\u3063\u305f\u304b\u3082\u3046\u601d\u3044\u51fa\u305b\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u5e74\u304b ^^;<\/p>\n<p>CentOS\u306fyum\u3067znc\u3092\u5165\u308c\u308c\u3070\u3044\u3044\u3067\u3059\u3002epel\u306b\u5165\u3063\u3066\u3044\u308b\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<pre>\n$ sudo yum -y install znc\n...(\u7565)...\nInstalled:\n  znc.x86_64 0:1.2-1.el6                                                                                                       \n\nComplete!\n<\/pre>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001znc 1.2 \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3057\u305f\u3002\u5358\u306b<\/p>\n<pre>\n$ znc\n<\/pre>\n<p>\u3068\u8d77\u52d5\u3057\u3066\u3084\u308b\u3068\u3001\u304b\u3063\u3066\u306b\u30d0\u30c3\u30af\u30b0\u30e9\u30f3\u30c9\u3067\u8d77\u52d5\u3057\u307e\u3059\u3002\u8d77\u52d5\u3059\u308b\u524d\u306b\u8a2d\u5b9a\u3092<br \/>\n\u3057\u306a\u304f\u3066\u3044\u306f\u3044\u3051\u307e\u305b\u3093\u304c\u3001&#8211;makeconf \u3092\u3064\u3051\u3066\u8d77\u52d5\u3059\u308b\u3068\u5bfe\u8a71\u7684\u306b<br \/>\n\u8a2d\u5b9a\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\n$ znc --makeconf\n[ ok ] Checking for list of available modules... \n[ ** ] Building new config\n...(\u7565)...\n<\/pre>\n<p>\u8a2d\u5b9a\u306f\u9069\u5f53\u306b\u3084\u308a\u307e\u3059\u304c\u3001znc\u3067\u306f\u8907\u6570\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3072\u3068\u3064znc\u3092\u8d77\u52d5\u3059\u308b\u3060\u3051\u3067\u3001<br \/>\n\u8907\u6570\u306e\u4eba\u304b\u3089\u306e\u63a5\u7d9a\u3092\u8a31\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6700\u8fd1\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001\u3072\u3068\u308a\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u3064\u304d\u3001\u8907\u6570\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af<br \/>\n(IRC\u30b5\u30fc\u30d0\u30fc)\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u540c\u6642\u306b\u3042\u3063\u3061\u306e\u30b5\u30fc\u30d0\u30fc\u3068\u3053\u3063\u3061\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u3064\u306a\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u4e3b\u306a\u8a2d\u5b9a\u3092\u629c\u7c8b\u3057\u3066\u304a\u304f\u3068\u3053\u3093\u306a\u304b\u3093\u3058\u3002<\/p>\n<pre>\n[ ?? ] What port would you like ZNC to listen on? (1025 to 65535): 6667 \n       \u2191\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304cznc\u306b\u63a5\u7d9a\u3059\u308b\u30dd\u30fc\u30c8\u306e\u6307\u5b9a\n\n[ ?? ] Would you like ZNC to listen using SSL? (yes\/no) [yes]: yes\n       \u2191\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u306e\u63a5\u7d9a\u306bSSL\u3092\u4f7f\u3046\u304b (yes\u306b\u3057\u307e\u3057\u305f)\n\n[ ?? ] Would you like to create a new pem file now? (yes\/no) [yes]: yes\n[ ok ] Writing Pem file [\/home\/iwa\/.znc\/znc.pem]... \n       \u2191pem\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b\u304b\u3069\u3046\u304b (\u4f5c\u308a\u307e\u3059)\n\n[ ?? ] Would you like ZNC to listen using ipv6? (yes\/no) [no]: no\n       \u2191ipv6 \u306f\u7121\u52b9\u306b\n\n[ ?? ] Listen Host (Blank for all ips): \n       \u2191\u30d6\u30e9\u30f3\u30af\u3067\u3044\u3044\u307f\u305f\u3044\n\n[ ** ] -- Network Modules --\n...(\u7565)...\u30e2\u30b8\u30e5\u30fc\u30eb\u985e\u306f\u305c\u3093\u3076no\u306b\u3057\u3066\u304a\u3044\u3066\u3001\u3042\u3068\u304b\u3089\u8ffd\u52a0\u3059\u308c\u3070\u3044\u3044\u3067\u3057\u3087\u3046\u3002\n\n[ ** ] Now we need to set up a user...\n       \u2191\u30e6\u30fc\u30b6\u30fc\u306e\u4f5c\u6210\u3092\u3057\u307e\u3059\n\n[ ** ] \n[ ?? ] Username (AlphaNumeric): hoge\n[ ?? ] Enter Password: \n[ ?? ] Confirm Password: \n       \u2191\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304cznc\u306b\u63a5\u7d9a\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\n\n[ ?? ] Would you like this user to be an admin? (yes\/no) [yes]: yes\n       \u2191\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304cznc\u306b\u63a5\u7d9a\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\n\n[ ?? ] Nick [hoge]: kenic\n[ ?? ] Alt Nick [kenic_]: kenip\n       \u2191IRC\u306e\u30cb\u30c3\u30af\u306e\u6307\u5b9a\n\n[ ** ] -- IRC Servers --\n[ ** ] -- Channels --\n       \u2191\u5927\u80c6\u306b\u7701\u7565\u3057\u307e\u3059\u304c\u3001IRC\u30b5\u30fc\u30d0\u30fc\u3068\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u8907\u6570\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\n\n[ ** ] To connect to this ZNC you need to connect to it as your IRC server\n[ ** ] using the port that you supplied.  You have to supply your login info\n[ ** ] as the IRC server password like this: user\/network:pass.\n[ ** ] \n[ ** ] Try something like this in your IRC client...\n[ ** ] \/server <znc_server_ip> +16668 iwa:<pass>\n[ ** ] And this in your browser...\n[ ** ] https:\/\/<znc_server_ip>:16668\/\n       \u2191\u6ce8\u610f\u304c\u304d\u3067\u3059\n\n[ ?? ] Launch ZNC now? (yes\/no) [yes]: yes\n       \u2191yes \u3063\u3066\u3059\u308b\u3068\u8d77\u52d5\u3057\u307e\u3059\u3002\n<\/pre>\n<p>\u3067\u304d\u305f\u8a2d\u5b9a\u306f ~\/.znc\/configs\/znc.conf \u306b\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3092\u624b\u3067\u66f8\u304d\u63db\u3048\u308b\u5834\u5408\u306f\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>\nIRC\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067 \/znc SaveConfig\n~\/.znc\/configs\/znc.conf \u3092\u7de8\u96c6\nIRC\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\/znc Rehash\n<\/pre>\n<p>\u8907\u6570\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u6307\u5b9a\u3057\u305f\u3070\u3042\u3044\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3069\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u4f7f\u3044\u305f\u3044\u304b\u3001<br \/>\n\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u6307\u5b9a(\u5207\u66ff)\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089 \/znc jumpnetwork <network\u540d><br \/>\n\u3067\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u305d\u306e\u3064\u3069\u5207\u308a\u66ff\u3048\u308b\u304b\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u63a5\u7d9a\u306e\u8a2d\u5b9a\u3067\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306b<br \/>\n\u300cuser\u540d\/\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u540d:\u30d1\u30b9\u30ef\u30fc\u30c9\u300d\u3068\u3057\u3066\u3001\u3042\u3089\u304b\u3058\u3081\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u6307\u5b9a\u3059\u308b\u304b\u3057\u307e\u3059\u3002<br \/>\n\u3053\u3053\u306e\u3068\u3053\u308d\u304c\u826f\u304f\u308f\u304b\u3089\u306a\u304f\u3066\u5c11\u3057\u60a9\u307f\u307e\u3057\u305f\u3002\u3088\u304f\u307f\u305f\u3089\u3061\u3083\u3093\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u305f\u3093\u3067\u3059\u3051\u3069\u3002<\/p>\n<p>module\u306f\u3044\u308d\u3044\u308d\u3042\u308b\u307f\u305f\u3044\u3067\u3059\u304c\u3001\u3068\u308a\u3042\u3048\u305alog\u3050\u3089\u3044\u306f\u3068\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3067\u3059\u3002IRC\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089<br \/>\n\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002 \/znc loadmodule log \u3068\u3057\u3055\u3048\u3059\u308c\u3070\u3001\u3042\u3068\u306f\u304b\u3063\u3066\u306b ~\/.znc\/users\/hoge\/moddata\/log\/<br \/>\n\u306e\u4e0b\u306b\u3001\u30c1\u30e3\u30f3\u30cd\u30eb\u5225\u3001\u65e5\u4ed8\u5225\u306b\u30ed\u30b0\u304c\u3067\u304d\u307e\u3059\u3002\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u3001\u304f\u308f\u3057\u3044\u3053\u3068\u306f \/znc help \u3067\u308f\u304b\u308b\u307f\u305f\u3044\u3067\u3059!<\/p>\n<p>\u53c2\u8003\u6587\u732e<\/p>\n<ul>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/hideden\/20110822\/1314029426\">tiarra\u3092\u3084\u3081\u3066znc\u306b\u3057\u3066\u307f\u305f<\/a>, <a href=\"http:\/\/d.hatena.ne.jp\/hideden\/\">Perl\u3068\u304bmemo\u3068\u304b\u65e5\u8a18\u3068\u304b\u3002<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u3001\u81ea\u5b85\u306ePC (MMX 133MHz!) \u3067NetBSD\u3092\u904b\u7528\u3057\u3066\u304a\u308a\u307e\u3057\u3066\u3001 \u305d\u306e\u4e0a\u3067IRC\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4(\u3068\u3044\u3046\u306e\u304b\u30d7\u30ed\u30ad\u30b7\u30fc\u3068\u3044\u3046\u306e\u304b)\u3092\u8d70\u3089\u305b\u3066\u3044\u305f\u3093\u3067\u3059\u304c\u3001 \u305a\u3044\u3076\u3093\u524d\u306b\u96f7\u3067\u30de\u30b7\u30f3\u3054\u3068\u3084\u3089\u308c\u307e\u3057\u3066\u3001\u305d\u306e\u307e\u307e\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3092\u6025\u306b\u601d\u3044\u51fa\u3057\u307e\u3057\u305f ^^; \u4eca\u5ea6\u306f\u3055\u304f\u3089VPS\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306b\u3057\u3066\u3001 \u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u306f\u3069\u308c\u306b\u3057\u3088\u3046\u304b\u60a9\u3093\u3060\u306e\u3067\u3059\u304c\u3001\u6700\u8fd1\u306ftiarra\u3088\u308aznc\u306e\u3088\u3046\u306a\u306e\u3067\u3001 znc\u306b\u3057\u3066\u307f\u307e\u3059\u3002\u4ee5\u524d\u52d5\u304b\u3057\u3066\u3044\u305f\u306e\u306f\u306a\u3093\u3060\u3063\u305f\u304b\u3082\u3046\u601d\u3044\u51fa\u305b\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u5e74\u304b ^^; CentOS\u306fyum\u3067znc\u3092\u5165\u308c\u308c\u3070\u3044\u3044\u3067\u3059\u3002epel\u306b\u5165\u3063\u3066\u3044\u308b\u307f\u305f\u3044\u3067\u3059\u3002 $ sudo yum -y install znc &#8230;(\u7565)&#8230; Installed: znc.x86_64 0:1.2-1.el6 Complete! \u3068\u3044\u3046\u308f\u3051\u3067\u3001znc 1.2 \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3057\u305f\u3002\u5358\u306b $ znc \u3068\u8d77\u52d5\u3057\u3066\u3084\u308b\u3068\u3001\u304b\u3063\u3066\u306b\u30d0\u30c3\u30af\u30b0\u30e9\u30f3\u30c9\u3067\u8d77\u52d5\u3057\u307e\u3059\u3002\u8d77\u52d5\u3059\u308b\u524d\u306b\u8a2d\u5b9a\u3092 \u3057\u306a\u304f\u3066\u3044\u306f\u3044\u3051\u307e\u305b\u3093\u304c\u3001&#8211;makeconf \u3092\u3064\u3051\u3066\u8d77\u52d5\u3059\u308b\u3068\u5bfe\u8a71\u7684\u306b \u8a2d\u5b9a\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 $ znc &#8211;makeconf [ ok ] Checking for list of available modules&#8230; [ ** ] Building new config &#8230;(\u7565)&#8230; \u8a2d\u5b9a\u306f\u9069\u5f53\u306b\u3084\u308a\u307e\u3059\u304c\u3001znc\u3067\u306f\u8907\u6570\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3072\u3068\u3064znc\u3092\u8d77\u52d5\u3059\u308b\u3060\u3051\u3067\u3001 \u8907\u6570\u306e\u4eba\u304b\u3089\u306e\u63a5\u7d9a\u3092\u8a31\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6700\u8fd1\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001\u3072\u3068\u308a\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u3064\u304d\u3001\u8907\u6570\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af (IRC\u30b5\u30fc\u30d0\u30fc)\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u540c\u6642\u306b\u3042\u3063\u3061\u306e\u30b5\u30fc\u30d0\u30fc\u3068\u3053\u3063\u3061\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u3064\u306a\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u4e3b\u306a\u8a2d\u5b9a\u3092\u629c\u7c8b\u3057\u3066\u304a\u304f\u3068\u3053\u3093\u306a\u304b\u3093\u3058\u3002 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/iwatakenichi.com\/?p=264\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;\u3055\u304f\u3089VPS\u306bznc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,18,22,20,21],"tags":[],"class_list":["post-264","post","type-post","status-publish","format-standard","hentry","category-centos","category-irc","category-unix","category-vps","category-21"],"_links":{"self":[{"href":"https:\/\/iwatakenichi.com\/index.php?rest_route=\/wp\/v2\/posts\/264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iwatakenichi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iwatakenichi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iwatakenichi.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/iwatakenichi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=264"}],"version-history":[{"count":0,"href":"https:\/\/iwatakenichi.com\/index.php?rest_route=\/wp\/v2\/posts\/264\/revisions"}],"wp:attachment":[{"href":"https:\/\/iwatakenichi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iwatakenichi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iwatakenichi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}