Skip to content

Leafnode

Leafnode is a simple to install and easy to maintain newsserver.

Attention# do not:
$ doas pkg_add leafnode
You have to install leafnode from source, because the package came with openbsd is too old.
First go with your Browser to: https://leafnode.sourceforge.io/download.shtml
then scroll down and select leafnode-2.0.0.alpha20081229a.tar.bz2 to open up in a new tab. Then copy the domain in this tab and go back to bsd.
Download from source:
               $ wget krusty.dt.e-technik.tu-dortmund.de/~ma/leafnode/beta/leafnode-2.0.0.alpha20081229a.tar.bz2
bzip2 extract the dir:
               $ bzip2 -d leafnode-2.0.0.alpha20081229a.tar.bz2
tar the new file:
               $ tar -xf leafnode-2.0.0.alpha20081229a.tar
Go to the folder:
               $ cd leafnode-2.0.0.alpha20081229a
Finally install the program:
               $ doas ./configure
               $ doas make
               $ doas make install
Create a usergroup (as many as you nees):
               $ touch /etc/leafnode/local.groups
               $ doas nano /etc/leafnode/local.groups
Here is an example what to put in this file:
      IRCNow.Group  y   description
      IRCNow.Group 2    y   description
Please dont use spaces between these elements, use tabs.
Then Exit and save the file.
Add package "lynx":
              $ doas pkg_add lynx
You also have to add inetd, if you havent it already:
              $ doas pkg_add inetd
Then you have to edit inetd;
              $ doas nano /etc/inetd.conf
in this file you have to put following and delete everything else in the file:
nntp            stream  tcp     nowait  news    /usr/local/sbin/leafnode
Make sure you use tab instead of spaces, otherwise it will go into Errors.
If youre done then restart indetd:
              $ doas rcctl restart inedtd
Now you should be able to start the server:
              $ lynx news://example.ircnow.org    (replace example with your server)
You should see now the 2 groups you added in the local.groups file and are now able to add/read new posts.