How To Install ZNC on Debian?

Install ZNC from Source on Debian?

What is exactly ZNC?
ZNC is an IRC bouncer. It’s designed to run on a server that remains connected to an IRC network and buffer messages. With ZNC, a local IRC client can connect and disconnect without losing a chat session or missing any messages.

Before You Begin?

  1. Make sure the system is up to date:
    sudo apt-get update && sudo apt-get upgrade -y
  2. Install the build-essential and checkinstall packages:
    sudo apt-get install build-essential checkinstall
  3. If you want to use SSL encryption to connect to the web interface (recommended), install libssl-dev:
    sudo apt-get install libssl-dev

Install ZNC

  1. Download the latest version of ZNC (1.6.0 at the time of writing):
  2. Expand the archive file:
    tar -xvf znc-1.*.tar.gz
  3. Move into the ZNC directory:
    cd znc-1.6.0
  4. Run the configure script to make sure it has all the needed prerequisites:

    If not, you will need to install any missing packages prior to continuing.

  5. Install ZNC:
    sudo checkinstall --fstrans=0 make install

Configure ZNC

Begin the configuration process:

znc --makeconf

This will launch an interactive script asking you for input on a variety of parameters.

Add Crontab
It allows tasks to be automatically run in the background to execute ZNC automatically, when server is turned back ON. To make sure znc is restarted after a reboot use cronjob.

crontab -e

*/1 * * * * /usr/bin/znc >/dev/null 2>&1


Comments are closed.