ElementaryOS 0.4: Install ngIRCd for IRC server

This article will describe installing ngIRCd which is IRC server.

1 Install ngIRCd

The following script will install ngIRCd.

#!/bin/sh

set -e

DOMAIN=ngircd.hiroom2.com

sudo apt install -y ngircd

sudo sed -e "s/Name = irc.example.net/Name = ${DOMAIN}/g" \
     -e 's/;Name = TheOper/Name = TheOper/g' \
     -e 's/;Password = ThePwd/Password = ThePwd/g' \
     -i /etc/ngircd/ngircd.conf

sudo systemctl enable ngircd
sudo systemctl restart ngircd

2 Other configuration

ngIRC configuration file is /etc/ngircd/ngircd.conf.

  • Name = TheOper and Password = ThePwd is IRC operator username and password. This is used for OPER command. Change these for your username and password. If you do not need IRC operator, remove replacement by sed -e option.
  • Changing /etc/ngircd/ngircd.motd will change welcome message of IRC server.
  • Password in [Global] section is for password authentication when connecting IRC server.
  • Listen in [Global] section is for IP address range to be listened.
  • Port in [Global] section is for port to be listened. Default port is 6667.
  • In order to get channel operator privilege when you have no privilege, get IRC operator privilege with OPER command and get channnel operator privilege with OP command.
/OPER TheOper ThePwd
/OP