Monthly Archives: April 2008

Setting up Services on your UnrealIrcd IRC Server [SurrealServices]

Related to: Setting up an IRC Server on your Desktop [UnrealIrcd]

Here is a tutorial to set up IRC Services on Debian/Ubuntu (may work on other distros with appropriate changes in a few commands). You’ll also need a mysql server running.

you can get it by typing this in terminal (Since I want the services dir inside the Unreal directory, I install in UnrealIRCd/services. You may install it in your home directory)

cd UnrealIRCd
svn co http://www.surrealchat.net/svn/srsv/tags/0.4.2-rc3/ services

or visit http://www.surrealchat.net/services/releases/
and download the appropriate version and extract it to the correct directory

You’ll need two perl modules

mkdir perlmods
cd perlmods
wget http://search.cpan.org/CPAN/authors/id/J/JP/JPRIT/Event-1.10.tar.gz
tar zxvf Event-1.10.tar.gz
cd Event-1.10
perl Makefile.PL
make
sudo make install
cd ..
wget http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/TimeDate-1.16.tar.gz
tar zxvf TimeDate-1.16.tar.gz
cd TimeDate-1.16
perl Makefile.PL
make
sudo make install
cd ../..
rm -r perlmods

copy the example config

cp config-example/ config

setup appropriate mysql user with access to an empty database
Now edit the files inside the config directory

Now run

./db-setup.pl

To start services, run (make sure your unrealircd server is runnning)

./services.pl

Join your server with an IRC client and register your nick
(for commands, check http://www.surrealchat.net/wiki/Help)

After you’re done registering, make yourself the services root

./addroot.pl [your nick]

Reblog this post [with Zemanta]

Setting up an IRC Server on your Desktop [UnrealIrcd]

This Tutorial helps install an IRC daemon on Your desktop or server.

I’m using an Ubuntu 7.10 desktop, but most of the instructions here may work on any distro.

We’ll be using UnrealIRCD.

You can download the stable version Here
or get the svn version with the following command.

svn co svn://svn.unrealircd.com/trunk/unreal3 UnrealIRCd

if you downloaded the stable version, Extract the tar file to a directory and cd to it. Then run

./Config

Leave the default values as they are.
Enable SSL support if you want. You’ll need OpenSSL for this
Enter SSL details when asked for.

make

make install /* Only If you’re not installing in same directory */

Look for Extra modules here:
http://www.angrywolf.org/modules.php?lang=en
http://www.vulnscan.org/modules
http://www.unrealircd.com/modules.php

Download place .c files in src/modules directory.
edit the module files if necessary. Most shouldn’t need any editing.

To compile Modules

make custommodule MODULEFILE=<modulename>

for each module.

Now lets make a config file.

cp doc/example.conf unrealircd.conf
mv spamfilter.conf.example spamfilter.conf

then edit unrealircd.conf with your favourite text editor
Eg: gedit unrealircd.conf

Carefully edit all values. Remember to comment the lines beginning with ‘die’.

(Click Here for Help with Editing the Config)

Create the motd and rules files and rename them as specified in the config.

If all went well, the IRCd daemon will start with the command

/PATH/TO/./unreal start

or
If you’re already in the Unreal directory

./unreal start

If you want other people to be able to join, tell them to type /server [your.IP] from their IRC clients
(http://en.wikipedia.org/wiki/List_of_IRC_clients)
If you have a router you may want to open a port or two so that people can connect to your server.
port 6667 for a normal connection and
port 6697 for ssl [only if you compiled with ssl support]

See PortForward.com for help with opening ports on hardware routers.

Enhanced by Zemanta