1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
|
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
<!-- Process this file with docbook-to-man to generate an nroff manual
page: `docbook-to-man manpage.sgml > manpage.1'. You may view
the manual page with: `docbook-to-man manpage.sgml | nroff -man |
less'. A typical entry in a Makefile or Makefile.am is:
manpage.1: manpage.sgml
docbook-to-man $< > $@
-->
<!-- Fill in the various UPPER CASE things here. -->
<!ENTITY manfirstname "<firstname>Mathieu</firstname>">
<!ENTITY mansurname "<surname>Blondel</surname>">
<!-- Please adjust the date whenever revising the manpage. -->
<!ENTITY mandate "<date>Thu, 20 Jun 2006 13:16:17 -0700</date>">
<!-- SECTION should be 1-8, maybe with subsection. Other parameters are
allowed: see man(7), man(1). -->
<!ENTITY mansection "<manvolnum>8</manvolnum>">
<!ENTITY manemail "<email>mblondel@users.sourceforge.net</email>">
<!ENTITY manusername "sdffsd">
<!ENTITY manucpackage "<refentrytitle>MOUNT.WIKIPEDIAFS</refentrytitle>">
<!ENTITY manpackage "mount.wikipediafs">
]>
<refentry>
<refentryinfo>
<address>
&manemail;
</address>
<author>
&manfirstname;
&mansurname;
</author>
<copyright>
<year>2004</year>
<holder>&manusername;</holder>
</copyright>
&mandate;
</refentryinfo>
<refmeta>
&manucpackage;
&mansection;
</refmeta>
<refnamediv>
<refname>&manpackage;</refname>
<refpurpose>A program to mount WikipediaFS, a filesystem that allows to view
and edit Wikipedia articles as if they were real files</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>&manpackage; </command>
<replaceable>mountpoint</replaceable>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title>DESCRIPTION</title>
<para>This manual page documents the <command>&manpackage;</command>
command and general usage of WikipediaFS.</para>
<para>WikipediaFS allows to view and edit Wikipedia articles as if
they were real files. <command>&manpackage;</command> mounts a WikipediaFS
filesystem.
</para>
<para>To connect through an HTTP proxy, you can use the $http_proxy
environment variable.</para>
</refsect1>
<refsect1>
<title>CONFIGURATION</title>
<para>The first time WikipediaFS is run, an XML configuration file is
generated in ~/.wikipediafs/config.xml. You can then edit it to add
more Wikipedia or Mediawiki-based sites. Each site has a site entry
defined as follows: </para>
<para>
<site>
<dirname>wikipedia-fr</dirname>
<host>fr.wikipedia.org</host>
<basename>/w/index.php</basename>
<username>Username</username>
<password>Password</password>
</site>
</para>
<variablelist>
<varlistentry>
<term>dirname</term>
<listitem>
<para>
Is the name of the directory through which you will access
to the site.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>host</term>
<listitem>
<para>
Is the host of the site.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>basename</term>
<listitem>
<para>
Is the base of urls used by the site. Most of the time, it
will be /dir/where/mediawiki/is/installed/index.php. For
Wikipedia, it will be /w/index.php.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>username and password</term>
<listitem>
<para>
Are optional and enable you to edit articles with your
login.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>MOUNT</title>
<para><command>mount.wikipediafs</command> mountpoint/</para>
<para>To run mount.wikipediafs without root privileges, you may have to set
the right permissions for /usr/bin/fusermount and /dev/fuse if your
distribution has not already done it for you. For example,</para>
<para># adduser your_username fuse</para>
<para># chmod 4750 /usr/bin/fusermount</para>
<para># chgrp fuse /dev/fuse /usr/bin/fusermount</para>
<para>(You may have to log out and log in again so that changes are taken
into account.)</para>
</refsect1>
<refsect1>
<title>UNMOUNT</title>
<para><command>fusermount</command> -u mountpoint/</para>
</refsect1>
<refsect1>
<title>FSTAB</title>
<para>Alternatively, you can mount WikipediaFS through fstab.</para>
<para>To do so, add this line to /etc/fstab:</para>
<para>none /mnt/wfs/ wikipediafs
noauto,nouser,home=/home/your_username/</para>
<para>Replace noauto by auto if you want WikipediaFS to be mounted at
boot. Replace nouser by user if you want to allow simple users to use
WikipediaFS. Replace /home/your_username/ by your home directory.</para>
<para>Then, traditional mount and unmount can be used with WikipediaFS.</para>
</refsect1>
<refsect1>
<title>SAMPLE USAGE</title>
<para>This section demonstrates possible usage of WikipediaFS via the command
line, though it is also possible to use WikipediaFS with a graphical file
explorer.</para>
<para>$ mount /mnt/wfs/
WikipediaFS is now mounted in /mnt/wfs/</para>
<para>$ cd /mnt/wfs/
We are now at the WikipediaFS root.</para>
<para>$ ls
mblondel.org/ wikipedia-en/
Those are directories which have been defined in my config file.</para>
<para>$ ls wikipedia-en/
Nothing is listed because we have not used any file yet. This is why most of
the time you will need a terminal to run the "your_favourite_editor file_name"
command.</para>
<para>$ cat wikipedia-en/Japan | less
The Japan article is fetched on en.wikipedia.org and displayed.</para>
<para>$ ls wikipedia-en/
Japan
Japan is now listed because it has been accessed once.</para>
<para>$ vi mblondel.org/Test
An article can be edited with a text editor. Looking at the article with a web
browser, the changes have been performed correctly.
To give a summary to your changes, use [[Summary: a sentence summary]] in the
body of the article. It will be removed before the article is saved.</para>
<para>$ cp wikipedia-en/Japan ~/Desktop/
This backups the online article on the local disk.</para>
<para>$ cp wikipedia-en/Japan mblondel.org/
This copies the wikipedia-en article on my personal mediawiki site.</para>
<para>$ rm mblondel.org/Test
This only removes the article from the directory, not from the site,
hopefully.</para>
</para>
</refsect1>
<refsect1>
<title>AUTHOR</title>
<para>This manual page was written by <author>&manfirstname;
&mansurname;</author>. </para>
<para>This manual page is (c) 2006 of <author>&manfirstname;
&mansurname;</author> and licensed under the terms of the GPLv2 or higher
</para>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<para><citerefentry><refentrytitle>mount</refentrytitle><manvolnum>8</manvolnum>
</citerefentry>,
<citerefentry><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum>
</citerefentry>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:2
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:nil
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->
|