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