AlpineLinux 3.8: Install ngIRCd for IRC server


Table of Contents

1 Install ngIRCd

The following script will install ngIRCd.

#!/bin/sh -eDOMAIN=$(hostname -f)sudo apk add ngircdsudo rc-update add ngircdsudo sed -e “s/Name = irc.example.net/Name = ${DOMAIN}/g” -e ‘s/;Name = TheOper/Name = TheOper/g’ -e ‘s/;Password = ThePwd/Password = ThePwd/g’ -e ‘s/;PAM = yes/PAM = no/g’ -e ‘s/;OperCanUseMode = no/OperCanUseMode = yes/g’ -i /etc/ngircd/ngircd.confcat <<EOF | sudo tee /etc/ngircd/ngircd.motd*********************** AlpineLinux ngIRCd ***********************EOFsudo rc-service ngircd start

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

Android | Linux | SDL - Narrow Escape