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