Post4VPS Forum | Free VPS Provider
Znc host debian/unbuntu - Printable Version

+- Post4VPS Forum | Free VPS Provider (https://post4vps.com)
+-- Forum: VPS Discussion (https://post4vps.com/Forum-VPS-Discussion)
+--- Forum: Tutorials (https://post4vps.com/Forum-Tutorials)
+--- Thread: Znc host debian/unbuntu (/Thread-Znc-host-debian-unbuntu)



Znc host debian/unbuntu - Decent12 - 10-01-2016

hi today i will tell you how to install znc server 

First you have to update your sources by typing this
Code:
sudo apt-get update
if you dont have sudo install sudo by 
Code:
apt-get install sudo
now you need to get some dependencies needed to compile znc from source
Code:
sudo apt-get install build-essential libssl-dev libperl-dev pkg-config
Download the Latest znc version by typing
Code:
cd /usr/local/src; sudo wget http://znc.in/releases/znc-latest.tar.gz
Now extract the the downloaded file which you download by typing this command
Code:
sudo tar -xzvf znc-latest.tar.gz; cd znc*
now you can configure source in order to compile Znc you can use
Code:
./configure
 
Lastly lets compile Znc
Code:
sudo make; sudo make install
its will takes 5-7 minutes when its completed its mean you have been successfully installed znc on your vps

Configuration:
first you have to add a new user by typing 
Code:
adduser znc
switch new user and then cd to home
Code:
su znc; cd ~
now you have to create configuration file
Code:
/usr/local/bin/znc --makeconf
Now Znc will ask some questions in order to create configuration file the first question its will ask on which port do you want to run znc the port can be anything 1025 to 65535
i select 5000 you select port of your own choice 
Note:you will conect to your znc through that port like domain.com:5000
Code:
What port would you like ZNC to listen on? (1025 to 65535): 5000
now its will ask regarding ssl which allows you to connect through http i recommend answer No because its can cause problems
Code:
Would you like ZNC to listen using SSL? (yes/no) [no]: no
its will now ask do you want to listen znc using ipv6 and ipv4
Code:
Would you like ZNC to listen using ipv6 and ipv4? (yes/no) [yes]: yes
now its will ask user details for admin account its easy i dont need to define
now we will setup network for that account which network you want add it there are many like freenode, LUnet
Code:
Would you like to set up a network? (yes/no) [no]: yes
Code:
Network ('freenode'): freenode i type freenode you can type any
after this its will ask 1 or two questions you can answer it thats why i didnt define because with typing it my hand start pain Tongue
now its will ask run znc
Code:
launch ZNC now? (yes/no) [yes]: yes



RE: Znc host debian/unbuntu - Anik - 10-25-2016

Nice Tutorial. Though I will never recommened to install ZNC on any free VPS. Cuz they are temporary and can be lost anytime.