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?
- Make sure the system is up to date:
sudo apt-get update && sudo apt-get upgrade -y
- Install the
sudo apt-get install build-essential checkinstall
- If you want to use SSL encryption to connect to the web interface (recommended), install
sudo apt-get install libssl-dev
- Download the latest version of ZNC (1.6.0 at the time of writing):
- Expand the archive file:
tar -xvf znc-1.*.tar.gz
- Move into the ZNC directory:
- Run the
configurescript to make sure it has all the needed prerequisites:
If not, you will need to install any missing packages prior to continuing.
- Install ZNC:
make sudo checkinstall --fstrans=0 make install
Begin the configuration process:
This will launch an interactive script asking you for input on a variety of parameters.
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