Jens A. Koch

ZNC Installation Script for Debian

#!/bin/bash
#
# ZNC Installation Script for Debian
# ----------------------------------
# Author: Jens-Andre Koch
# Date: 14.03.2012
# Updated: 29.08.2012
# --------------------------------<3
     
# fetch znc-version.tar.gz archive from github
wget --no-check-certificate https://github.com/znc/znc/tarball/znc-0.207 -O - | tar xz
    
# fetch latest version from ZNC HQ
#wget http://znc.in/nightly/znc-latest.tar.gz -O - | tar xz

# since 207 a dependency for swig2 exists. debian squeeze contains only v1.3.4
# to build znc you need to take the swig2.0 package from debian-backports
# add the following line to /etc/sources.list
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
apt-get update

# for building znc from source, the following packages are needed:
apt-get install build-essential libssl-dev libperl-dev swig2.0 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 --enable-perl
make
make install
 
# add new user
adduser zncbouncer
  
# use user "zncbouncer" to create a configuration for ZNC (-c, --makeconf)
sudo -u zncbouncer znc -c
Comments Off on ZNC Installation Script for Debian

Comments are closed.