Portal Home > Knowledgebase > ZNC > Manual install ZNC-1.4
Sekilas info manual install znc-1.4
[sdx@ip-172-31-50-42 ~]$ wget http://znc.in/releases/archive/znc-1.4.tar.gz
--2015-06-02 07:50:12-- http://znc.in/releases/archive/znc-1.4.tar.gz
Resolving znc.in (znc.in)... 2a00:18e0:0:dcc5:dead:beef:3d2d:815, 109.234.106.52
Connecting to znc.in (znc.in)|2a00:18e0:0:dcc5:dead:beef:3d2d:815|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1239648 (1.2M) [application/octet-stream]
Saving to: âznc-1.4.tar.gzâ
100%[==============================================================================================================================>] 1,239,648 1.20MB/s in 1.0s
2015-06-02 07:50:14 (1.20 MB/s) - âznc-1.4.tar.gzâ saved [1239648/1239648]
[sdx@ip-172-31-50-42 ~]$ tar -xf znc-1.4.tar.gz
[sdx@ip-172-31-50-42 ~]$ cd znc-1.4
[sdx@ip-172-31-50-42 znc-1.4]$ ./configure --prefix=/home/sdx/znc --enable-tcl
ZNC 1.4 configured
prefix: /home/sdx/znc ---> --prefix=/ berguna untuk menempatkan install znc kita
debug: no
ipv6: yes
openssl: yes
dns: threads
perl: no
python: no
swig: not needed
cyrus: no
tcl: yes
charset: yes
zlib: yes
run from src: no
Now you can run "make" to compile ZNC
[sdx@ip-172-31-50-42 znc-1.4]$ make
Packing man page znc.1.gz...
Packing man page znc-buildmod.1.gz...
Building module autocycle...
Linking module autocycle...
Building module webadmin...
Linking module webadmin...
Building module partyline...
---> tunggu sampe selesai ----
ZNC was successfully compiled.
Use 'make install' to install ZNC to '/home/sdx/znc'.
[sdx@ip-172-31-50-42 znc-1.4]$ make install
test -d /home/sdx/znc/bin || /bin/install -c -d /home/sdx/znc/bin
test -d /home/sdx/znc/include/znc || /bin/install -c -d /home/sdx/znc/include/znc
test -d /home/sdx/znc/lib/pkgconfig || /bin/install -c -d /home/sdx/znc/lib/pkgconfig
test -d /home/sdx/znc/lib/znc || /bin/install -c -d /home/sdx/znc/lib/znc
test -d /home/sdx/znc/share/znc || /bin/install -c -d /home/sdx/znc/share/znc
cp -R ./webskins /home/sdx/znc/share/znc
find /home/sdx/znc/share/znc/webskins -type d -exec chmod 0755 '{}' \;
find /home/sdx/znc/share/znc/webskins -type f -exec chmod 0644 '{}' \;
/bin/install -c znc /home/sdx/znc/bin
/bin/install -c znc-buildmod /home/sdx/znc/bin
/bin/install -c -m 644 ./include/znc/*.h /home/sdx/znc/include/znc
/bin/install -c -m 644 include/znc/zncconfig.h /home/sdx/znc/include/znc
/bin/install -c -m 644 znc.pc /home/sdx/znc/lib/pkgconfig
make[1]: Entering directory `/home/sdx/znc-1.4/modules'
rm -rf /home/sdx/znc/share/znc/modules
test -d /home/sdx/znc/lib/znc || /bin/install -c -d /home/sdx/znc/lib/znc
test -d /home/sdx/znc/share/znc/modules || /bin/install -c -d /home/sdx/znc/share/znc/modules
rm -rf /home/sdx/znc/lib/znc/*.so
cp -R ./data/* /home/sdx/znc/share/znc/modules
find /home/sdx/znc/share/znc/modules -type d -exec chmod 0755 '{}' \;
find /home/sdx/znc/share/znc/modules -type f -exec chmod 0644 '{}' \;
mkdir -p /home/sdx/znc/share/znc/modtcl/
/bin/install -c -m 644 ./modtcl/modtcl.tcl ./modtcl/binds.tcl /home/sdx/znc/share/znc/modtcl/
/bin/install -c autocycle.so webadmin.so partyline.so notify_connect.so raw.so bouncedcc.so shell.so modtcl.so kickrejoin.so missingmotd.so clientnotify.so modules_online.so disconkick.so ctcpflood.so route_replies.so cert.so stickychan.so fail2ban.so schat.so crypt.so q.so buffextras.so send_raw.so autoop.so flooddetach.so sasl.so controlpanel.so dcc.so listsockets.so autovoice.so perform.so clearbufferonmsg.so autoreply.so simple_away.so chansaver.so awaynick.so lastseen.so keepnick.so block_motd.so watch.so notes.so charset.so certauth.so adminlog.so autoattach.so imapauth.so nickserv.so sample.so log.so savebuff.so blockuser.so identfile.so awaystore.so /home/sdx/znc/lib/znc
make[1]: Leaving directory `/home/sdx/znc-1.4/modules'
if test -n ""; then \
test -d || /bin/install -c -d || exit 1 ; \
/bin/install -c || exit 1 ; \
fi
make[1]: Entering directory `/home/sdx/znc-1.4/man'
test -d /home/sdx/znc/share/man/man1 || /bin/install -c -d /home/sdx/znc/share/man/man1
/bin/install -c -m 644 znc.1.gz znc-buildmod.1.gz /home/sdx/znc/share/man/man1
make[1]: Leaving directory `/home/sdx/znc-1.4/man'
#test -d || /bin/install -c -d
#/bin/install -c -m 644 ./znc.service
******************************************************************
ZNC was successfully installed.
You can use '/home/sdx/znc/bin/znc --makeconf'
to generate a config file.
If you need help with using ZNC, please visit our wiki at:
http://znc.in
[sdx@ip-172-31-50-42 znc-1.4]$ /home/sdx/znc/bin/znc --makeconf
[ .. ] 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): 8888
[ ?? ] Would you like ZNC to listen using SSL? (yes/no) [no]:
[ ?? ] Would you like ZNC to listen using both IPv4 and IPv6? (yes/no) [yes]:
[ .. ] Verifying the listener...
[ >> ] ok
[ ** ] Unable to locate pem file: [/home/sdx/.znc/znc.pem], creating it
[ .. ] Writing Pem file [/home/sdx/.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): sdx
[ ?? ] Enter Password: isipassword
[ ?? ] Confirm Password: isipassword
[ ?? ] Would you like this user to be an admin? (yes/no) [yes]: yes
[ ?? ] Nick [sdx]:
[ ?? ] Alt Nick [sdx_]:
[ ?? ] Ident [sdx]:
[ ?? ] Real Name [Got ZNC?]:
[ ?? ] 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. |
[ ** ] | webadmin | Web based administration module |
[ ** ] +--------------+------------------------------------------------------------------------------------------+
[ ** ] And 21 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]:
[ ?? ] Load module <webadmin>? (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]:
[ .. ] Writing config [/home/sdx/.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> 8888 sdx:<pass>
[ ** ]And this in your browser...
[ ** ]http://<znc_server_ip>:8888/
[ ** ]
[ ?? ] Launch ZNC now? (yes/no) [yes]: yes
[ .. ] Opening config [/home/sdx/.znc/configs/znc.conf]...
[ >> ] ok
[ .. ] Binding to port [8888]...
[ >> ] ok
[ ** ] Loading user [sdx]
[ .. ] Forking into the background...
[ >> ] [pid: 17837]
[ ** ] ZNC 1.4 - http://znc.in
[sdx@ip-172-31-50-42 znc-1.4]$
--- selesai --
liat proses...
[sdx@ip-172-31-50-42 znc-1.4]$ ps x
PID TTY STAT TIME COMMAND
14657 pts/0 S 0:00 -bash
17837 ? Ss 0:00 /home/sdx/znc/bin/znc --makeconf
17857 pts/0 R+ 0:00 ps x
[sdx@ip-172-31-50-42 znc-1.4]$
Bingung cara setting network/ addchannel? Add nya di browser aja.. lewat IE / Mozzila
buka http://ip-znc-kamu:8888/
Isi username dan password yang telah kamu buat diatas.
Add to Favourites Print this Article