Installing Unreal IRC and Anope

First of all you will need to download UnrealIRCD and Anope source files into a directory that you want to install them into, eg /Opt or you home drive /home/username

Next you will need to decompress the files:

tar xfz Unrealx.x.x.tar.gz
tar xfz anope-x.x.x.tar.gz

 Installing and Configuring UnrealIRCD

cd Unrealx.x

./Config

You will now need to answer the questions asked:

anti-spoof protection? No
directory with configuration files? hit enter
path to ircd binary? hit enter
hub or leaf? Hub
hostname? Type the subdomain created earlier
default permissions? 0600
SSL support? No (or Yes if you are a security addict)
IPv6 support? No
enable ziplinks? No (unless you're linking with another IRCD)
enable remote includes? No (again, unless you're linking)
enable prefixes? Yes (totally up to you)
listen backlog? 5 is fine, hit enter
nickname history? 2000 is fine, hit enter
max SendQ length? hit enter
buffer pools? hit enter
file descriptors? hit enter
more parameters? hit enter

Now type make to compelete the procss

make

Once complete you will need to create a config file using the example included in the install

cp doc/example.conf unrealircd.conf

Now we can make the modifications to get this working for you

sudo nano unrealircd.conf

Uncomment the following lines:

loadmodule "src/modules/commands.so";
loadmodule "src/modules/cloak.so";

Set your IRCD info:

me
{
name "irc.yourdomain.com";
info "your IRC network name";
numeric 1;
};

Show users you are the Admin

admin {
"Your Name";
"Your NickName";
"Your email address";
};

Add your self as an Operator
oper YourNickHere {
class           clients;
from {
userhost *@*;
};
password "YourPassHere";
flags
{
netadmin;
can_zline;
can_gzline;
can_gkline;
global;
local;
admin;
services-admin;
can_localkill;
can_globalkill;
can_kline;
can_unkline;
can_setq;
can_override;

};
};

Add this IRC Service Section (do not edit the current lines)
link services.yourdomain.com
{
username *;
hostname 127.0.0.1;
bind-ip *;
port 7029;
hub *;
password-connect "services";
password-receive "services";
class servers;
options {
};
};

Comment this section out with /* */
/*
link            hub.mynet.com
{
username    *;
hostname     1.2.3.4;
bind-ip     *;
port         7029;
hub             *;
password-connect "LiNk";
password-receive "LiNk";
class           servers;
options {
/* Note: You should not use autoconnect when linking services */
autoconnect;
ssl;
zip;
};
};
*/

Add a Uline entry

ulines {
services.yourdomain.com;
stats.yourdomain.com;
};

Comment this section out with /* */
/*
tld {
mask *@*.fr;
motd "ircd.motd.fr";
rules "ircd.rules.fr";
};
*/

Now you can edit the network configuration
* Network configuration */
set {
network-name "YourNetworkNameHere";
default-server "irc.yourdomain.com";
services-server "services.yourdomain.com";
stats-server "stats.yourdomain.com";
help-channel "#help";
hiddenhost-prefix "hidden";
/* prefix-quit "no"; */
/* Cloak keys should be the same at all servers on the network.
/* [..etc..]
*/
cloak-keys {
"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";
"90jioIOjhiUIOH877h87UGU898hgF";
"IOjiojiio8990UHUHij89KJBBKU898";
};
/* on-oper host */
hosts {
local "locop.yourdomain.com";
global "ircop.yourdomain.com";
coadmin "coadmin.yourdomain.com";
admin "admin.yourdomain.com";
servicesadmin "csops.yourdomain.com";
netadmin "netadmin.yourdomain.com";
host-on-oper-up "no";
};
};

Now edit the server configuration
/* Server specific configuration */

set {
kline-address "VALID.mail@address.here";
auto-join "#lobby";
modes-on-connect "+ixw";
modes-on-oper "+xwgs";
oper-auto-join "#opers";
dns {
nameserver Your.DNS.IP.Here;
timeout 2s;
retries 2;
};

Save this file and test your configuration:
./unreal start

 Installing and Configuring UnrealIRCD

First change to the Anope directory
cd ../anope-x.x.x

Then run the config
./Config

You will now need to answer the questions asked:
install binaries to? I suggest /path/to/Unrealx.x/services
create dir? yes
install data files to? hit enter
group? hit enter
default umask? hit emter
MD5 passwd encryption? no (unless you really want it)
auto-check for mysql libs? hit enter

Now Type make and make install to complete the process:
make
make install

Now browse to the services folder
cd /path/to/Unrealx.x/services

Create a services config file
cp example.conf services.conf

Now we need to make a few changes:
nano services.conf

IRCDModule "unreal32"
RemoteServer 127.0.0.1 6667 "services"
ServerName "services.yourdomain.com"
ServicesRoot "YourNicknameHere"

Now save your file

You can test your config by running

./services -debug -nofork

To run normally
./services

References: http://news.softpedia.com/news/Building-Your-Own-IRC-Server-With-Services-40772.shtml