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