Skip to content

ZNC

ZNC - Just another bouncer for IRC


Prerequisites

Before installing ZNC on Gentoo, make sure your system has the necessary prerequisites:

emerge --sync
emerge -av dev-vcs/git dev-util/cmake dev-libs/openssl

Download and Build ZNC from Source

git clone https://github.com/znc/znc
cd $_
git submodule update --init --recursive
./configure --disable-ipv6
make -j$(( $(nproc) + 1 ))
make install

Install ZNC via Portage

Optional Build Flags

Gentoo allows for USE flags to enable or disable certain features.

You can specify these USE flags when emerging ZNC. For example, to enable Python and Perl scripting support:

USE="python perl" emerge -av znc

Remember to sync the Portage tree and update your system before installing ZNC

emerge --sync
emerge -avuDN @world

Configuration

To configure ZNC, run the following command and follow the prompts:

znc --makeconf

Create certificates for ZNC

cat /etc/letsencrypt/live/znc.nr1.nu/{privkey,fullchain}.pem > /home/wuseman/.znc/znc.pem
chown ${LOGNAME}:${LOGNAME} /home/wuseman/.znc/znc.pem

Resource(s)