Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
August 5, 2008 - Time to Submit Your Links for the August 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 20, 2008, 04:48:25 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: IRCd  (Read 721 times)
d4j1nx
Newbie
*
Offline Offline

Posts: 4


« on: April 09, 2006, 07:56:00 AM »

Hi,

I have recently purchased a dedicated server plan and wish to add an IRCd, as well as some other processes.

I am familiar with linux and know that I shouldnt run any of these services as "root"

Can someone please give me advice on how to set this up?

Thanks,

d4
Logged
james.johnstone
Newbie
*
Offline Offline

Posts: 2


« Reply #1 on: April 24, 2006, 09:46:13 AM »

hi d4,

DISCLAIMERISH THING: before attempting to run an IRCd you should be familiar with the basics on how IRC networks and servers work, so that you can understand what you need to do in the process, as each server can be unique with it's own problems and so on...
you will need to understand everything from the basics of compiling a program to knowing what a Y:Line is and be able to deal with problems involving these. if you think you can do all this, go on.


anyhow, moving on. the first thing you need to do is choose a server daemon. there are several out there, all with different features and so on.

UnrealIRCd is probably the newest most feature-packed server, but it's a little different to running a normal IRCd so I wouldn't be a great amount of help with setting this up, but you can check it out at: http://www.unrealircd.com/

Some of the more typical IRCd's are those such as:

 - Bahamut (The DalNet IRCd): http://bahamut.dal.net/
 - ircU (The Undernet IRCd): http://coder-com.undernet.org/
 - and my personal favourite, UltimateIRCd: http://www.shadow-realm.org/

Now, once you've downloaded these, you'll want to extract them into the directory you want to run IRCd from... so let's make that first.

Code:
mkdir /path/to/my/ircd/dir/
cd /path/to/my/ircd/dir/

and then we need to get the daemon. I'm going to use UltimateIRCd for this example:

Code:
wget http://switch.dl.sourceforge.net/sourceforge/ultimate/Ultimate3.0.1.tar.gz

Extract it:

Code:
tar -xvzf Ultimate3.0.1.tar.gz

And now it's time to do a little bit of configuration with it....


THE SHORT GUIDE... straight from the UlimateIRCd Documentation:

Installing UltimateIRCD 3.0.0
==============================

All commands should be issued from the IRCd root directory
unless otherwise stated.

1) Issue: "./configure" (issue "./configure --help" for a full list of supported options)
2) Issue: "make", in the event of errors (warnings can normally be ignored)
   please consult the FAQ or check the support forums at http://www.shadow-realm.org/
3) Issue: "make install"
4) move to your installation directory, ~/Ultimate by default.
5) Edit etc/ircd.ini and create the file etc/ircd.conf from etc/ircd.conf.dist
6) Optionally edit the etc/networks/temple.network to your liking.
7) If you are setting up the IRCd with SSL enabled ports and do not have a SSL certificate,
    you will need to enter the bin/ directory and run the ./ssl-cert.sh script.
    This step will create a SELF SIGNED SSL certificate.
Gleam Run the ircd by using the ./ircd script or by launching the binary directly
   by bin/ircd. In case of problems, read the FAQ


THE LONGER GUIDE... straight from my sleep-deprived mind.

Go into the newly extracted directory, and run the following command:

Code:
./configure

The program will ask you some questions about how you want to run your IRCd. If you are unsure how to answer them, it may give you a default option, and you should use that.

When that's all over and done with, time to compile it. If you've used Linux before with compiling and so on, this should cause no problems:

Code:
make
make install

And wait a couple of minutes... da da da da da... done.

Okay.

You've now pretty much _installed_ your IRCd, BUT it is not ready to run. You need to configure it to work Smile

In the etc/ directory under your IRCd's directory, you'll find a file called "ircd.conf.dist". This is your template configuration file, and you'll need to open, edit and save it as ircd.conf for the program to work.
It's laid out in an easy to understand format, so just follow all the examples to create the lines you need.

For example, the first type of line, the "M:Line" tells your server what to run as:

Code:
#=========================# Server Info #=========================#
#
# M:hostname:IP:Description Of Your Server:7000
#
# Example (ipv4):
#
# M:WhiteRose.No.Eu.Shadow-Realm.org:195.159.32.103:Whiterose Internet Services:7000
#
# Example (ipv6):
#
# M:WhiteRose.No.Eu.Shadow-Realm.org:[::ffff:195.159.32.103}:Whiterose Internet Services:7000
# M:WhiteRose.No.Eu.Shadow-Realm.org:[ffff:ab46::1}:Whiterose Internet Services:7000
#
# Note (ipv6): If you want to link to ipv4 servers use an ipv4 as primary address.
#              (bind the ipv6 via P lines)
#

So for example, you'd add something like:

Code:
M:servername.domainname.com:server.ip:My Awesome IRC Server:7000

And so on until you get to the end Smile

Save it, and move onto the next configuration:

The Network Configuration.

Now, if you plan on linking to a currently established network, you may be able to find the network configuration preset in the etc/networks/ folder. Have a look before you get going, otherwise open up template.network and get editing, then save it as a proper network file, forexample, mynetwork.network.
Yet again, the file is pretty easy to understand and setup, so it shouldn't be a problem Smile

Finally, The Second IRCd Configuration?

ircd.ini contains some extra options that need to be setup, such as where to find the network file and so on... and YET again, you guessed it, it's easy to understand so you can do that on your own.

Now, you need to setup some MOTD files and so on... a.k.a. Message of the Days...

They are located in the etc/ directory as well and are the messages displayed to users when they connect to your server. There are a few of them, and they all have names like...

 - ircd.motd
 - ircd.opermotd (displayed to operators)
 - ircd.rules (displayed when users request the rules)

and so on Smile


After you've done that, you'll come to be able to sigh with relief at knowing you've finished the configuration! Smile

Now, just start her up...

Go back into the main IRCd directory and type ./ircd.
This may be in another folder though, most likely bin/, so go...

Code:
cd bin/
./ircd

And hopefully you'll get some nice messages, and IRCd will launch into the background!

Just fire up an IRC client, and connect to a port you specified and see if it works Smile

Hope this helps,

James
« Last Edit: April 24, 2006, 10:30:24 AM by james.johnstone » Logged
stephan
Guest
« Reply #2 on: April 26, 2006, 04:03:27 AM »

Nice tutorial James  Applause
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM