From LedHed's Wiki
Revision as of 21:12, 15 September 2015 by Ledhed (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How to install znc (IRC Bouncer/Proxy) the right way on FreeBSD.

Install

pkg install znc

or

cd /usr/ports/irc/znc
make install clean


Create Service Account

pw adduser znc -d /nonexistent -s /usr/sbin/nologin -c "ZNC user"


Config

Add the following lines to your /etc/rc.conf

znc_enable="YES"
znc_conf_dir="/usr/local/etc/znc"
znc_user="znc"

Create the config folder and set ownership

mkdir /usr/local/etc/znc
chown znc /usr/local/etc/znc

Generate the default config file

su -m znc -c "znc --makeconf --datadir=/usr/local/etc/znc"


Passwords

To create/change your znc password run the following:

znc --makepass

Paste the output into your znc.conf, then restart the ZNC sercice:

service znc restart


Reference

http://aazza.github.io/2014/06/01/installing-znc-on-freebsd/
Note: All credit goes to Nataliia Uvarova in the above link, I only placed this info on my site for redundancy and ease of access.