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