Skip to content

Instantly share code, notes, and snippets.

@jakoch
Last active October 1, 2015 18:28
Show Gist options
  • Save jakoch/2037922 to your computer and use it in GitHub Desktop.
Save jakoch/2037922 to your computer and use it in GitHub Desktop.
ZNC Installation Script for Debian
#!/bin/bash
#
# ZNC Installation Script for Debian
# ----------------------------------
# Author: Jens-Andre Koch
# Date: 14.03.2012
# --------------------------------<3
# fetch znc-version.tar.gz archive from github
wget --no-check-certificate https://github.com/znc/znc/archive/znc-1.2.tar.gz -O - | tar xz
# fetch latest version from ZNC HQ
#wget http://znc.in/nightly/znc-latest.tar.gz -O - | tar xz
# for building znc from source, the following packages are needed:
#apt-get install build-essential libssl-dev libperl-dev swig python3 python3-dev tcl8.5 tcl8.5-dev
cd znc-*
# produce the "configure" script
./autogen.sh
# Installation
#
# Example
# --enable-tcl --with-tcl=/path
# --enable-openssl --with-openssl=/path
# --enable-debug
#
# If you want to run ZNC WITHOUT installing it
# (directly from source) then use:
# --enable-run-from-source
#
#
./configure --enable-tcl -enable-python
make
make install
# add new user
adduser zncbouncer
# use user "zncbouncer" to create a configuration for ZNC (-c, --makeconf)
sudo -u zncbouncer znc -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment