Linux Commands and Scripts

How to Install ZNC on CentOS 8

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.

Prerequisites

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:

  1. [ ?? ] Listen on port (1025 to 65534): Enter the port to connect to ZNC.
  2. [ ?? ] Listen using SSL (yes/no) [no]: Answer "Yes" (recommended) to use SSL for security.
  3. [ ?? ] 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.
  4. [ ?? ] Username (alphanumeric): Enter a username for the account.
  5. [ ?? ] Enter password: Enter, then confirm, the account password.
  6. [ ?? ] Nick [username]: Enter your IRC nick.
  7. [ ?? ] Alternate nick [username_]: Enter an alternate IRC nick.
  8. [ ?? ] Ident [username]: Enter an ident, typically your IRC nick.
  9. [ ?? ] Real name (optional): Enter your real name if desired.
  10. [ ?? ] Bind host (optional): Enter your bind host, if unsure leave blank.
  11. [ ?? ] Set up a network? (yes/no) [yes]: Enter no. Configuring networks is easier from the web interface.
  12. [ ?? ] 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.

Related Articles