./configure(use --prefix="$HOME/.local" if you don't want a system wide installation or simply don't have root access; use --with-openssl=/path/to/openssl if you have a non-standard SSL path)(use --help to see other configure options)

make(if you are on a dedicated server and your CPU has more than one core, you can use make -jX where X is the number of CPU cores to speed up compilation)

make install

Please note that compiling can take 5-10mins or more.

Once you have installed znc, you can use znc --makeconf to make a configuration file for ZNC. This config is stored in ~/.znc under the user you run it as. You should create a dedicated non root user to run znc under.

ZNC is run by just executing znc under the dedicated znc user, at which stage it goes to background. It does not make an init.d service for itself nor does it need to be run in screen or something similar.

Ubuntu

You can either build ZNC from source, or use a PPA that was made by a community member to contain pre-built ZNC packages for all supported Ubuntu releases. Note that the PPA does not contain packages for Ubuntu 10.04 Lucid due to build dependency issues, and if you want ZNC on Ubuntu 10.04 Lucid, you will have to compile it from source yourself.

Build From Source

If you want to build znc from source to get a newer version than Ubuntu provides, you need the following packages:

build-essential
libssl-dev
libperl-dev
pkg-config

You can also run the command

sudo apt-get build-dep znc

if you want to get the build dependencies installed automatically.

After you have done this, you can follow the instructions on this page for compiling from the source tarball.

Install via PPA

A Personal Package Archive (PPA) has been created by Thomas W., and contains the latest stable ZNC release as exists in Debian. It contains packages for all releases of Ubuntu that are currently supported and not past their end of life dates. Click here if you wish to see the details of the packages in the PPA. NOTE: This PPA does not contain packages for Ubuntu 10.04 Lucid because there are missing build dependencies in Ubuntu 10.04 that may prevent the packages from building.

The version currently available in the PPA, as of this last revision, is 1.2-3.

First, make sure you have the python-software-properties package installed:

sudo apt-get install python-software-properties

Then, add the PPA to your sources, and update the apt information:

sudo add-apt-repository ppa:teward/znc
sudo apt-get update

Then, install the znc packages:

sudo apt-get install znc znc-dbg znc-dev znc-perl znc-python znc-tcl

ZNC is now installed. You can create the configuration normally with this, when run on the user that you want to run ZNC as:

znc --makeconf

(Open)SuSE

ZNC is part of the official repositories. To install, use the YaST GUI or install via commandline by typing

rc.d scripts (deprecated)

You can read more about these scripts here. As of November 2012, initscripts support is being phased-out and expected to be totally deprecated in early 2013. Systemd scripts are already distributed in the package. The Archlinux wiki has some helpful information for new users who are getting started with znc.