ZNC Deployment

by mbeach
72 deployments · 55 still active · last rev. 1 year ago

Install and set up ZNC on a Linode.

This StackScript sets up a hardened CentOS 7 deployment using the steps in the "Securing your Server" guide here:

Then sets up ZNC using the steps here:

Because of the differences in maintenance of the ZNC package across distributions, CentOS 7 is used in this StackScript for the latest-and-greatest. See http://wiki.znc.in/Installation for more info on why this is the case.

ZNC will be configured to start automatically on boot but will remain unconfigured after installation. The Linode will automatically reboot once the StackScript completes. After rebooting, you will need to run the following steps to complete installation and open the firewall port:

sudo -u znc znc --makeconf
sudo firewall-cmd --zone=public --add-port=####/tcp
sudo firewall-cmd --zone=public --add-port=####/tcp --permanent

Compatible with: CentOS 7

#<UDF name="ssuser" Label="Sudo user username?" example="username" />
#<UDF name="sspassword" Label="Sudo user password?" example="strongPassword" />
#<UDF name="sspubkey" Label="SSH pubkey (installed for root and sudo user)?" example="ssh-rsa ..." />

curl -o out.sh -L https://raw.githubusercontent.com/mb243/linux-deployment-scripts/master/ZNC/ZNC-deployment.sh

. ./out.sh