version 0.3.18
[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.\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.  Any non-text\r
79 attachment to the message will be inserted as a regular file and the key added\r
80 to the body of the message when received.  Keep the attachments small, as the\r
81 message can't be inserted until all attachments are inserted.  Text attachments\r
82 will be inlined with the message body.  Cross posting is fine, but remember\r
83 that each identity can set a limit to the number of boards each message may be\r
84 cross posted to.\r
85 \r
86 CONTROL BOARDS\r
87 --------------\r
88 Control boards are special boards that will add/remove trust from an identity.\r
89 Create control boards in the web interface, and then reply to an identity's\r
90 message to a control board to change the trust of the identity as per the\r
91 settings for the board.  You may cross post to a regular board and a control\r
92 board with the same message.  The control boards will be stripped from the\r
93 message before inserting into Freenet.\r
94 \r
95 FREESITES\r
96 ---------\r
97 Each identity has the option to publish a freesite.  A generic HTML template\r
98 called site-template.htm is used to insert the site.  You can customize the\r
99 template by placing an HTML file called identityname-template.htm in the same\r
100 directory as the fms binary.  In the template, the string [LINKS] will be\r
101 replaced by a <ul> list of links and [CONTENT] will be replaced by the page\r
102 content.  [IDENTITYNAME] will be replaced by the name of the identity inserting\r
103 the Freesite.  The Freesite will be inserted once a day and contain your last\r
104 10 posts and your trust list if you are publishing it.  The site will be\r
105 inserted to a USK accessible via: USK@yourpublickey.../fms/0/\r
106 \r
107 You may add extra files to your Freesite by creating a file called identityname-\r
108 files.txt that contains a list of files to add to the Freesite.  There should\r
109 be one file per line, and the path to each file may be absolute or relative to\r
110 the working directory, but you MUST use / as the path separator.  Files cannot\r
111 be named index.htm, trustlist.htm, or files.htm.\r
112 \r
113 TRUST\r
114 -----\r
115 Trust is the most important element of FMS.  It determines which identities you\r
116 will download messages from and thus your overall experience.  Do not give\r
117 trust to arbitrary identities.  Pick whom you trust wisely.  The settings for\r
118 minimum trust before downloading messages and trust lists can be changed on the\r
119 web interface.\r
120 \r
121 You must have a local identity created before you can set trust levels.  Even\r
122 if you don't want to post messages, you must still create an identity, but you\r
123 do not have to announce it.  This way, no-one will know about that identity and\r
124 you will be able to set trust.  If you have multiple identities, each with\r
125 different trust levels for peers, the highest trust level set for a peer will\r
126 determine if messages/trust lists are downloaded from them.\r
127 \r
128 A note on NULL trust:  If you neither trust or distrust an identity, they will\r
129 have NULL trust (no trust at all).  You will download messages and trust lists\r
130 from identities with NULL peer trust as long as the local trust level is at or\r
131 above your configured minimum.  You will also download messages from identities\r
132 with NULL local message trust (the peer message trust must be NULL or >= your\r
133 configured minimum as well), but you will not download trust lists from\r
134 identities with NULL local trust list trust.\r
135 \r
136 NNTP EXTENSIONS\r
137 ---------------\r
138 The following commands are available through the NNTP connection.  The client\r
139 must have authenticated for the commands to work.  Comments MUST be surrounded\r
140 by ".\r
141 \r
142 XSETTRUST MESSAGE userid@keypart val\r
143 XSETTRUST TRUSTLIST userid@keypart val\r
144 XSETTRUST MESSAGECOMMENT userid@keypart "comment"\r
145 XSETTRUST TRUSTLISTCOMMENT userid@keypart "comment"\r
146 \r
147 Responses:\r
148 2xx Trust Set\r
149 4xx Unknown ID or other error\r
150 5xx Syntax error\r
151 \r
152 XGETTRUST MESSAGE userid@keypart\r
153 XGETTRUST TRUSTLIST userid@keypart\r
154 XGETTRUST PEERMESSAGE userid@keypart\r
155 XGETTRUST PEERTRUSTLIST userid@keypart\r
156 \r
157 Responses:\r
158 2xx val\r
159 4xx Unknown ID or other error\r
160 5xx Syntax error\r
161 \r
162 XGETTRUSTLIST\r
163 trust values will be 0 to 100 or can be the string "null" without quotes.\r
164 \r
165 Responses:\r
166 2xx Trust List Follows\r
167 userid@keypart TAB messagetrust TAB trustlisttrust TAB peermessagetrust TAB peertrustlisttrust TAB messagecomment TAB trustlistcomment\r
168 .\r
169 4xx other error\r