Hooray... sonews/0.5.0 final
HG: Enter commit message. Lines beginning with 'HG:' are removed.
HG: Remove all lines to abort the collapse operation.
2 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
4 <!ENTITY latex "LaTeX">
6 <book id="sonews.xml" lang="en">
7 <title>sonews Usenet News Server</title>
9 <emphasis role="bold">sonews</emphasis> is NNTP server than can provide
10 access to both local and global Usenets newsgroups. It is written in
11 <ulink url="http://java.sun.com/">Java</ulink> and uses a relational
15 <emphasis role="bold">2009/06/29</emphasis>:
16 <emphasis>sonews/0.5.0</emphasis>
17 (<ulink url="files/sonews-0.5.0.tar.bz2">binary tarball</ulink>,
18 <ulink url="files/sonews-0.5.0-src.tar.bz2">source tarball</ulink>) final
20 The setup is a little clumsy but the software is stable and works well.
24 <title>Introduction</title>
25 <para>sonews is a RCF3977 compliant NNTP Usenet server.
26 It is written in Java and uses a relation database management system
27 (RDBMS) as backend (currently
28 <ulink url="http://www.postgresql.com/">PostgreSQL</ulink> and
29 <ulink url="http://www.mysql.com/">MySQL</ulink>).
30 sonews is highly multithreaded and uses Java NIO asynchronous sockets
31 to handle thousands of concurrent connections.</para>
32 <para>sonews is Free and Open Source Software (FOSS) licensed under the
34 <ulink url="http://www.gnu.org/licenses/gpl.html">GNU General Public License</ulink>
35 Version 3 (or later).</para>
38 <title>History</title>
39 <para>Ancestor of sonews is probably the Neat NNTP Daemon (n3tpd)
40 although there is very little code in sonews that can be identified
42 sonews was developed as diploma thesis project of Christian Lins at
43 <ulink url="http://de.sun.com/">StarOffice development</ulink>
44 in Hamburg and is now a Free Software project.</para>
48 <title>Roadmap</title>
50 <title>sonews/0.6</title>
51 <para>Planned to implement the XPAT command for searching, correctly
52 hashed Message-Ids and a news purging command.
53 See <ulink url="http://bugs.xerxys.info/">Bugtracker</ulink> for
54 issues with target sonews/0.6.x.</para>
60 <title>Installation and initial setup</title>
62 <title>Download & Installation</title>
64 <title>Debian based systems</title>
65 <para>You can install sonews with
66 <ulink url="http://www.debian.org/doc/manuals/apt-howto/">APT</ulink>
68 Add the following line to /etc/apt/sources.list:</para>
69 <screen>deb http://packages.xerxys.info/debian/ unstable main
71 <para>And add the GPG-Key for package authentification, see
72 <ulink url="http://packages.xerxys.info/debian/">Xerxys Debian Repository</ulink>
73 for more details.</para>
74 <para>Then force an update of your local package list:</para>
75 <screen># apt-get update
77 <para>To install sonews and all prerequisites issue the following command:</para>
78 <screen># apt-get install sonews
80 <para>This method should work for all recent Debian-based distributions
81 (<ulink url="http://www.debian.org/">Debian</ulink>, <ulink url="http://www.ubuntu.com/">Ubuntu</ulink>, etc.).</para>
85 <title>Other *nix systems</title>
86 <para>See <ulink url="files/">Files Section</ulink> for recent binary and source tarballs.</para>
87 <para>Use the binary archive and extract it in a directory of your choice. Make sure your system
88 provides the necessary prerequisites:</para>
91 <para>Java6 compatible runtime (JRE)</para>
94 <para>Java Mail API implementation, e.g. <ulink url="http://java.sun.com/products/javamail/">Sun Java Mail</ulink>.
95 GNU JavaMail has a broken POP3 Provider and does not work with sonews.</para>
98 <para>JSP Servlet Container (e.g.
99 <ulink url="http://kitten.sonews.org/">Kitten</ulink>) [optional]</para>
106 <title>Initial database setup</title>
107 <para>Before you start sonews, you must prepare the database. Currently sonews is known
108 to work with PostgreSQL and MySQL.</para>
109 <para>It is highly recommended to create an own database for every sonews instance, e.g.
110 called 'sonews'. Additionally, it is recommended to create a unique database user
111 for sonews, e.g. 'sonewsuser'. Please do not use the root user for sonews!
112 The sonews user needs rights for SELECT, INSERT and UPDATE statements.
113 Refer to the database's manual for instructions.</para>
114 <para>You will find the SQL Schema definitions in the helpers subdirectory of
115 the source and binary distributions. You can create the tables manually using
116 this templates or you can use the setup helper:</para>
117 <screen>user@debian$ sonews setup
119 <para>or on other *nix systems:</para>
120 <screen>user@nix$ java -jar sonews.jar org.sonews.util.DatabaseSetup
122 <para>The tool will ask for some information about your database environment,
123 connect to the database, create the tables and creates a default bootstrap
124 config file called sonews.conf.</para>
129 <title>Running sonews</title>
131 <title>Configuration</title>
132 <para>There is a bootstrap configuration in /etc/sonews/sonews.conf and a regular configuration
133 in the database table config.</para>
134 <para>There are various configuration values that can be adapted:</para>
137 <term>‘<literal>sonews.article.maxsize</literal>’</term>
139 <para>Maximum allowed body size of a news message given in kilobytes. Please note that
140 for MySQL the ‘<literal>max_allowed_packet</literal>’ configuration variable must
141 be set to a value higher than ‘<literal>sonews.article.maxsize</literal>’ otherwise posting
142 of large mails will fail.</para>
146 <term>‘<literal>sonews.debug</literal>’</term>
149 If set to true every(!) data going through sonews' socket
150 is written to sonews.log. After a night the logfile can be
151 several gigabytes large, so be careful with this setting.
156 <term>‘<literal>sonews.hostname</literal>’</term>
158 <para>Canonical name of the server instance. This variable is part of the server's
159 hello message to the client and used to generate Message-Ids.</para>
163 <term>‘<literal>sonews.timeout</literal>’</term>
165 <para>Socket timeout for client connections in seconds.</para>
169 <term>‘<literal>sonews.port</literal>’</term>
171 <para>Listening port of sonews daemon.</para>
178 <title>Command line arguments</title>
179 <para>If you like to start sonews directly, you can use one of the following
181 <screen>java -jar sonews.jar [arguments]
183 -c|-config <path to config file> if custom config file preferred
184 -dumpjdbcdriver Prints out a list of available JDBC drivers
185 -feed Enables feed daemon for pulling news from peer servers
187 -mlgw Enables the Mailinglist Gateway poller
188 -p portnumber Port on which sonews is listening for incoming connections.
189 Overrides port settings in config file and database.
195 <title>Webinterface</title>
196 <para>The package sonews-web provides an optional webinterface that can be used to
197 review statistical information and configuration values of sonews.</para>
198 <screen>sonews-web start|stop
200 <para>The webinterface uses the the lightweight Servlet Container Kitten and is
201 per default listening on HTTP-Port 8080 (go to http://localhost:8080/sonews).</para>
206 <title>Development</title>
207 <para>You're welcome to create patches with bugfixes or additional features. The
208 Mercurial DSCM makes this step an easy task.</para>
209 <para>Just clone the public <ulink url="http://www.selenic.com/mercurial/">Mercurial</ulink> repository:</para>
210 <screen>hg clone http://code.xerxys.info:8000/hg/sonews/trunk sonews-trunk
212 <para>Then make your changes, create a bundle of changesets and send this to me via email.
213 Or ask for push access to the public repository.</para>
215 There is a nightly generated <ulink url="apidoc/">Javadoc API documentation</ulink> that will help
216 you to get in touch with the sonews source.
218 <para>Some debugging hints: if the server blocks and does not longer respond you
219 probably found a deadlock. Do not kill the process with "kill -9 <pid>"
220 but send a SIGQUIT signal with "kill -3 <pid>" and the Java VM will output
221 a stracktrace of all threads. This output is the most valuable information to
222 fix the deadlock.</para>
225 <title>Contributors</title>
226 <para>Maintainer and project lead:
227 Christian Lins (contact christian.lins (at) fh-osnabrueck.de)</para>
231 <title>Sponsors</title>
232 <para>The author thanks <ulink url="http://www.sun.com/">Sun Microsystems</ulink> for fully
233 financing the first version of sonews. A really free software supporting company!</para>
234 <para>If you like to support sonews with a donation of any kind (hardware, books, money, donuts,...),
235 feel free to contact the project leader.
236 A friendly email or a bug report is most welcome, too :-)</para>
241 <title>Links and further information</title>
244 <para><ulink url="http://bugs.xerxys.info/">Bugtracker</ulink>, register necessary, see project 'sonews'.</para>
247 <para><ulink url="http://www.sun.com/">Sun Microsystems</ulink>, friendly sponsor.</para>
250 <para><ulink url="http://www.fh-osnabrueck">University of Applied Sciences Osnabrueck</ulink></para>