From LedHed's Wiki
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 24: Line 24:
 
Generate the default config file
 
Generate the default config file
 
  su -m znc -c "znc --makeconf --datadir=/usr/local/etc/znc"
 
  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
  
  
Line 29: Line 36:
 
== Reference ==
 
== Reference ==
 
http://aazza.github.io/2014/06/01/installing-znc-on-freebsd/
 
http://aazza.github.io/2014/06/01/installing-znc-on-freebsd/
 +
<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]]

Latest revision as of 21:12, 15 September 2015

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.