Skip to content

Instantly share code, notes, and snippets.

@philroche
Last active July 19, 2016 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philroche/5d6b9027dac1ab3516f7ac948a6b09ee to your computer and use it in GitHub Desktop.
Save philroche/5d6b9027dac1ab3516f7ac948a6b09ee to your computer and use it in GitHub Desktop.
#Install ZNC
sudo apt-get update
sudo apt-get install znc
#Configure Timezone on server
echo "Europe/Dublin" | sudo tee /etc/timezone
sudo dpkg-reconfigure --frontend noninteractive tzdata
#Mount EBS storage
sudo mkfs -t ext4 /dev/xvdb
sudo file -s /dev/xvdb
sudo mkdir /data
sudo mount /dev/xvdb /data
#Add the mounted storage to fstab
sudo cp /etc/fstab /etc/fstab.orig
cat << EOF | sudo tee /etc/fstab
/dev/xvdb /data ext4 defaults,nofail 0 2
EOF
#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment