GithubHelp home page GithubHelp logo

niouz's Introduction

niouz is a small, simple NNTP server suitable to set up private newsgroups for an intranet or workgroup.

What’s niouz ?

niouz is an extremely simple NNTP server implemented in pure
Ruby. It does not offer all the features of standard NNTP
servers like CNews or INN (most notably, it can’t communicate with other servers, but only
with clients), but it is orders of magnitudes simpler to deploy.

niouz provides a simple and easy way to quickly set up private newsgroups for a small
group of people. It generally does the Simplest Thing That Can Possibly
Work
, and would probably
not scale beyond a few dozen users and a few thousands messages. On the other hand, the
resulting code is quite small (about 600 lines including comments), easy to understand and
to modify/extend.

It’s been used internally in the research department I worked in for more than two years
now, and it seems quite stable (no data loss, no server crash ever) although given the low
number of users and messages, it’s difficult to be sure how much load it can handle.

Availability

Requirements

Beware Debian users. The Debian package named ruby1.8 does not contain Ruby’s standard
library. You need to install WEBrick explicitely. The package is named
libwebrick-ruby1.8.

Installation and configuration

  1. Get it from http://github.com/pcdavid/niouz/tree
    $ chmod a+x /usr/local/bin/niouz
  2. Create a place for the articles:
$ mkdir -p /srv/niouz/articles
  1. Create the groups:

    $ cat > /srv/niouz/newsgroups
    Name: test
    Date-Created: 2004-08-24
    Description: blah blah

Name: projects.foobar
Date-Created: 2004-08-24
Description: Discussion related to project foobar
^D

  1. Run it:
$ su -c /usr/local/bin/niouz /srv/niouz
  1. Enjoy!

By default, it listens to port 119, so you need to be root to run it. It you don’t like
that, just edit the script to change the port.

If you want to add new groups, just kill the process, edit the newsgroups file and
restart.

Features

  • One file, no dependencies outside Ruby 1.8, very easy to setup.
  • Small (less than 600 lines), simple code, easy to customize/extend.
  • Generally does The Simplest Thing That Could Possibly Work.
  • (Too) simple database format; easy to hack if necessary.
  • Implements all the basic NTTP commands, plus some extensions (some partially, but well
    enough for most clients).
  • Works with all major clients.
  • Never forgets/expires articles.
  • Lots of room for expansion! :-)

Limitations

  • Does not interact with other NNTP servers (by design).
  • Probably does not scale very well.
  • Stays in memory (no inetd mode).
  • Only tested under Linux.
  • Some relatively standard NNTP extensions are not supported, most importantly article
    cancellation and authentification.

niouz's People

Contributors

kinnou02 avatar pcdavid avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.