(→‎Ubuntu: Revised the Ubuntu section to have a "Build from Source" section and a "Install via PPA" section, which contains the instructions to put a PPA that is based off of the Debian packages onto the system)

[http://packages.ubuntu.com/search?keywords=znc&searchon=names&exact=1&suite=all&section=all This page lists all of the ZNC packages in the Ubuntu repositories.]

+

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:

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

build-essential

build-essential

Line 76:

Line 79:

if you want to get the build dependencies installed automatically.

if you want to get the build dependencies installed automatically.

−

==== Ubuntu 12.04 ====

+

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

−

ZNC 1.0 was backported to Ubuntu Precise (12.04). To install it, run the following from the command line:

A Personal Package Archive (PPA) has been created by [https://launchpad.net/~teward 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 [https://wiki.ubuntu.com/Releases end of life dates], except for Ubuntu 10.04 Lucid because of missing build dependencies.

+

+

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

−

==== Ubuntu 12.10 ====

+

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 1.0 was backported to Ubuntu Quantal (12.10). To install it, run the following from the command line:

./configure(use --prefix=$HOME/znc 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, except for Ubuntu 10.04 Lucid because of missing build dependencies.

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.