Ubuntu ircd-hybrid

Cette version date du 2011/05/29 06:40. Vous pouvez la Restaurer.

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:


This tutorial will show you how to set a ircd-hybrid IRC server in ubuntu.

Open a terminal and run:

Code:

sudo 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 :

Spoiler (Click to View)

In your terminal run this command:

Code:

sudo nano /etc/ircd-hybrid/ircd.conf

(Replace nano with your favorite text editor emacs, vi, gedit)

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:

Code:

invoke-rc.d 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.