ZNC Deployment

by mbeach
53 deployments · 41 still active · last rev. 2 months 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:
https://www.linode.com/docs/security/securing-your-server

Then sets up ZNC using the steps here:
http://wiki.znc.in/Installation#Fedora.2FCentOS.2FRed_Hat_Enterprise_Linux

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
						#!/bin/bash

#<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