Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: HOWTO: Setup ngird on Dapper

  1. #1
    Join Date
    May 2005
    Location
    Marlborough, UK
    Beans
    469
    Distro
    Ubuntu Karmic Koala (testing)

    HOWTO: Setup ngircd on Dapper

    This guide should help you install ngircd (an irc server) on Ubuntu Dapper. To do this we will need a text editor, apt-get and access to the internet. The text editor I use is vim, if you prefer something else such as gedit, kate or nano just use the command for that editor wherever I use vim.
    The first thing you need to do is install the package
    Code:
    sudo apt-get install ngircd
    Then you need to configure it but before we can do this we need to chmod some stuff so get your chmodding shoes on and
    Code:
    sudo chmod a+rwx -R /etc/ngircd
    and then take your chmodding shoes off again and get your configurating gloves on and
    Code:
    sudo vim /etc/ngircd.conf
    and you are ready to configure your server.
    Set the name to something you want to use - It's displayed before the motd when you connect
    Set the info - just like name its displayed when you connect
    Set up your admin details etc in the obvious area.
    You can leave ports alone and use them easily enough - change them if you have a reason.
    The rest can be left unless you are desperate to change it. If you only want to use it on your local network then change the Listen line.
    You can also set a limit on the users if you wish.
    Now scroll right down and set up a channel to talk in.
    Finally save and close the file and open the motd file
    Code:
    sudo vim /etc/ngircd/ngircd.motd
    And set up your message of the day.

    Once the server is configured you will probably want to start it on boot but on ubuntu this is currently broken so to fix this we need to
    Code:
    sudo vim /etc/init.d/ngircd
    then change line 20 so that it reads " --pidfile /var/run/ngircd.pid \" (notice that the ngircd directory has been removed from the path). This done save and close and run:
    Code:
    update-rc.d ngircd defaults
    This is all I have done with my server so I can't help much more but have fun.
    Oh, and don't forget to forward ports on your router if you want to give access to the world beyond your network

    To undo the changes you have made you just need to stop the irc daemon and uninstall it. The following command stops the irc daemon.
    Code:
    sudo /etc/init.d/ngircd stop
    and you can then remove the ngircd program choosing to keep or remove the config files.
    To keep them:
    Code:
    sudo apt-get remove ngircd
    To remove them:
    Code:
    sudo apt-get remove --purge ngircd
    Last edited by Haegin; December 11th, 2006 at 08:55 PM. Reason: Spelling and bringing inline with new forum rules about guides
    Regards,
    Haegin
    If all else fails curl up in bed with a good book.
    "<mc44> rob: every time you don’t read the topic, god kills a lolcat"

  2. #2
    Join Date
    Dec 2006
    Beans
    261

    Re: HOWTO: Setup ngird on Dapper

    Could you please provide an example of your ngircd.conf?
    Thanks,

  3. #3
    Join Date
    May 2005
    Location
    Marlborough, UK
    Beans
    469
    Distro
    Ubuntu Karmic Koala (testing)

    Re: HOWTO: Setup ngird on Dapper

    I will post it when I get home as I have turned off the dyndns at the moment - should be up here at about 9.00 pm GMT provided I have electricity (no power at the moment)
    Regards,
    Haegin
    If all else fails curl up in bed with a good book.
    "<mc44> rob: every time you don’t read the topic, god kills a lolcat"

  4. #4
    Join Date
    May 2005
    Location
    Marlborough, UK
    Beans
    469
    Distro
    Ubuntu Karmic Koala (testing)

    Re: HOWTO: Setup ngird on Dapper

    Voila!
    Attached Files Attached Files
    Regards,
    Haegin
    If all else fails curl up in bed with a good book.
    "<mc44> rob: every time you don’t read the topic, god kills a lolcat"

  5. #5
    Join Date
    Dec 2006
    Beans
    261

    Re: HOWTO: Setup ngird on Dapper

    Thanks so much for your help!
    I still have some questions:
    1) What are the lines with a ; at the beginning? SHould I remove it? Are these optional?
    2) Must the server name be a NAME or can it be an IP address? I have DHCP

  6. #6
    Join Date
    Dec 2006
    Beans
    261

    Re: HOWTO: Setup ngird on Dapper

    I tried to run it, was told that it is already running, but I do not see it as a process in the Sytem Monitor...
    Sorry to be so dense, but I am just starting with Linux.

  7. #7
    Join Date
    May 2005
    Location
    Marlborough, UK
    Beans
    469
    Distro
    Ubuntu Karmic Koala (testing)

    Re: HOWTO: Setup ngird on Dapper

    I don't know if the server name can be an IP - check the man pages or the online documentation for the project or just try it and see.

    The lines beginning in ";" are just more comments - I use them to show that they could be used as lines the program would recognise where as lines beginning with "#" are just human comments to explain stuff. That way if I want to specify the motd in the config file I can easily see what I have to do rather than find out how on the net for example.

    If you followed my guide the irc daemon is set to start on boot so you don't need to start it manually but if you did want to you should use:
    Code:
    sudo /etc/init.d/ngircd {start|stop|restart}
    to start it, stop it or reload it (you just use one of those three words).

    Hope this helps
    Regards,
    Haegin
    If all else fails curl up in bed with a good book.
    "<mc44> rob: every time you don’t read the topic, god kills a lolcat"

  8. #8
    Join Date
    Dec 2006
    Beans
    261

    Re: HOWTO: Setup ngird on Dapper

    I rebooted, but still could not see the ngircd in the process list of the System Monitor, although when I tried to START it I was told that it is already running. I was unable to connect to the server, but I suspect that my system adminidtrator had shut down all IRC channels. I have to find out about that.
    Thanks.

  9. #9
    Join Date
    May 2005
    Location
    Marlborough, UK
    Beans
    469
    Distro
    Ubuntu Karmic Koala (testing)

    Re: HOWTO: Setup ngird on Dapper

    If your system admin has been a boring oppressor try running it on a different port.
    Regards,
    Haegin
    If all else fails curl up in bed with a good book.
    "<mc44> rob: every time you don’t read the topic, god kills a lolcat"

  10. #10
    Join Date
    Dec 2006
    Beans
    261

    Re: HOWTO: Setup ngird on Dapper

    Regardless of the system oppreminator, it should still appear as a process in the System Monitor, shouldn't it?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •