Skip to content

Instantly share code, notes, and snippets.

@jakebathman
Last active September 19, 2021 16:53
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 jakebathman/cbb377d62460b3d876d70b6c64455535 to your computer and use it in GitHub Desktop.
Save jakebathman/cbb377d62460b3d876d70b6c64455535 to your computer and use it in GitHub Desktop.
IRC server setup on CentOS 7
#!/bin/bash
# This sets the variable $IPADDR to the IP address the new Linode receives.
IPADDR=$(/sbin/ifconfig eth0 | awk '/inet / { print $2 }' | sed 's/addr://')
sudo yum update -y
sudo yum install nginx wget git -y
cd ~
wget --no-check-certificate --trust-server-names https://www.unrealircd.org/downloads/unrealircd-latest.tar.gz
tar xzvf unrealircd*.tar.gz
cd unrealircd*
echo "IP: $IPADDR"
# TODO
# - [ ] Prompt for the domain to use
# - [ ] Build unrealircd
# - [ ] Edit configs
# - [ ] Edit nginx config
# - [ ] Run letsencrypt for the domain
# - [ ] Fix issues with iptables or firewall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment