aboutsummaryrefslogtreecommitdiffstats
path: root/doc/mount.wikipediafs.1
blob: 3686766078e0324943af7dd8eafde66250ecaf13 (plain) (blame)
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
'\" t
.\"     Title: MOUNT.WIKIPEDIAFS
.\"    Author: Mathieu Blondel
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
.\"      Date: Thu, 20 Jun 2006 13:16:17 -0700
.\"    Manual: [FIXME: manual]
.\"    Source: [FIXME: source]
.\"  Language: English
.\"
.TH "MOUNT\&.WIKIPEDIAFS" "1" "Thu, 20 Jun 2006 13:16:17 \-0700" "[FIXME: source]" "[FIXME: manual]"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
mount.wikipediafs \- A program to mount WikipediaFS, a filesystem that allows to view and edit Wikipedia articles as if they were real files\&.
.SH "SYNOPSIS"
.HP \w'\fBmount\&.wikipediafs\fR\ 'u
\fBmount\&.wikipediafs\fR[\fImountpoint\fR]
.SH "DESCRIPTION"
.PP
This manual page documents the
\fBmount\&.wikipediafs\fRcommand and general usage of WikipediaFS\&.
.PP
WikipediaFS allows to view and edit Wikipedia articles as if they were real files\&.
\fBmount\&.wikipediafs\fRmounts a WikipediaFS filesystem\&.
.PP
To connect through an HTTP proxy, it is possible to use the $http_proxy environment variable\&.
.SH "CONFIGURATION"
.PP
The first time WikipediaFS is run, an XML configuration file is generated in ~/\&.wikipediafs/config\&.xml\&. It is possible to edit it later to add more Wikipedia or Mediawiki\-based sites\&. Each site entry can define the following elements\&. Elements marked with an * are mandatory\&.
.PP
dirname*
.RS 4
Is the name of the directory through which you will access to the site\&.
.RE
.PP
host*
.RS 4
Is the host of the site\&. For Wikipedia, it will be lang\&.wikipedia\&.org
.RE
.PP
basename*
.RS 4
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\&.
.RE
.PP
username and password
.RS 4
Enables to edit articles with one\*(Aqs login\&.
.RE
.PP
httpauth_username and httpauth_password
.RS 4
Can be used for Mediawiki sites protected with HTTP authentication (Apache\*(Aqs \&.htaccess)\&.
.RE
.PP
https
.RS 4
Use HTTPS instead of HTTP\&.
.RE
.SH "MOUNT"
.PP
\fB mount\&.wikipediafs\fRmountpoint/
.PP
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,
.PP
# adduser your_username fuse
.PP
# chmod 4750 /usr/bin/fusermount
.PP
# chgrp fuse /dev/fuse /usr/bin/fusermount
.PP
(You may have to log out and log in again so that changes are taken into account\&.)
.SH "UNMOUNT"
.PP
\fBfusermount\fR\-u mountpoint/
.PP
or simply
.PP
\fBumount\fRmountpoint/
.SH "FSTAB"
.PP
Alternatively, you can mount WikipediaFS through fstab\&.
.PP
To do so, add this line to /etc/fstab:
.PP
none /mnt/wfs/ wikipediafs noauto,nouser
.PP
Replace noauto by auto if you want WikipediaFS to be mounted at boot\&.
.PP
Replace nouser by user if you want to allow simple users to use WikipediaFS\&.
.PP
A symbolic link from /usr/bin/mount\&.wikipediafs to /sbin/mount\&.wikipediafs is needed if WikipediaFS is mounted through fstab\&.
.PP
Then, traditional mount and unmount commands can be used with WikipediaFS\&.
.SH "SAMPLE USAGE"
.PP
This section demonstrates possible usage of WikipediaFS via the command line, though it is also possible to use WikipediaFS with a graphical file explorer\&.
.PP
$ mount /mnt/wfs/ WikipediaFS is now mounted in /mnt/wfs/
.PP
$ cd /mnt/wfs/ We are now at the WikipediaFS root\&.
.PP
$ ls mblondel\&.org/ This directory has been defined in the configuration file\&.
.PP
$ mkdir wikipedia\-en/ WikipediaFS recognizes the "site\-lang" pattern for the sites from the Wikimedia Foundation\&.
.PP
$ ls mblondel\&.org/ wikipedia\-en/
.PP
$ ls wikipedia\-en/ Nothing is listed because we have not used any file yet\&.
.PP
$ cat wikipedia\-en/Japan\&.mw | less The Japan article is fetched on en\&.wikipedia\&.org and displayed\&. Note that the \&.mw extension is required\&.
.PP
$ ls wikipedia\-en/ Japan\&.mw Japan\&.mw is now listed because it has been accessed once\&.
.PP
$ vi mblondel\&.org/Test\&.mw 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\&.
.PP
$ cp wikipedia\-en/Japan\&.mw ~/Desktop/ This backups the online article to the local disk\&.
.PP
$ cp wikipedia\-en/Japan\&.mw mblondel\&.org/ This copies the wikipedia\-en article to the mblondel\&.org entry\&.
.PP
$ rm mblondel\&.org/Test\&.mw This only removes the article from the directory, not from the site, hopefully\&.
.PP
$ mkdir \-p mblondel\&.org/Foo/Bar/
.PP
$ vi mblondel\&.org/Foo/Bar/Code\&.mw Subpages are supported\&. You need to create the directories first\&.
.SH "AUTHOR"
.PP
This manual page was written by
Mathieu Blondel\&.
.PP
This manual page is (c) 2006\-2007 of
Mathieu Blondeland licensed under the terms of the GPLv2 or higher
.SH "SEE ALSO"
.PP
\fBmount\fR(8),
\fBfstab\fR(5)
.SH "AUTHOR"
.PP
\fBMathieu Blondel\fR
.RS 4
Author.
.RE
.SH "COPYRIGHT"
.br
Copyright \(co 2007 sdffsd
.br