Instalasi dan Konfigurasi ZNC – Advanced IRC Bouncer
Instalasi dan Konfigurasi ZNC – Advanced IRC Bouncer
ZNC merupakan salah satu IRC bouncer/proxy yang mempunyai kelebihan dibandingkan dengan bnc biasa, seperti detach, multi user, multi client per user, channel/query playback buffers, SSL, IPv6, transparent DCC bouncing, C++/Perl module support, party line, dan administrasi lewat web. Fitur lengkapnya bisa dibaca di sini
Langkah-langkah instalasi ZNC
1. Download ZNC di http://sourceforge.net/projects/znc/
[root@asus] (Thu Jul 23@07:24:34) [/usr/src] wget http://biznetnetworks.dl.sourceforge.net/project/znc/znc/0.072/znc-0.072.tar.gz --07:24:50-- http://biznetnetworks.dl.sourceforge.net/project/znc/znc/0.072/znc-0.072.tar.gz Resolving biznetnetworks.dl.sourceforge.net... 203.142.84.220 Connecting to biznetnetworks.dl.sourceforge.net|203.142.84.220|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 401405 (392K) [application/x-gzip] Saving to: `znc-0.072.tar.gz' 100%[=====================================================================================================>] 401,405 135K/s in 2.9s 07:26:09 (135 KB/s) - `znc-0.072.tar.gz' saved [401405/401405]
2. Ekstrak ZNC
[root@asus] (Thu Jul 23@07:26:09) [/usr/src] 10 # tar -xzvf znc-0.072.tar.gz znc-0.072/ znc-0.072/CreatePem.sh znc-0.072/znc.cpp znc-0.072/main.h znc-0.072/Nick.h znc-0.072/Socket.cpp znc-0.072/DCCBounce.cpp znc-0.072/MD5.cpp znc-0.072/User.h znc-0.072/Client.h znc-0.072/LICENSE.OpenSSL znc-0.072/ZNCString.cpp znc-0.072/znc-config.in znc-0.072/Template.h znc-0.072/ClientCommand.cpp znc-0.072/README znc-0.072/DCCSock.cpp znc-0.072/Chan.cpp znc-0.072/Buffer.cpp znc-0.072/Timers.h znc-0.072/Modules.cpp znc-0.072/Server.cpp znc-0.072/configure.in znc-0.072/Utils.h znc-0.072/FileUtils.h znc-0.072/HTTPSock.h znc-0.072/LICENSE znc-0.072/znc-uninstalled.pc.in znc-0.072/znc.h znc-0.072/Socket.h znc-0.072/IRCSock.cpp znc-0.072/znc.conf znc-0.072/Csocket.cpp znc-0.072/DCCBounce.h znc-0.072/MD5.h znc-0.072/man/ znc-0.072/man/znc-config.1 znc-0.072/man/znc.1 znc-0.072/man/znc-buildmod.1 znc-0.072/man/Makefile.in znc-0.072/modules/ znc-0.072/modules/autoattach.cpp znc-0.072/modules/modperl.pm znc-0.072/modules/kickrejoin.cpp znc-0.072/modules/email.cpp znc-0.072/modules/webadmin.cpp znc-0.072/modules/saslauth.cpp znc-0.072/modules/sample.cpp znc-0.072/modules/fail2ban.cpp znc-0.072/modules/chansaver.cpp znc-0.072/modules/imapauth.cpp znc-0.072/modules/partyline.cpp znc-0.072/modules/awaynick.cpp znc-0.072/modules/away.cpp znc-0.072/modules/crypt.cpp znc-0.072/modules/savebuff.cpp znc-0.072/modules/q.cpp znc-0.072/modules/raw.cpp znc-0.072/modules/keepnick.cpp znc-0.072/modules/autocycle.cpp znc-0.072/modules/admin.cpp znc-0.072/modules/nickserv.cpp znc-0.072/modules/perform.cpp znc-0.072/modules/simple_away.cpp znc-0.072/modules/autoop.cpp znc-0.072/modules/shell.cpp znc-0.072/modules/watch.cpp znc-0.072/modules/webadmin/ znc-0.072/modules/webadmin/skins/ znc-0.072/modules/webadmin/skins/dark-clouds/ znc-0.072/modules/webadmin/skins/dark-clouds/Settings.tmpl znc-0.072/modules/webadmin/skins/dark-clouds/data/ znc-0.072/modules/webadmin/skins/dark-clouds/data/favicon.ico znc-0.072/modules/webadmin/skins/dark-clouds/data/clouds-header.jpg znc-0.072/modules/webadmin/skins/dark-clouds/data/main.css znc-0.072/modules/webadmin/skins/dark-clouds/Footer.tmpl znc-0.072/modules/webadmin/skins/dark-clouds/ListUsers.tmpl znc-0.072/modules/webadmin/skins/dark-clouds/UserPage.tmpl znc-0.072/modules/webadmin/skins/dark-clouds/Error.tmpl znc-0.072/modules/webadmin/skins/dark-clouds/Channel.tmpl znc-0.072/modules/webadmin/skins/dark-clouds/Header.tmpl znc-0.072/modules/webadmin/skins/dark-clouds/Main.tmpl znc-0.072/modules/webadmin/skins/default/ znc-0.072/modules/webadmin/skins/default/Settings.tmpl znc-0.072/modules/webadmin/skins/default/data/ znc-0.072/modules/webadmin/skins/default/data/favicon.ico znc-0.072/modules/webadmin/skins/default/data/main.css znc-0.072/modules/webadmin/skins/default/Footer.tmpl znc-0.072/modules/webadmin/skins/default/ListUsers.tmpl znc-0.072/modules/webadmin/skins/default/UserPage.tmpl znc-0.072/modules/webadmin/skins/default/Error.tmpl znc-0.072/modules/webadmin/skins/default/Header.tmpl znc-0.072/modules/webadmin/skins/default/Channel.tmpl znc-0.072/modules/webadmin/skins/default/Main.tmpl znc-0.072/modules/webadmin/skins/graphiX/ znc-0.072/modules/webadmin/skins/graphiX/Settings.tmpl znc-0.072/modules/webadmin/skins/graphiX/data/ znc-0.072/modules/webadmin/skins/graphiX/data/favicon.ico znc-0.072/modules/webadmin/skins/graphiX/data/main.css znc-0.072/modules/webadmin/skins/graphiX/data/graphix_header.jpg znc-0.072/modules/webadmin/skins/graphiX/data/graphix_bg.jpg znc-0.072/modules/webadmin/skins/graphiX/Footer.tmpl znc-0.072/modules/webadmin/skins/graphiX/ListUsers.tmpl znc-0.072/modules/webadmin/skins/graphiX/UserPage.tmpl znc-0.072/modules/webadmin/skins/graphiX/Error.tmpl znc-0.072/modules/webadmin/skins/graphiX/Header.tmpl znc-0.072/modules/webadmin/skins/graphiX/Channel.tmpl znc-0.072/modules/webadmin/skins/graphiX/Main.tmpl znc-0.072/modules/webadmin/skins/ice/ znc-0.072/modules/webadmin/skins/ice/Settings.tmpl znc-0.072/modules/webadmin/skins/ice/data/ znc-0.072/modules/webadmin/skins/ice/data/favicon.ico znc-0.072/modules/webadmin/skins/ice/data/main.css znc-0.072/modules/webadmin/skins/ice/data/pagebg.gif znc-0.072/modules/webadmin/skins/ice/data/linkbg.jpg znc-0.072/modules/webadmin/skins/ice/Footer.tmpl znc-0.072/modules/webadmin/skins/ice/ListUsers.tmpl znc-0.072/modules/webadmin/skins/ice/UserPage.tmpl znc-0.072/modules/webadmin/skins/ice/Error.tmpl znc-0.072/modules/webadmin/skins/ice/Header.tmpl znc-0.072/modules/webadmin/skins/ice/Channel.tmpl znc-0.072/modules/webadmin/skins/ice/Main.tmpl znc-0.072/modules/modperl.cpp znc-0.072/modules/schat.cpp znc-0.072/modules/Makefile.in znc-0.072/modules/stickychan.cpp znc-0.072/ZNCString.h znc-0.072/main.cpp znc-0.072/Nick.cpp znc-0.072/defines.h znc-0.072/znc.pc.in znc-0.072/User.cpp znc-0.072/DCCSock.h znc-0.072/Client.cpp znc-0.072/Chan.h znc-0.072/Buffer.h znc-0.072/Modules.h znc-0.072/config.sub znc-0.072/znc-buildmod.in znc-0.072/Server.h znc-0.072/Template.cpp znc-0.072/config.guess znc-0.072/AUTHORS znc-0.072/IRCSock.h znc-0.072/Makefile.in znc-0.072/configure znc-0.072/Utils.cpp znc-0.072/FileUtils.cpp znc-0.072/Csocket.h znc-0.072/HTTPSock.cpp znc-0.072/install.sh
3. Instalasi.
Masuk dulu ke direktori znc-0.072/ dan jalankan perintah ./configure
# cd znc-0.072/
# ./configure --disable-c-ares checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for getopt_long in -lgnugetopt... no checking for lstat... yes checking for BIO_new in -lcrypto... yes checking for SSL_shutdown in -lssl... yes checking for dlopen... no checking for dlopen in -ldl... yes checking for perl... /usr/bin/perl checking for perl_alloc in -lperl... yes configure: creating ./config.status config.status: creating Makefile config.status: creating znc-config config.status: creating znc-buildmod config.status: creating man/Makefile config.status: creating znc.pc config.status: creating znc-uninstalled.pc config.status: creating modules/Makefile znc 0.072 configured debug: no ipv6: yes openssl: yes c-ares: no modules: yes perl: yes sasl: no
4. Jalankan perintah make
# make g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o znc.o znc.cpp -MMD -MF .depend/znc.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o User.o User.cpp -MMD -MF .depend/User.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o IRCSock.o IRCSock.cpp -MMD -MF .depend/IRCSock.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o Client.o Client.cpp -MMD -MF .depend/Client.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o DCCBounce.o DCCBounce.cpp -MMD -MF .depend/DCCBounce.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o DCCSock.o DCCSock.cpp -MMD -MF .depend/DCCSock.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o Chan.o Chan.cpp -MMD -MF .depend/Chan.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o Nick.o Nick.cpp -MMD -MF .depend/Nick.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o Server.o Server.cpp -MMD -MF .depend/Server.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o Modules.o Modules.cpp -MMD -MF .depend/Modules.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o MD5.o MD5.cpp -MMD -MF .depend/MD5.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o Buffer.o Buffer.cpp -MMD -MF .depend/Buffer.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o Utils.o Utils.cpp -MMD -MF .depend/Utils.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o FileUtils.o FileUtils.cpp -MMD -MF .depend/FileUtils.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o HTTPSock.o HTTPSock.cpp -MMD -MF .depend/HTTPSock.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o Template.o Template.cpp -MMD -MF .depend/Template.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o ClientCommand.o ClientCommand.cpp -MMD -MF .depend/ClientCommand.o.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/usr/local/lib/znc\" -D_DATADIR_=\"/usr/local/share/znc\" -c -o Socket.o Socket.cpp -MMD -MF .depend/Socket.o.dep g++ -Wl,--export-dynamic -o znc main.o ZNCString.o Csocket.o znc.o User.o IRCSock.o Client.o DCCBounce.o DCCSock.o Chan.o Nick.o Server.o Modules.o MD5.o Buffer.o Utils.o FileUtils.o HTTPSock.o Template.o ClientCommand.o Socket.o -ldl -lssl -lcrypto make[1]: Entering directory `/usr/src/znc-0.072/man' gzip -9 znc.1.gz gzip -9 znc-buildmod.1.gz gzip -9 znc-config.1.gz make[1]: Leaving directory `/usr/src/znc-0.072/man' make[1]: Entering directory `/usr/src/znc-0.072/modules' g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o admin.so admin.cpp -MMD -MF .depend/admin.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o autoattach.so autoattach.cpp -MMD -MF .depend/autoattach.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o autocycle.so autocycle.cpp -MMD -MF .depend/autocycle.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o autoop.so autoop.cpp -MMD -MF .depend/autoop.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o away.so away.cpp -MMD -MF .depend/away.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o awaynick.so awaynick.cpp -MMD -MF .depend/awaynick.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o chansaver.so chansaver.cpp -MMD -MF .depend/chansaver.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o crypt.so crypt.cpp -MMD -MF .depend/crypt.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o email.so email.cpp -MMD -MF .depend/email.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o fail2ban.so fail2ban.cpp -MMD -MF .depend/fail2ban.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o imapauth.so imapauth.cpp -MMD -MF .depend/imapauth.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o keepnick.so keepnick.cpp -MMD -MF .depend/keepnick.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o kickrejoin.so kickrejoin.cpp -MMD -MF .depend/kickrejoin.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o modperl.so modperl.cpp -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -L/usr/local/lib /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -Wno-write-strings -Wno-redundant-decls -Wno-missing-declarations -MMD -MF .depend/modperl.so.dep cc1plus: warning: command line option "-Wno-missing-declarations" is valid for C/ObjC but not for C++ g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o nickserv.so nickserv.cpp -MMD -MF .depend/nickserv.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o partyline.so partyline.cpp -MMD -MF .depend/partyline.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o perform.so perform.cpp -MMD -MF .depend/perform.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o q.so q.cpp -MMD -MF .depend/q.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o raw.so raw.cpp -MMD -MF .depend/raw.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o sample.so sample.cpp -MMD -MF .depend/sample.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o savebuff.so savebuff.cpp -MMD -MF .depend/savebuff.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o schat.so schat.cpp -MMD -MF .depend/schat.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o shell.so shell.cpp -MMD -MF .depend/shell.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o simple_away.so simple_away.cpp -MMD -MF .depend/simple_away.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o stickychan.so stickychan.cpp -MMD -MF .depend/stickychan.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o watch.so watch.cpp -MMD -MF .depend/watch.so.dep g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT -DHAVE_LIBSSL -D_MODULES -fPIC -I./.. -Wl,--export-dynamic -shared -o webadmin.so webadmin.cpp -MMD -MF .depend/webadmin.so.dep make[1]: Leaving directory `/usr/src/znc-0.072/modules'
5. Jalankan perintah make install
# make install mkdir -p /usr/local/bin mkdir -p /usr/local/include/znc mkdir -p /usr/local/lib/pkgconfig install -m 0755 znc /usr/local/bin install -m 0755 znc-config /usr/local/bin install -m 0755 znc-buildmod /usr/local/bin install -m 0644 ./*.h /usr/local/include/znc install -m 0644 znc.pc /usr/local/lib/pkgconfig make[1]: Entering directory `/usr/src/znc-0.072/modules' mkdir -p /usr/local/lib/znc mkdir -p /usr/local/share/znc rm -rf /usr/local/lib/znc/*.so for a in ./*; do \ d=$(echo $a | sed -e "s:./::g"); \ if [ -d $a ] && [ -f ${d}.so ]; then \ cp -Rp $a /usr/local/share/znc; \ fi \ done for i in ./*.pm; do \ install -m 0644 $i /usr/local/lib/znc; \ done install -m 0755 admin.so autoattach.so autocycle.so autoop.so away.so awaynick.so chansaver.so crypt.so email.so fail2ban.so imapauth.so keepnick.so kickrejoin.so modperl.so nickserv.so partyline.so perform.so q.so raw.so sample.so savebuff.so schat.so shell.so simple_away.so stickychan.so watch.so webadmin.so /usr/local/lib/znc make[1]: Leaving directory `/usr/src/znc-0.072/modules' make[1]: Entering directory `/usr/src/znc-0.072/man' mkdir -p /usr/local/share/man/man1 install -m 644 znc.1.gz znc-buildmod.1.gz znc-config.1.gz /usr/local/share/man/man1 make[1]: Leaving directory `/usr/src/znc-0.072/man'
Tunggu 5 sampai 10 menit. 🙂
6. Membuat file konfigurasi ZNC.
Membuat file konfigurasi znc dengan menjalankan perintah ./znc –makeconf
[idc.tux@asus] (Thu Jul 23@08:36:47) [/usr/src/znc-0.072] $ ./znc --makeconf [ ** ] Building new config [ ** ] [ ** ] First lets start with some global settings... [ ** ] [ ?? ] What port would you like ZNC to listen on? (1 to 65535): 50505 [ ?? ] Would you like ZNC to listen using SSL? (yes/no) [no]: [ ?? ] Would you like ZNC to listen using ipv6? (yes/no) [no]: [ ?? ] Listen Host (Blank for all ips): [ ** ] [ ** ] -- Global Modules -- [ ** ] [ ?? ] Do you want to load any global modules? (yes/no): yes [ ** ] +-----------+---------------------------------------------------------------+ [ ** ] | Name | Description | [ ** ] +-----------+---------------------------------------------------------------+ [ ** ] | fail2ban | Block IPs for some time after a failed login | [ ** ] | imapauth | Allow users to authenticate via imap | [ ** ] | modperl | Loads perl scripts as ZNC modules | [ ** ] | partyline | Internal channels and queries for users connected to znc | [ ** ] | webadmin | Dynamic configuration of users/settings through a web browser | [ ** ] +-----------+---------------------------------------------------------------+ [ ** ] [ ** ] [ ?? ] Load global module ? (yes/no) [no]: [ ?? ] Load global module ? (yes/no) [no]: [ ?? ] Load global module ? (yes/no) [no]: yes [ ?? ] Load global module ? (yes/no) [no]: yes [ ?? ] Load global module ? (yes/no) [no]: yes [ ** ] [ ** ] Now we need to setup a user... [ ** ] [ ?? ] Username (AlphaNumeric): admin [ ?? ] Enter Password: [ ?? ] Confirm Password: [ ?? ] Would you like this user to be an admin? (yes/no) [yes]: yes [ ?? ] Nick [admin]: tux-kecil [ ?? ] Alt Nick [tux-kecil_]: tux-cakep [ ?? ] Ident [tux-kecil]: admin [ ?? ] Real Name [Got ZNC?]: tUx [ ?? ] VHost (optional): [ ?? ] Number of lines to buffer per channel [50]: [ ?? ] Would you like to keep buffers after replay? (yes/no) [no]: [ ?? ] Default channel modes [+stn]: [ ** ] [ ** ] -- User Modules -- [ ** ] [ ?? ] Do you want to automatically load any user modules for this user? (yes/no): no [ ** ] [ ** ] -- IRC Servers -- [ ** ] [ ?? ] IRC server (host only): irc.dal.net [ ?? ] [irc.dal.net] Port (1 to 65535) [6667]: [ ?? ] [irc.dal.net] Password (probably empty): [ ?? ] Does this server use SSL? (probably no) (yes/no) [no]: [ ** ] [ ?? ] Would you like to add another server? (yes/no) [no]: [ ** ] [ ** ] -- Channels -- [ ** ] [ ** ] [ ?? ] Would you like to add a channel for ZNC to automatically join? (yes/no) [yes]: [ ?? ] Channel name: #bagelen [ ?? ] Would you like to add another channel? (yes/no) [no]: [ ** ] [ ?? ] Would you like to setup another user? (yes/no) [no]: [ ok ] Writing config [/home/idc.tux/.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 so... user:pass. [ ** ] [ ** ] Try something like this in your IRC client... [ ** ] /server 50505 admin: [ ** ] [ ?? ] Launch znc now? (yes/no) [yes]: [ ok ] Opening Config [/home/idc.tux/.znc/configs/znc.conf]... [ ok ] Binding to port [50505]... [ ** ] Loading user [admin] [ ok ] Adding Server [irc.dal.net 6667]... [ ok ] Loading Global Module [modperl]... [./modules/modperl.so] [ ok ] Loading Global Module [partyline]... [./modules/partyline.so] [ ok ] Loading Global Module [webadmin]... [./modules/webadmin.so] [ ok ] Forking into the background... [pid: 19173] [ ** ] ZNC 0.072 - http://znc.sourceforge.net
Pada saat proses tersebut ada beberapa pilihan yang harus diisikan [yes]/[no]. Pemilihan module tersebut nantinya akan dipakai dalam BNC. Selesai proses instalasi dan konfigurasi znc.
Menjalankan ZNC
Untuk menjalankan ZNC, ketik perintah ./znc di shell tempat kita menginstall ZNC.
[idc.tux@asus] (Thu Jul 23@19:12:20) [/usr/src/znc-0.072] $ ./znc [ ok ] Opening Config [/home/idc.tux/.znc/configs/znc.conf]... [ ok ] Binding to port [50505]... [ ** ] Loading user [admin] [ ok ] Loading Module [admin]... [./modules/admin.so] [ ok ] Loading Module [autoattach]... [./modules/autoattach.so] [ ok ] Loading Module [autoop]... [./modules/autoop.so] [ ok ] Loading Module [away]... [./modules/away.so] [ ok ] Loading Module [awaynick]... [./modules/awaynick.so] [ ok ] Loading Module [chansaver]... [./modules/chansaver.so] [ ok ] Loading Module [crypt]... [./modules/crypt.so] [ ok ] Loading Module [nickserv]... [./modules/nickserv.so] [ ok ] Loading Module [shell]... [./modules/shell.so] [ ok ] Adding Server [irc.dal.net 6667]... [ ok ] Loading Global Module [modperl]... [./modules/modperl.so] [ ok ] Loading Global Module [partyline]... [./modules/partyline.so] [ ok ] Loading Global Module [webadmin]... [./modules/webadmin.so] [ ok ] Forking into the background... [pid: 20458] [ ** ] ZNC 0.072 - http://znc.sourceforge.net
Cara Menggunakan ZNC
Setelah semuanya selesai, untuk mengkoneksikan ke server BNC kita, gunakan program irc client seperti mirc, xchat dll. Sebelumnya setting dulu identd, nick, email dan username.
/server znc_server_ip port admin:pass
contoh:
/server server.bagelen.net 50505 admin:passwordnya
Untuk bantuan bisa diketik /znc sehingga akan jendela status akan keluar seperti berikut.
<*status> Hello. How may I help you? help <*status> +------------------------+-------------------------+---------------------------------------------+ <*status> | Command | Arguments | Description | <*status> +------------------------+-------------------------+---------------------------------------------+ <*status> | Version | | Prints which version of znc this is | <*status> | ListDCCs | | List all active DCCs | <*status> | ListMods | | List all loaded modules | <*status> | ListAvailMods | | List all available modules | <*status> | ListChans | | List all channels | <*status> | ListNicks | <#chan> | List all nicks on a channel | <*status> | ListServers | | List all servers | <*status> | AddServer | [[+]port] [pass] | Add a server to the list | <*status> | RemServer | | Remove a server from the list | <*status> | Enablechan | <#chan> | Enable the channel | <*status> | Detach | <#chan> | Detach from the channel | <*status> | Topics | | Show topics in all channels | <*status> | PlayBuffer | <#chan> | Play back the buffer for a given channel | <*status> | ClearBuffer | <#chan> | Clear the buffer for a given channel | <*status> | ClearAllChannelBuffers | | Clear the channel buffers | <*status> | SetBuffer | <#chan> [linecount] | Set the buffer count for a channel | <*status> | AddVHost | | Adds a VHost for normal users to use | <*status> | RemVHost | | Removes a VHost from the list | <*status> | ListVHosts | | Shows the configured list of vhosts | <*status> | SetVHost | | Set the VHost for this connection | <*status> | ClearVHost | | Clear the VHost for this connection | <*status> | Jump | | Jump to the next server in the list | <*status> | Disconnect | | Disconnect from IRC | <*status> | Connect | | Reconnect to IRC | <*status> | Send | | Send a shell file to a nick on IRC | <*status> | Get | | Send a shell file to yourself | <*status> | Uptime | | Show how long ZNC is already running | <*status> | LoadMod | | Load a module | <*status> | UnloadMod | | Unload a module | <*status> | ReloadMod | | Reload a module | <*status> | UpdateMod | | Reload a module on all users | <*status> | ShowMOTD | | Show the message of the day | <*status> | SetMOTD | | Set the message of the day | <*status> | AddMOTD | | Append to MOTD | <*status> | ClearMOTD | | Clear the MOTD | <*status> | Rehash | | Reload znc.conf from disk | <*status> | SaveConfig | | Save the current settings to disk | <*status> | ListUsers | | List all users/clients connected to znc | <*status> | ListClients | [User] | List all clients connected to your znc user | <*status> | Traffic | | Show basic traffic stats for all znc users | <*status> | Broadcast | [message] | Broadcast a message to all users | <*status> | Shutdown | [message] | Shutdown znc completely | <*status> | Restart | [message] | Restarts znc | <*status> +------------------------+-------------------------+---------------------------------------------+
Perintah-perintah diatas bisa dipelajari sendiri 🙂 Jika belum jelas bisa ditanyakan ke mbah google. ^_^
Untuk pengaturan bisa melalui browser. Buka browser dengan mengetikkan nama domain/host/IP diikuti dengan port yang dipakai di address bar, kurang lebih seperti gambar berikut.
Alhamdulillah, akhirnya selesai sudah postingan tentang “Instalasi dan Konfigurasi ZNC”. Jika ada kata-kata atau kesalahan, penulis minta maaf.
Thanks to:
1. Allah SWT
2. Bapak dan Ibu
3. Kakak dan adek saya
4. Teman seperjuangan ^_^
Very nice blog, your article is interesting, i have bookmarked it for future referrence
Assalammualaikum Wr. Wb.
Permisi mas numpang belajar tentang znc ya?
sukses selalu
Wassalamualaikum Wr. Wb.
@Hendy : Wa’alaikumsalam warohmatullohi wabarokatuh
Silakan 🙂 Mohon maaf kalau ada kekurangan. 🙂
Makasih.
mas bro..
sy pengen install bouncer ini, cm saya ga ngerti cara2 nginstall kyk gini
maklum msh katrok
hehehe
tolong bantuannya
sy pake windows 7 x64
udah download dr situs http://wiki.znc.in/ZNC
link downloadnya: http://znc.in/releases/znc-0.204.tar.gz
itu kan msh bentuk rar dgn nm file: znc-0.204.tar.gz
trus diapain lg mas bro??
tolong kbri via email
pake yang versi windows masbro, atau bs cari di google “znc-msvc”