Removing tags as they point to invalid changesets after history refactoring.
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/07/28</emphasis>:
16 <emphasis>sonews/1.0.0</emphasis>
17 (<ulink url="files/sonews-1.0.0.tar.bz2">binary tarball</ulink>,
18 <ulink url="files/sonews-1.0.0-src.tar.bz2">source tarball</ulink>) new major release.
19 A lot of refactoring was done to make the code more robust and
20 maintainable. Of course, several bugs were fixed, too ;)
21 The 0.5.x line moves from unstable to testing in the DEB repository although
22 the 1.0.x seems no less stable. If in doubt choose 1.0.x.
25 <emphasis role="bold">2009/07/01</emphasis>:
26 <emphasis>sonews/0.5.1</emphasis>
27 (<ulink url="files/sonews-0.5.1.tar.bz2">binary tarball</ulink>,
28 <ulink url="files/sonews-0.5.1-src.tar.bz2">source tarball</ulink>) bugfix
30 Broken Cancel-mechanism and broken buildscript fixed.
31 See <ulink url="http://code.xerxys.info:8000/hgwebdir.cgi/sonews-0.5/log/287">
32 changelog</ulink> for more details.
35 <emphasis role="bold">2009/06/29</emphasis>:
36 <emphasis>sonews/0.5.0</emphasis>
37 (<ulink url="files/sonews-0.5.0.tar.bz2">binary tarball</ulink>,
38 <ulink url="files/sonews-0.5.0-src.tar.bz2">source tarball</ulink>) final
40 The setup is a little clumsy but the software is stable and works well.
44 <title>Introduction</title>
45 <para>sonews is a RCF3977 compliant NNTP Usenet server.
46 It is written in Java and uses a relation database management system
47 (RDBMS) as backend (currently
48 <ulink url="http://www.postgresql.com/">PostgreSQL</ulink> and
49 <ulink url="http://www.mysql.com/">MySQL</ulink>).
50 sonews is highly multithreaded and uses Java NIO asynchronous sockets
51 to handle thousands of concurrent connections.</para>
52 <para>sonews is Free and Open Source Software (FOSS) licensed under the
54 <ulink url="http://www.gnu.org/licenses/gpl.html">GNU General Public License</ulink>
55 Version 3 (or later).</para>
58 <title>History</title>
59 <para>Ancestor of sonews is probably the Neat NNTP Daemon (n3tpd)
60 although there is very little code in sonews that can be identified
62 sonews was developed as diploma thesis project of Christian Lins at
63 <ulink url="http://de.sun.com/">StarOffice development</ulink>
64 in Hamburg and is now a Free Software project.</para>
68 <title>Roadmap</title>
70 For sonews/1.1.x a plugin API for storage backends and command handlers
72 See <ulink url="http://bugs.xerxys.info/">Bugtracker</ulink> for
73 issues with target sonews/1.1.x.
79 <title>Installation and initial setup</title>
81 <title>Download & Installation</title>
83 <title>Debian based systems</title>
84 <para>You can install sonews with
85 <ulink url="http://www.debian.org/doc/manuals/apt-howto/">APT</ulink>
87 Add the following line to /etc/apt/sources.list:</para>
88 <screen>deb http://packages.xerxys.info/debian/ testing main # for sonews/0.5.x</screen>
89 <screen>deb http://packages.xerxys.info/debian/ unstable main # for sonews/1.0.x</screen>
90 <para>And add the GPG-Key for package authentification, see
91 <ulink url="http://packages.xerxys.info/debian/">Xerxys Debian Repository</ulink>
92 for more details.</para>
93 <para>Then force an update of your local package list:</para>
94 <screen># apt-get update</screen>
95 <para>To install sonews and all prerequisites issue the following command:</para>
96 <screen># apt-get install sonews</screen>
97 <para>This method should work for all recent Debian-based distributions
98 (<ulink url="http://www.debian.org/">Debian</ulink>, <ulink url="http://www.ubuntu.com/">Ubuntu</ulink>, etc.).</para>
101 <sect2 label="2.1.2">
102 <title>Other *nix systems</title>
103 <para>See <ulink url="files/">Files Section</ulink> for recent binary and source tarballs.</para>
104 <para>Use the binary archive and extract it in a directory of your choice. Make sure your system
105 provides the necessary prerequisites:</para>
108 <para>Java6 compatible runtime (JRE)</para>
111 <para>Java Mail API implementation, e.g. <ulink url="http://java.sun.com/products/javamail/">Sun Java Mail</ulink>.
112 GNU JavaMail has a broken POP3 Provider and does not work with sonews.</para>
115 <para>JSP Servlet Container (e.g.
116 <ulink url="http://kitten.sonews.org/">Kitten</ulink>) [optional]</para>
123 <title>Initial database setup</title>
124 <para>Before you start sonews, you must prepare the database. Currently sonews is known
125 to work with PostgreSQL and MySQL.</para>
126 <para>It is highly recommended to create an own database for every sonews instance, e.g.
127 called 'sonews'. Additionally, it is recommended to create a unique database user
128 for sonews, e.g. 'sonewsuser'. Please do not use the root user for sonews!
129 The sonews user needs rights for SELECT, INSERT and UPDATE statements.
130 Refer to the database's manual for instructions.</para>
131 <para>You will find the SQL Schema definitions in the helpers subdirectory of
132 the source and binary distributions. You can create the tables manually using
133 this templates or you can use the setup helper:</para>
134 <screen>user@debian$ sonews setup</screen>
135 <para>or on other *nix systems:</para>
136 <screen>user@nix$ java -jar sonews.jar org.sonews.util.DatabaseSetup</screen>
137 <para>The tool will ask for some information about your database environment,
138 connect to the database, create the tables and creates a default bootstrap
139 config file called sonews.conf.</para>
144 <title>Running sonews</title>
146 <title>Configuration</title>
147 <para>There is a bootstrap configuration in /etc/sonews/sonews.conf and a regular configuration
148 in the database table config.</para>
149 <para>There are various configuration values that can be adapted:</para>
152 <term>‘<literal>sonews.article.maxsize</literal>’</term>
154 <para>Maximum allowed body size of a news message given in kilobytes. Please note that
155 for MySQL the ‘<literal>max_allowed_packet</literal>’ configuration variable must
156 be set to a value higher than ‘<literal>sonews.article.maxsize</literal>’ otherwise posting
157 of large mails will fail.</para>
161 <term>‘<literal>sonews.debug</literal>’</term>
164 If set to true every(!) data going through sonews' socket
165 is written to sonews.log. After a high traffic night the logfile can be
166 several gigabytes large, so be careful with this setting.
171 <term>‘<literal>sonews.hostname</literal>’</term>
174 Canonical name of the server instance. This variable is part of
175 the server's hello message to the client and used to generate
177 It is highly recommended to set sonews.hostname to the full
178 qualified domain name (FQDN) of the host machine.
183 <term>‘<literal>sonews.timeout</literal>’</term>
186 Socket timeout for client connections in seconds. Default as
187 recommended in RFC3977 is 180 seconds.
192 <term>‘<literal>sonews.port</literal>’</term>
195 Listening port of sonews daemon. This value can be overridden
196 with the -p command line argument.
201 <term>‘<literal>sonews.xdaemon.host</literal>’</term>
204 Hostname or IP address of the client machine that is allowed to
205 use the XDAEMON command. Default: localhost
213 <title>Command line arguments</title>
214 <para>If you like to start sonews directly, you can use one of the following
216 <screen>java -jar sonews.jar [arguments]
218 -c|-config <path to config file> if custom config file preferred
219 -dumpjdbcdriver Prints out a list of available JDBC drivers
220 -feed Enables feed daemon for pulling news from peer servers
222 -mlgw Enables the Mailinglist Gateway poller
223 -p portnumber Port on which sonews is listening for incoming connections.
224 Overrides port settings in config file and database.</screen>
228 <title>Webinterface</title>
229 <para>The package sonews-web provides an optional webinterface that can be used to
230 review statistical information and configuration values of sonews.</para>
231 <screen>sonews-web start|stop</screen>
232 <para>The webinterface uses the the lightweight Servlet Container Kitten and is
233 per default listening on HTTP-Port 8080 (go to http://localhost:8080/sonews).</para>
237 <title>Newsgroup configuration</title>
239 Currently some manual work is necessary to create a newsgroup hosted
240 by a sonews instance.
243 One possibility is to talk via Telnet to the sonews instance and
244 use the non-standard command XDAEMON.
245 <screen>telnet localhost 119</screen>
246 <screen>XDAEMON GROUPADD local.test 0</screen>
247 Please note that the XDAEMON command has restricted access and is only
248 available via local connections (default, can be changed with config
249 value sonews.xdaemon.host).
252 You can also use the web interface to create newsgroups.
258 <title>Development</title>
259 <para>You're welcome to create patches with bugfixes or additional features. The
260 Mercurial DSCM makes this step an easy task.</para>
261 <para>Just clone the public <ulink url="http://www.selenic.com/mercurial/">Mercurial</ulink> repository:</para>
262 <screen>hg clone http://code.xerxys.info:8000/hg/sonews/ sonews-trunk</screen>
263 <para>Then make your changes, create a bundle of changesets and send this to me via email.
264 Or ask for push access to the public repository.</para>
266 There is a nightly generated <ulink url="apidoc/">Javadoc API documentation</ulink> that will help
267 you to get in touch with the sonews source.
269 <para>Some debugging hints: if the server blocks and does not longer respond you
270 probably found a deadlock. Do not kill the process with "kill -9 <pid>"
271 but send a SIGQUIT signal with "kill -3 <pid>" and the Java VM will output
272 a stracktrace of all threads. This output is the most valuable information to
273 fix the deadlock.</para>
276 <title>Contributors</title>
277 <para>Maintainer and project lead:
278 Christian Lins (contact christian.lins (at) fh-osnabrueck.de)</para>
282 <title>Sponsors</title>
283 <para>The author thanks <ulink url="http://www.sun.com/">Sun Microsystems</ulink> for fully
284 financing the first version of sonews. A really free software supporting company!</para>
285 <para>If you like to support sonews with a donation of any kind (hardware, books, money, donuts,...),
286 feel free to contact the project leader.
287 A friendly email or a bug report is most welcome, too :-)</para>
292 <title>Links and further information</title>
295 <para><ulink url="http://bugs.xerxys.info/">Bugtracker</ulink>, register necessary, see project 'sonews'.</para>
298 <para><ulink url="http://www.sun.com/">Sun Microsystems</ulink>, friendly sponsor.</para>
301 <para><ulink url="http://www.fh-osnabrueck">University of Applied Sciences Osnabrueck</ulink></para>