From LedHed's Wiki
Jump to: navigation, search
Line 29: Line 29:
 
== Reference ==
 
== Reference ==
 
http://aazza.github.io/2014/06/01/installing-znc-on-freebsd/
 
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.
+
<br>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.
  
 
[[Category:FreeBSD]][[Category:Linux]]
 
[[Category:FreeBSD]][[Category:Linux]]

Revision as of 06:43, 6 August 2014

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"


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.