How To Install ZNC On An Arch Linux Server

Updated on November 21, 2023
How To Install ZNC On An Arch Linux Server header image

Introduction

ZNC is a popular IRC bouncer, a program that allows you to mask your IP address when using IRC and log messages while offline. This guide explains how to install ZNC on a Vultr Arch cloud server instance.

Prerequisites

Deploy a Vultr Arch server.

Installation

Update

Before installing any new software, the Arch Linux system must be fully updated. Run the following command to update the system:

$ sudo pacman -Syyu

Install

Install ZNC and all dependencies:

$ sudo pacman -S znc

Configuration

Run the following command to configure ZNC:

$ 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.

Enable the ZNC Service

Run the following command to start ZNC at boot time.

$ sudo systemctl enable --now znc.service

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.

Conclusion

The ZNC instance is running and available to IRC clients. Configuring ZNC to connect with IRC servers and networks is dependent on the particular network used. See the official ZNC Wiki for more specific information relating to your case.