This article will describe installing ngIRCd which is IRC server.
Table of Contents
1 Install ngIRCd
The following script will install ngIRCd.
#!/bin/sh set -e DOMAIN=irc-server.hiroom2.com sudo apk add 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' \ -e 's/;PAM = yes/PAM = no/g' \ -e 's/;OperCanUseMode = no/OperCanUseMode = yes/g' \ -i /etc/ngircd/ngircd.conf cat <<EOF | sudo tee /etc/ngircd/ngircd.motd ********************** * AlpineLinux ngIRCd * ********************** EOF sudo rc-update add ngircd sudo 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