ZNC banyak digunakan di server IRC.
Ianya membolehkan 'Nickname' kita untuk berada di canel walaupon kita tidak 'Online'.
Untuk memasangnya amatlah mudah.
Cara-cara membuatnya:
1. Log masuk ke shell anda.
2. Kemudian;
$ wget http://znc.in/releases/znc-1.6.3.tar.gz
$ tar -xzvf znc-1.6.3.tar.gz
$ cd znc-1.6.3
$ ./configure
$ make
$ make install
$ znc --makeconf
3. Ikut arahan seperti berikut; [ .. ] Checking for list of available modules...
[ >> ] ok
[ ** ] Building new config
[ ** ]
[ ** ] First let's start with some global settings...
[ ** ]
[ ?? ] What port would you like ZNC to listen on? (1025 to 65535): 5678
[ ?? ] Would you like ZNC to listen using SSL? (yes/no) [no]: no
[ ?? ] Would you like ZNC to listen using both IPv4 and IPv6? (yes/no) [yes]: yes
[ .. ] Verifying the listener...
[ >> ] ok
[ ** ] Unable to locate pem file: [/home/gaban/.znc/znc.pem], creating it
[ .. ] Writing Pem file [/home/gaban/.znc/znc.pem]...
[ >> ] ok
[ ** ]
[ ** ] -- Global Modules --
[ ** ]
[ ** ] +-----------+----------------------------------------------------------+
[ ** ] | Name | Description |
[ ** ] +-----------+----------------------------------------------------------+
[ ** ] | partyline | Internal channels and queries for users connected to znc |
[ ** ] | webadmin | Web based administration module |
[ ** ] +-----------+----------------------------------------------------------+
[ ** ] And 10 other (uncommon) modules. You can enable those later.
[ ** ]
[ ?? ] Load global module <partyline>? (yes/no) [no]: yes
[ ?? ] Load global module <webadmin>? (yes/no) [no]: yes
[ ** ]
[ ** ] Now we need to set up a user...
[ ** ]
[ ?? ] Username (AlphaNumeric): GaBaN
[ ?? ] Enter Password:
[ ?? ] Confirm Password:
[ ?? ] Would you like this user to be an admin? (yes/no) [yes]: yes
[ ?? ] Nick [GaBaN]: GaBaN
[ ?? ] Alt Nick [GaBaN_]: GaBaNz
[ ?? ] Ident [GaBaN]: gaban
[ ?? ] Real Name [Got ZNC?]: leh kenalan?
[ ?? ] Bind Host (optional):
[ ?? ] Number of lines to buffer per channel [50]: 50
[ ?? ] Would you like to clear channel buffers after replay? (yes/no) [yes]: yes
[ ?? ] Default channel modes [+stn]: +stn
[ ** ]
[ ** ] -- User Modules --
[ ** ]
[ ** ] +--------------+--------------------------------------------------------- ---------------------------------+
[ ** ] | Name | Description |
[ ** ] +--------------+--------------------------------------------------------- ---------------------------------+
[ ** ] | chansaver | Keep config up-to-date when user joins/parts |
[ ** ] | controlpanel | Dynamic configuration through IRC. Allows editing only y ourself if you're not ZNC admin. |
[ ** ] | perform | Keeps a list of commands to be executed when ZNC connect s to IRC. |
[ ** ] | webadmin | Web based administration module |
[ ** ] +--------------+--------------------------------------------------------- ---------------------------------+
[ ** ] And 21 other (uncommon) modules. You can enable those later.
[ ** ]
[ ?? ] Load module <chansaver>? (yes/no) [no]: yes
[ ?? ] Load module <controlpanel>? (yes/no) [no]: yes
[ ?? ] Load module <perform>? (yes/no) [no]: yes
[ ?? ] Load module <webadmin>? (yes/no) [no]: yes
[ ** ]
[ ?? ] Would you like to set up a network? (yes/no) [no]: yes
[ ?? ] Network (e.g. `freenode' or `efnet'): KampungChat
[ ** ]
[ ** ] -- Network Modules --
[ ** ]
[ ** ] +-------------+---------------------------------------------------------- ---------------------------------------+
[ ** ] | Name | Description |
[ ** ] +-------------+---------------------------------------------------------- ---------------------------------------+
[ ** ] | chansaver | Keep config up-to-date when user joins/parts
[ ** ] | keepnick | Keep trying for your primary nick |
[ ** ] | kickrejoin | Autorejoin on kick |
[ ** ] | nickserv | Auths you with NickServ |
[ ** ] | perform | Keeps a list of commands to be executed when ZNC connects to IRC. |
[ ** ] | simple_away | This module will automatically set you away on IRC while you are disconnected from the bouncer. |
[ ** ] +-------------+---------------------------------------------------------- ---------------------------------------+
[ ** ] And 19 other (uncommon) modules. You can enable those later.
[ ** ]
[ ?? ] Load module <chansaver>? (yes/no) [no]: yes
[ ?? ] Load module <keepnick>? (yes/no) [no]: yes
[ ?? ] Load module <kickrejoin>? (yes/no) [no]: yes
[ ?? ] Load module <nickserv>? (yes/no) [no]: yes
[ ?? ] Load module <perform>? (yes/no) [no]: yes
[ ?? ] Load module <simple_away>? (yes/no) [no]: yes
[ ** ]
[ ** ] -- IRC Servers --
[ ** ] Only add servers from the same IRC network.
[ ** ] If a server from the list can't be reached, another server will be used.
[ ** ]
[ ?? ] IRC server (host only): irc.kampungchat.org
[ ?? ] [irc.kampungchat.org] Port (1 to 65535) [6667]: 6667
[ ?? ] [irc.kampungchat.org] Password (probably empty):
[ ?? ] Does this server use SSL? (yes/no) [no]: no
[ ** ]
[ ?? ] Would you like to add another server for this IRC network? (yes/no) [no]: no no
[ ** ]
[ ** ] -- Channels --
[ ** ]
[ ?? ] Would you like to add a channel for ZNC to automatically join? (yes/no) [yes]: yes yes]: yes
[ ?? ] Channel name: #underground
[ ?? ] Would you like to add another channel? (yes/no) [no]: no
[ ?? ] Would you like to set up another network? (yes/no) [no]: no
[ ** ]
[ ?? ] Would you like to set up another user? (yes/no) [no]: no
[ .. ] Writing config [/home/gaban/.znc/configs/znc.conf]...
[ >> ] ok
[ ** ]
[ ** ]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> 5678 GaBaN:<pass>
[ ** ]And this in your browser...
[ ** ]http://<znc_server_ip>:5678/
[ ** ]
[ ?? ] Launch ZNC now? (yes/no) [yes]: yes
[ .. ] Opening config [/home/gaban/.znc/configs/znc.conf]...
[ >> ] ok
[ .. ] Loading global module [partyline]...
[ >> ] [/usr/local/lib/znc/partyline.so]
[ .. ] Loading global module [webadmin]...
[ >> ] [/usr/local/lib/znc/webadmin.so]
[ .. ] Binding to port [5678]...
[ >> ] ok
[ ** ] Loading user [GaBaN]
[ ** ] Loading network [KampungChat]
[ .. ] Loading network module [chansaver]...
[ >> ] [/usr/local/lib/znc/chansaver.so]
[ .. ] Loading network module [keepnick]...
[ >> ] [/usr/local/lib/znc/keepnick.so]
[ .. ] Loading network module [kickrejoin]...
[ >> ] [/usr/local/lib/znc/kickrejoin.so]
[ .. ] Loading network module [nickserv]...
[ >> ] [/usr/local/lib/znc/nickserv.so]
[ .. ] Loading network module [perform]...
[ >> ] [/usr/local/lib/znc/perform.so]
[ .. ] Loading network module [simple_away]...
[ >> ] [/usr/local/lib/znc/simple_away.so]
[ .. ] Adding server [irc.kampungchat.org 6667 ]...
[ >> ] ok
[ .. ] Loading user module [chansaver]...
[ >> ] [/usr/local/lib/znc/chansaver.so]
[ .. ] Loading user module [controlpanel]...
[ >> ] [/usr/local/lib/znc/controlpanel.so]
[ .. ] Loading user module [perform]...
[ >> ] [/usr/local/lib/znc/perform.so]
[ .. ] Loading user module [webadmin]...
[ >> ] [/usr/local/lib/znc/webadmin.so]
[ .. ] Forking into the background...
[ >> ] [pid: 2096]
[ ** ] ZNC 1.4 - http://znc.in
4. Siap!Nota:
Anda boleh mengubah ZNC anda di laman web. Caranya dengan;
http://servershell:5678/
No comments:
Post a Comment