In this article, we’ll explain how to install ZNC on CentOS 8.
ZNC is a popular IRC bouncer, a program that allows you to mask your IP address when using IRC and log messages while offline. Multiple clients from different locations can connect to a single ZNC account simultaneously and therefore appear under the same nickname on IRC.
- A CentOS 8 installed server.
- A root user access or normal user with administrative privileges.
Install ZNC on CentOS 8
Step 1 - Keep the server updated
# dnf update -y
Step 2 - Install EPEL
# dnf install epel-release -y
Step 2 - Install ZNC
# dnf install znc -y
Step 3 - Configure ZNC
Once installed you can configure znc by running:
# sudo -u znc znc --makeconf
Answer the following questions:
- [ ?? ] Listen on port (1025 to 65534): Enter the port to connect to ZNC.
- [ ?? ] Listen using SSL (yes/no) [no]: Answer "Yes" (recommended) to use SSL for security.
- [ ?? ] Listen using both IPv4 and IPv6 (yes/no) [yes]: It’s easiest to configure both IPv4 and IPv6 and use a firewall if you prefer to use block one or the other.
- [ ?? ] Username (alphanumeric): Enter a username for the account.
- [ ?? ] Enter password: Enter, then confirm, the account password.
- [ ?? ] Nick [username]: Enter your IRC nick.
- [ ?? ] Alternate nick [username_]: Enter an alternate IRC nick.
- [ ?? ] Ident [username]: Enter an ident, typically your IRC nick.
- [ ?? ] Real name (optional): Enter your real name if desired.
- [ ?? ] Bind host (optional): Enter your bind host, if unsure leave blank.
- [ ?? ] Set up a network? (yes/no) [yes]: Enter no. Configuring networks is easier from the web interface.
- [ ?? ] Launch ZNC now? (yes/no) [yes]: Enter yes to start the program.
Step 4 - Start and enable znc.service
# systemctl start znc
# systemctl status znc
Access the Web Administration Panel
Navigate to https://SERVER_IP:PORT in a web browser, where SERVER_IP is the server’s IP address or domain name, and PORT is the port number specified earlier. Sign in with the administrator username and password to finish configuration.
In this article, we have seen how to install ZNC on CentOS 8.