philroche
7/19/2016 - 3:40 PM

InstallZNCOnUbuntu-EC2-EBS-only.sh

#Install ZNC
sudo apt-get update
sudo apt-get install znc

#Configure Timezone on server
echo "Europe/Madrid"  | sudo tee /etc/timezone
sudo dpkg-reconfigure --frontend noninteractive tzdata

#This is for running on a EBS Only t2.micro instance (covered under the free tier)
#No need to mount EBS volume separately, root fs is already RW and EBS backed
# /dev/xvda1 on / type ext4 (rw,discard)

#Prepare /data dir off root fs
sudo mkdir /data

#Create data directory for ZNC
sudo mkdir /data/znc
sudo chown -R ubuntu:ubuntu /data/znc

#Configure ZNC - output from this will give URL for web interface
/usr/bin/znc --datadir=/data/znc --makeconf

#Make sure to install the following global modules: partyline webadmin

#Make sure to install the following user modules: chansaver controlpanel perform webadmin

#This configuration is saved in /data/znc/configs/znc.conf

#Ensure you are using Firefox to access webadmin as Chrome does not support https on any port other than 443