Info

今更だけど、最近IRCを使う機会が増えてきて、ちょっといじってみた。MSN, Skypeとか今時のメッセンジャーと違って、メッセージログが保存されない、自分のステータスとか相手に伝わらない。それに致命的のが自分がオフラインの時にメンバーがなに喋ったかがわからない。これらの弱点を補うのがZNCだ
http://znc.in

1. CentOSにインストール

$ sudo yum update
$ sudo yum search znc
$ sudo yum install znc
$ which znc
/usr/bin/znc

$ znc -v
ZNC 1.0 - http://znc.in
IPv6: yes, SSL: yes, DNS: threads
$ 

2. 設定&起動

$ znc --makeconf
[ ok ] Checking for list of available modules… 
[ ** ] Building new config
[ ** ] 
[ ** ] First let's start with some global settings…
[ ** ] 
[ ?? ] What port would you like ZNC to listen on? (1025 to 65535): 6667
[ ?? ] Would you like ZNC to listen using SSL? (yes/no) [no]: 
[ ?? ] Would you like ZNC to listen using ipv6? (yes/no) [yes]: 
[ ?? ] Listen Host (Blank for all ips): 
[ ok ] Verifying the listener… 
[ ** ] 
[ ** ] -- Global Modules --
[ ** ] 
[ ** ] +-----------+----------------------------------------------------------+
[ ** ] | Name | Description |
[ ** ] +-----------+----------------------------------------------------------+
[ ** ] | partyline | Internal channels and queries for users connected to znc |
[ ** ] | webadmin | Web based administration module |
[ ** ] +-----------+----------------------------------------------------------+
[ ** ] And 9 other (uncommon) modules. You can enable those later.
[ ** ] 
[ ?? ] Load global module <partyline>? (yes/no) [no]: 
[ ?? ] Load global module <webadmin>? (yes/no) [no]: yes
[ ** ] 
[ ** ] Now we need to set up a user…
[ ** ] 
[ ?? ] Username (AlphaNumeric): dongri
[ ?? ] Enter Password: 
[ ?? ] Confirm Password: 
[ ?? ] Would you like this user to be an admin? (yes/no) [yes]: 
[ ?? ] Nick [dongri]: 
[ ?? ] Alt Nick [dongri_]: 
[ ?? ] Ident [dongri]: 
[ ?? ] Real Name [Got ZNC?]: Dongri Jin
[ ?? ] Bind Host (optional): 
[ ?? ] Number of lines to buffer per channel [50]: 
[ ?? ] Would you like to clear channel buffers after replay? (yes/no) [yes]: 
[ ?? ] Default channel modes [+stn]: 
[ ** ] 
[ ** ] -- User Modules --
[ ** ] 
[ ** ] +--------------+------------------------------------------------------------------------------------------+
[ ** ] | Name | Description |
[ ** ] +--------------+------------------------------------------------------------------------------------------+
[ ** ] | chansaver | Keep config up-to-date when user joins/parts |
[ ** ] | controlpanel | Dynamic configuration through IRC. Allows editing only yourself if you're not ZNC admin. |
[ ** ] | perform | Keeps a list of commands to be executed when ZNC connects to IRC. |
[ ** ] +--------------+------------------------------------------------------------------------------------------+
[ ** ] And 22 other (uncommon) modules. You can enable those later.
[ ** ] 
[ ?? ] Load module <chansaver>? (yes/no) [no]: 
[ ?? ] Load module <controlpanel>? (yes/no) [no]: 
[ ?? ] Load module <perform>? (yes/no) [no]: 
[ ** ] 
[ ?? ] Would you like to set up a network? (yes/no) [no]: 
[ ** ] 
[ ?? ] Would you like to set up another user? (yes/no) [no]: 
[ ok ] Writing config [/home/dongri/.znc/configs/znc.conf]… 
[ ** ] 
[ ** ] To connect to this ZNC you need to connect to it as your IRC server
[ ** ] using the port that you supplied. You have to supply your login info
[ ** ] as the IRC server password like this: user/network:pass.
[ ** ] 
[ ** ] Try something like this in your IRC client…
[ ** ] /server <znc_server_ip> 6667 dongri:<pass>
[ ** ] And this in your browser…
[ ** ] http://<znc_server_ip>:6667/
[ ** ] 
[ ?? ] Launch ZNC now? (yes/no) [yes]: 
[ ok ] Opening config [/home/dongri/.znc/configs/znc.conf]… 
[ ok ] Loading global module [webadmin]... [/usr/lib64/znc/webadmin.so]
[ ok ] Binding to port [6667]… 
[ ** ] Loading user [dongri]
[ ok ] Forking into the background... [pid: 16861]
[ ** ] ZNC 1.0 - http://znc.in

3. クライアント設定
クライアントはLimeChatを使ってるので
menu -> Server -> Add Server…
znc add server

4. ステータス設定
awaynick設定
http://wiki.znc.in/Awaynick
メッセージ入力欄に以下のコマンドを入力

/znc LoadMod awaynick [enter]
/msg *awaynick set dognri_ooO [enter]
/msg *awaynick show [enter]

これでdisconnectした時に自分のニックネームが設定した名前になる。

5. その他 module, command
http://wiki.znc.in/Modules
http://wiki.znc.in/Using_commands

Comments

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Basic HTML is allowed. Your email address will not be published.

Subscribe to this comment feed via RSS