caaf69d8b994acf9a3d1f8bbf63e7e6a256bfc6a
[fms.git] / readme.txt
1 COMPILING\r
2 ---------\r
3 Compiling FMS requires CMake, Poco ( version >=1.2.9 ) and iconv if you want to\r
4 do charset conversion.  Other required libraries are bundled with FMS.\r
5 \r
6 To compile, run these commands from the source directory:\r
7 cmake -D I_HAVE_READ_THE_README=ON .\r
8 make\r
9 \r
10 If you want to use the bundled SQLite3 library, add a -D USE_BUNDLED_SQLITE=ON\r
11 to the cmake command.  Use of the bundled SQLite3 library is on by default when\r
12 compiling on a Mac.  To turn off charset conversion to UTF-8 when sending\r
13 messages, add a -D DO_CHARSET_CONVERSION=OFF.  Compiling with charset\r
14 conversion turned on is recommended.  If you would like to compile using the\r
15 alternate captchas, add a -D ALTERNATE_CAPTCHA=ON to the cmake command line.\r
16 This option requires the FreeImage library to be installed.\r
17 \r
18 UPGRADING\r
19 ---------\r
20 It is always a good idea to make a copy of your current FMS installation before\r
21 continuing.  First shut down FMS, make a copy of the directory, and then\r
22 replace all files except the database with those from the new version.  You may\r
23 keep the same database unless otherwise noted in the release information.\r
24 \r
25 INSTALLATION\r
26 ------------\r
27 Place the binary, any templates, and the fonts directory in a directory of your\r
28 choice.  Windows users may need to download the runtime DLLs available from the\r
29 fms Freesite and place in the fms directory if they are not already installed\r
30 on the system.  On the first run, a database file will also be created in this\r
31 directory.  Make sure the user that runs FMS has read/write access to this\r
32 directory.\r
33 \r
34 RUNNING\r
35 -------\r
36 You may run FMS in console mode by running the binary directly.  You can view\r
37 available command line options by typing /help on Windows and --help on other\r
38 platforms.  If you are running *nix and would like to run as a daemon, use the \r
39 --daemon argument.  On Windows, /registerService will install FMS as a service,\r
40 and /unregisterService will uninstall the service.  Use the /displayName=name\r
41 argument when installing the service to set the service name to whatever you\r
42 want.  You will need to manually start the service unless you change the\r
43 startup type in the service properties.\r
44 \r
45 If you are experiencing a problem with FMS that you can't solve, and you've\r
46 already rebooted your machine, restarted FMS, and have reproduced the problem\r
47 with a brand new database, follow these instructions.  Set the logging option\r
48 to trace and restart FMS.  Create a post on the fms group with a descriptive\r
49 subject and a body that contains the operating system you are using, along with\r
50 a description of the problem, what you have tried already, if you are using a\r
51 precompiled binary, the startup lines from the log file as well as the portion\r
52 that corresponds to the problem you are experiencing, and any other information\r
53 you have that pertains to the problem.  Make sure to anonymize any IP addresses,\r
54 host names, subnet masks, and keys from the log that you don't want people to\r
55 know about.\r
56 \r
57 EXITING\r
58 -------\r
59 To exit FMS running in console mode, press CTRL+C while at the console.  You\r
60 can also use the shutdown button on the web interface to close FMS.  As a last\r
61 resort, you may kill the process.\r
62 \r
63 WEB INTERFACE\r
64 -------------\r
65 By default, a web interface for administration will be running at http://\r
66 localhost:8080.  You can use the interface to configure and administer FMS.\r
67 \r
68 NNTP CONFIGURATION\r
69 ------------------\r
70 By default, the NNTP server will listen on port 1119.  Configure your\r
71 newsreader to connect to the machine running FMS on this port.  Use the web\r
72 interface to create an identity and use the name of the identity as the\r
73 username for the newsgroup account.  The email address may be anything, as it\r
74 is discarded when posting messages.\r
75 \r
76 POSTING MESSAGES\r
77 ----------------\r
78 You must set your newsreader to use UTF-8 when posting messages unless you have\r
79 compiled with charset conversion turned on.  All headers of the message that\r
80 aren't needed will be stripped and all headers necessary for the proper sending\r
81 of the message will be replaced with sanitized ones.  Any non-text attachment\r
82 to the message will be inserted as a regular file and the key added to the body\r
83 of the message when received.  Keep the attachments small, as the message can't\r
84 be inserted until all attachments are inserted.  Text attachments will be\r
85 inlined with the message body.  Cross posting is fine, but remember that each\r
86 identity can set a limit to the number of boards each message may be cross\r
87 posted to.\r
88 \r
89 CONTROL BOARDS\r
90 --------------\r
91 Control boards are special boards that will add/remove trust from an identity.\r
92 Create control boards in the web interface, and then reply to an identity's\r
93 message to a control board to change the trust of the identity as per the\r
94 settings for the board.  You may cross post to a regular board and a control\r
95 board with the same message.  The control boards will be stripped from the\r
96 message before inserting into Freenet.\r
97 \r
98 FREESITES\r
99 ---------\r
100 Each identity has the option to publish a freesite.  A generic HTML template\r
101 called site-template.htm is used to insert the site.  You can customize the\r
102 template by placing an HTML file called identityname-template.htm in the same\r
103 directory as the fms binary.  In the template, the string [LINKS] will be\r
104 replaced by a <ul> list of links and [CONTENT] will be replaced by the page\r
105 content.  [IDENTITYNAME] will be replaced by the name of the identity inserting\r
106 the Freesite.  The Freesite will be inserted once a day and contain your last\r
107 10 posts and your trust list if you are publishing it.  The site will be\r
108 inserted to a USK accessible via: USK@yourpublickey.../fms/0/\r
109 \r
110 You may add extra files to your Freesite by creating a file called identityname-\r
111 files.txt that contains a list of files to add to the Freesite.  There should\r
112 be one file per line, and the path to each file may be absolute or relative to\r
113 the working directory, but you MUST use / as the path separator.  Files cannot\r
114 be named index.htm, trustlist.htm, or files.htm.\r
115 \r
116 TRUST\r
117 -----\r
118 Trust is the most important element of FMS.  It determines which identities you\r
119 will download messages from and thus your overall experience.  Do not give\r
120 trust to arbitrary identities.  Pick whom you trust wisely.  The settings for\r
121 minimum trust before downloading messages and trust lists can be changed on the\r
122 web interface.\r
123 \r
124 You must have a local identity created before you can set trust levels.  Even\r
125 if you don't want to post messages, you must still create an identity, but you\r
126 do not have to announce it.  This way, no-one will know about that identity and\r
127 you will be able to set trust.  If you have multiple identities, each with\r
128 different trust levels for peers, the highest trust level set for a peer will\r
129 determine if messages/trust lists are downloaded from them.\r
130 \r
131 A note on NULL trust:  If you neither trust or distrust an identity, they will\r
132 have NULL trust (no trust at all).  You will download messages and trust lists\r
133 from identities with NULL peer trust as long as the local trust level is at or\r
134 above your configured minimum.  You will also download messages from identities\r
135 with NULL local message trust (the peer message trust must be NULL or >= your\r
136 configured minimum as well), but you will not download trust lists from\r
137 identities with NULL local trust list trust.\r
138 \r
139 NNTP EXTENSIONS\r
140 ---------------\r
141 The following commands are available through the NNTP connection.  The client\r
142 must have authenticated for the commands to work.  Comments MUST be surrounded\r
143 by ".\r
144 \r
145 XSETTRUST MESSAGE userid@keypart val\r
146 XSETTRUST TRUSTLIST userid@keypart val\r
147 XSETTRUST MESSAGECOMMENT userid@keypart "comment"\r
148 XSETTRUST TRUSTLISTCOMMENT userid@keypart "comment"\r
149 \r
150 Responses:\r
151 2xx Trust Set\r
152 4xx Unknown ID or other error\r
153 5xx Syntax error\r
154 \r
155 XGETTRUST MESSAGE userid@keypart\r
156 XGETTRUST TRUSTLIST userid@keypart\r
157 XGETTRUST PEERMESSAGE userid@keypart\r
158 XGETTRUST PEERTRUSTLIST userid@keypart\r
159 \r
160 Responses:\r
161 2xx val\r
162 4xx Unknown ID or other error\r
163 5xx Syntax error\r
164 \r
165 XGETTRUSTLIST\r
166 trust values will be 0 to 100 or can be the string "null" without quotes.\r
167 \r
168 Responses:\r
169 2xx Trust List Follows\r
170 userid@keypart TAB messagetrust TAB trustlisttrust TAB peermessagetrust TAB peertrustlisttrust TAB messagecomment TAB trustlistcomment\r
171 .\r
172 4xx other error\r