Ubuntu ircd-hybrid

c.f. http://www.the-tech-tutorial.com/?p=709

Ahh the good old IRC server, these things have been letting people chat to each other since 1988. In there most basic form they are chat room servers, pretty much every chat room you’ve used on a web page is connecting to an IRC server. They definitely have a place in computing history as they were used to report on the 1991 Soviet coup d’état attempt and Gulf War during media blackouts. But they have become much more then simple chat rooms, they allow for: File Transfer, Encryption, Proxy, Colour, Channels, Users, and even chat bots.

Sadly the IRC chat room are being replaced by things like MSN and Facebook messenger. They are great to install on web servers because they allow you to include chat rooms into your websites, or just to play with something that’s been such an important part of computing history.

First we need to install “ircd-hybrid”, this is the main IRC server that we’ll be working on:

apt-get install ircd-hybrid

This will install a basic IRC server and run it on ports 6666-6669TCP, you can actually connect to this now buy opening your favourite IRC client (mines epic4) and typing:

irc 127.0.0.1

At this stage there isn’t much you can do with it, you cant even create a channel and chat to someone, we need to go through some configuration tasks. First lets edit the initial MOTD(Message of the Day) window by editing /etc/ircd-hybrid/ircd.motd:


c.f. http://www.hackforums.net/archive/index.php/thread-821959.html

This tutorial will show you how to set a ircd-hybrid IRC server in ubuntu.
Open a terminal and run: apt-get install ircd-hybrid
Next open your IRC client and connect to the host "127.0.0.1".
If installation was successful you should see something simmilar to :

Quote:_,met$$$$$gg. ircd-hybrid
,g$$$$$$$$$$$$$$$P. -----------
,g$$P"" """Y$$.".
,$$P' `$$$. If you are seeing this, you have
',$$P ,ggs. `$$b: installed the ircd-hybrid package and
`d$$' ,$P"' . $$$ you are now connected to your new IRC
$$P d$' , $$P server -- congratulations.
$$: $$. - ,d$$'
$$; Y$b._ _,d$P' Since you have just installed the
Y$$. `.`"Y$$$$P"' package, there are some things you
`$$b "-.__ should do before going any further:
`Y$$b
`Y$$. 1. Edit /etc/ircd-hybrid/ircd.conf to
`$$b. suit your needs.
`Y$$b.
`"Y$b._ 2. Edit /etc/ircd-hybrid/ircd.motd (this
`"""" MOTD) to suit your needs. You are free
to use this Debian swirl under the
Debian Open Use Logo License

In your terminal run this command: nano /etc/ircd-hybrid/ircd.conf
Find the part that look like this:

    Quote:listen {
    /* port: the specific port to listen on. if no host is specified
    * before, it will listen on all available IPs.
    *
    * ports are seperated via a comma, a range may be specified using “..”
    */

    /* port: listen on all available IPs, ports 6665 to 6669 */
    host = “127.0.0.1″; # change this!
    port = 6665 .. 6669;
    };

and change it to:

    Quote:listen {
    /* port: the specific port to listen on. if no host is specified
    * before, it will listen on all available IPs.
    *
    * ports are seperated via a comma, a range may be specified using “..”
    */

    /* port: listen on all available IPs, ports 6665 to 6669 */
    #host = “127.0.0.1″; # change this!
    port = 6667;
    };

Now run this command to restart the server:
service ircd-hybrid restart
The server will now be fully functional on your LAN, just put the servers LAN IP instead of the hostname in your client. If you want the server to be accessibly over the internet you need to port forward port 6667 to the server, you might also want to set up a NO-IP or DynDns so people can use the hostname instead of your ip directly.