68e31147add3ace7321dd33c5b1d6d0b6ab16ac7
[www.jankratochvil.net.git] / project / captive / Index.pm
1 # $Id$
2 # Main page of 'My::Project::captive'
3 # Copyright (C) 2003-2005 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18
19 package project::captive::Index;
20 require 5.6.0;  # at least 'use warnings;' but we need some 5.6.0+ modules anyway
21 our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
22 our $CVS_ID=q$Id$;
23 use strict;
24 use warnings;
25
26 use My::Web;
27 Wuse 'project::Lib';
28
29
30 our @ListItem=(
31                 "name"=>"Captive",
32                 "platform"=>"unixuser",
33                 "priority"=>666,
34                 "summary"=>"The first free NTFS read/write filesystem for GNU/Linux",
35                 "license"=>"GPL",
36                 "maintenance"=>"update",
37                 "language"=>"i386 asm, C, Perl",
38                 "icon"=>"captive-install-acquire-icon",
39                 "cvs-of main tree"=>"captive",
40                 "cvs-of branched ReactOS subdir"=>"reactos:captive",
41                 "cvs-of branched LUFS"=>"lufs:captive",
42                 "cvs-of 'httpcaptive://' method"=>"gnome-vfs-httpcaptive:captive",
43                 "cvs-of 'libntfs://' method"=>"ntfsprogs-gnomevfs",
44                 "description"=>sub { return <<"HERE"; },
45 <p>Project implements the first full read/write free access to NTFS disk drives.
46 You can mount your Microsoft Windows NT, 200x or XP partition as
47 a transparently accessible volume for your GNU/Linux.</p>
48 <p>This compatibility was achieved in
49 the @{[ a_href 'http://www.winehq.com/','Wine' ]} way by using the original
50 Microsoft Windows <i>ntfs.sys</i> driver. It emulates the required subsystems of
51 the Microsoft Windows kernel by reusing one of the original
52 <i>ntoskrnl.exe</i>, @{[ a_href 'http://www.reactos.com/','ReactOS' ]} parts, or
53 this project's own reimplementations, on a case by case basis.
54 Project includes the first open source MS-Windows kernel API for Free operating systems.
55 Involvement of the original driver files was chosen to achieve the best
56 and unprecedented filesystem compatibility and safety.</p>
57 <p>As opposed to other projects this is currently the only software supporting the full
58 read/write access including the possibility to create/delete files, modify directories
59 etc.</p>
60 HERE
61                 );
62
63 sub handler
64 {
65 my $W=project::Lib->init(
66                 "no_project_data"=>1,
67                 "head"=><<"HERE",
68 <link rel="stylesheet" type="text/css" href="@{[ uri_escaped(path_web "./Index.css") ]}" />
69 HERE
70                 "project_text_after_title"=>""
71                                 .'<table border="0" width="100%"><tr><td align="center">'
72                                         .'<table border="0" class="navigate"><tr>'
73                                                 .'<td>&bull;&nbsp;'.a_href('#download','Download').'</td>'
74                                                 .'<td>&bull;&nbsp;'.a_href('#news','NEWS').'</td>'
75                                                 .'<td>&bull;&nbsp;'.a_href('#testimonials','Testimonials').'</td>'
76                                                 .'<td>&bull;&nbsp;'.a_href('#press','Internet Press').'</td>'
77                                                 .'<td>&bull;&nbsp;'.a_href('#notes','Installation Notes').'</td>'
78                                                 .'<td>&bull;&nbsp;'.a_href('#lists','Mailing Lists').'</td>'
79                                                 .'<td>&bull;&nbsp;'.a_href('#seealso','See Also').'</td>'
80                                         .'</tr></table>'
81                                 .'</td></tr></table>',
82                 );
83
84
85 print <<"HERE" if !$W->{"no_job"};
86 @{[ vskip "3ex" ]}
87
88 <table border="0" width="100%"><tr><td align="center">
89         <table border="0" style="margin: 3ex; padding: 2ex; background: #bb8888;">
90                 <tr><td style="font-size: larger;">
91                         Looking for a challenging job: @{[ a_href $W->{"resume_url"},"My resume" ]}
92                 </td></tr>
93         </table>
94 </table>
95 HERE
96
97 my %version=(
98                 map(($_=>["1.1.5","0"]),qw(captive captive-lufs captive-install)),
99                 "lufs"=>["0.9.7","1captive8"],
100                 );
101
102 print <<"HERE";
103 <h2 id="download">Download</h2>
104
105 <h3>Choose the one preferred installation format:</h3>
106
107 <table border="0" style="text-align: center;" width="100%"><tr><td align="center">
108 <table border="1" frame="border" rules="rows" style="text-align: center;" class="download">
109         <tr>
110                 <td>
111                         <p>RPM i386 binary<br />tested for distributions:</p>
112                         <table border="0"><tr><td align="left"><ul>
113                                 <li>Red&nbsp;Hat&nbsp;9&nbsp;Shrike</li>
114                                 <li>Red&nbsp;Hat&nbsp;8&nbsp;Psyche</li>
115                                 <li>SuSE&nbsp;9.0</li>
116                                 <li>SuSE&nbsp;9.1</li>
117                                 <li>Mandrake&nbsp;9.1&nbsp;Bamboo</li>
118                         </ul></td></tr></table>
119                 </td>
120                 <td>@{[ a_href 'dist/captive-static-'.$version{"captive"}[0].'-'.$version{"captive"}[1].'.i386.rpm',
121                                 undef(),"size"=>1,"basename"=>1 ]}</td>
122         </tr>
123         <tr>
124                 <td>
125                         <p>.tar.gz i386 binary<br />(for non-RPM distributions)</p>
126                 </td>
127                 <td>@{[ a_href 'dist/captive-static-'.$version{"captive"}[0].'.tar.gz',undef(),"size"=>1,"basename"=>1 ]}</td>
128         </tr>
129         <tr>
130                 <td>Source archives</td>
131                 <td>@{[ a_href 'CVS.pm#source','download link' ]}</td>
132         </tr>
133 </table>
134 </td></tr></table>
135
136 <h4>Development Status</h4>
137
138 <p>Project is no longer developed. The key functionality is reached
139 by the latest released version. All its resources are available
140 @{[ a_href 'CVS.pm#source','here' ]} for download.</p>
141
142 <h4>Known Issue</h4>
143
144 <p>Captive was written to interface with the Linux kernel via
145 @{[ a_href 'http://lufs.sourceforge.net/lufs/','LUFS' ]}.
146 Unfortunately, this project is no longer being maintained by its author.
147 Mounting of NTFS devices usually works, but is no longer supported by the
148 author of Captive. Always unmount the device by umount(8) command before shutting
149 down your GNU/Linux system.</p>
150
151 <p>A port of Captive to the newer
152 @{[ a_href 'http://fuse.sourceforge.net/','FUSE' ]}
153 interface has not yet been implemented.
154 There is an experimental LUFS-FUSE bridge called
155 @{[ a_href 'http://sourceforge.net/project/showfiles.php?group_id=121684','lufis' ]}
156 that can be used in the meanwhile.
157 Also, the captive-cmdline(1) interface will get around any kernel compatibility
158 problems.</p>
159
160 @{[ vskip "3ex" ]}
161
162 <h2 id="news">NEWS</h2>
163
164 <dl>
165         <dt>captive-1.1.5 (2004-01-18) [@{[ a_href $W->{"project_viewcvs"}.'/*checkout*/captive/NEWS?rev=HEAD','archive' ]}]</dt>
166         <dd>
167                 <ul>
168                         <li>Fixed ignorance of the file truncate operation via LUFS (Matthias R.)</li>
169                         <li>Support for reading of HIDDEN SYSTEM NTFS files via LUFS</li>
170                         <li>Fixed refusal to mount some NT4.0 NTFSes (Nerijus Baliunas, Scott Chevalley)</li>
171                         <li>Support <code>/dev/ataraid</code> devices (Ivan Tonov)</li>
172                 </ul>
173         </dd>
174         <dt>lufs-0.9.7captive8 (2003-12-06) [@{[ a_href $W->{"project_viewcvs"}.'/*checkout*/lufs/NEWS.captive?rev=1.1.2.11','archive' ]}]</dt>
175 </dl>
176
177 @{[ vskip "3ex" ]}
178
179 <h2 id="testimonials">Captive NTFS Testimonials</h2>
180
181 <ul>
182         <li>Hospital of Castelo Branco - Bruno Santos
183                 <p>we are preparing the machines to install another system that will allow
184                 the digitalization of medical images - PACS (picture archive and
185                 communication system).</p>
186
187                 <p>since the computers that are need are about 100 and we need to install
188                 windows in all of them (even we have an almost automated instalation - but
189                 requires some administrator interaction). So, we want to install
190                 windows2000 without pressing a key.</p>
191
192                 <p>@{[ a_href 'TestimonialBrunoSantos.pm','<span style="font-style: italic;">[ more ]</span>' ]}</p>
193         </li>
194         <li>@{[ a_href 'http://www.amunra.co.uk/','Dave &quot;AmunRa&quot; Rigby' ]}
195                 <p>Ok, I'm impressed (@{[ a_href 'http://www.amunra.co.uk/archives/000028.php','Captive Review' ]})</p>
196                 <p>Linux software generally has a reputation for having some great, novell
197                 ideas, but often lacking in the general 'spit and polish' - difficult to
198                 install, unreliable, and so on. However the latest program I have tried out
199                 - Captive, is a breath of fresh air - simple to install and set up, and It
200                 Just WorksTM. And not only that, it's probably one of the most useful and
201                 technically impressive projects I've seen in a long time ...</p>
202                 <p><span style="font-style: italic;">[ snip ]</span></p>
203         </li>
204         <li>Derek J Witt
205                 <p>I commend you for this project. I am currently using this on my XP NTFS
206                 partitions and I am impressed that I can actually move, edit, and remove files
207                 and directories with no apparent ill effects. This is very nice indeed.</p>
208                 <p>I initially was skeptical because it uses wine and parts of ReactOS
209                  (I have messed with this OS a few times), but you have proved me wrong. I have
210                 noticed no lag on my system.  I do notice the initial mounting process does
211                 take slightly longer than the Linux-NTFS project. But, once I'm past that, it's
212                 quite transparent.</p>
213                 <p><span style="font-style: italic;">[ technical question cut ]</span></p>
214         </li>
215         <li>James Van't Slot
216                 <p>Just wanted to drop you a note and say &quot;Excellent work!&quot;</p>
217                 <p>I just installed captive and it worked as advertized right out of the
218                 rpm.  Thanks, I've been holding off recompiling my kernel until NTFS is
219                 supported out of the box for Redhat.  Now I don't have to bother.</p>
220                 <p>Thanks again and keep up the great work.</p>
221         </li>
222 </ul>
223
224 <h2 id="press">@{[ a_href 'Press.pm','Internet Press' ]}</h2>
225
226 @{[ vskip "3ex" ]}
227
228
229 <h1 id="notes">Installation Notes</h1>
230 <p>You should first run <b>captive-install-acquire</b> command to check your
231 available Microsoft Windows drivers versions. Now you can execute:</p>
232
233 <blockquote>
234         <p class="quote" style="white-space: pre;"
235 ># captive-cmdline \\
236                 --load-module=/var/lib/captive/ntoskrnl.exe \\
237                 --filesystem=/var/lib/captive/ntfs.sys \\
238                 --sandbox-server=/usr/sbin/captive-sandbox-server \\
239                 --bug-pathname=/tmp/captive-bug-%FT%T.captivebug.xml.gz \\
240                 --disk --rw /dev/hda1
241 # Now you can use ftp(1)-like command-line interface for the NTFS disk access.</p
242         >
243         <p>(Backslash end-of-line characters '\\' to be omitted for line continuation.)</p>
244 </blockquote>
245
246
247 <h2>Overview</h2>
248
249 <p>Any errors from '<b>captive-lufs</b>' are written to '<b>/var/log/messages</b>'.</p>
250 <p>Needed drivers (at least ntoskrnl.exe+ntfs.sys) must be in '<b>/var/lib/captive</b>'.</p>
251 <p>'<b>captive</b>' package creates '<b>captive</b>' user and '<b>captive</b>' group on your system.</p>
252
253
254 <h2>LUFS Kernel Driver Module</h2>
255
256 <p>@{[ a_href 'http://lufs.sourceforge.net/lufs/','LUFS' ]} (Linux Userland File
257 System) needs Linux kernel module driver (<i>lufs.o</i>) compatible with your
258 running Linux kernel. The binary driver is supplied already precompiled for many
259 Linux kernel versions in the binary packages above (<b>.i386.rpm</b> and
260 <b>_i386.deb</b> archives).</p>
261
262 <p>If you cannot <b>mount</b>(8) your NTFS filesystem you should run <span
263 class="quote">/usr/share/lufs/prepmod</span> to see the reasons. It is always
264 recommended to upgrade to the latest stable kernel supplied by your GNU/Linux
265 distribution vendor. You may need to install package
266 <b>kernel-source</b> (Red Hat) or <b>kernel-headers</b> (Debian) matching your
267 Linux kernel version (<b>rpm&nbsp;-q&nbsp;kernel</b>) and re-run <span
268 class="quote">/usr/share/lufs/prepmod</span>.</p>
269
270 <p><b>WARNING:</b> This 'captive' package may modify your Linux kernel
271 sources matching your currently running kernel version. These minor
272 modifications may include a dependencies rebuild, compiling build tools, fixes of
273 several include files, etc. All the modifications are done at the mount(8) time
274 by the automatically executed <span class="quote">/usr/share/lufs/prepmod</span> script.
275 This behavior was not present in the original
276 @{[ a_href 'http://lufs.sourceforge.net/lufs/','LUFS' ]} distribution
277 by @{[ a_href 'http://www.malinux.net/main/','Florin Malita' ]}.</p>
278
279
280 HERE
281
282
283 print rightimg <<"HERE",'reactos','ReactOS',"a_href"=>'http://www.reactos.com/';
284         <h2>The First Open Source MS-Windows Kernel API for Free OS</h2>
285
286         <p>Compatibility with the existing binary Microsoft Windows file system drivers has been
287         reached. Microsoft Windows kernel system components required by these drivers
288         were analyzed and successfully emulated in the GNU/Linux operating system.
289         The project brings the Microsoft Windows kernel emulation framework to support even
290         other types of Microsoft Windows drivers in the future.
291         The <span class="productname">@{[ a_href 'http://www.reactos.com/','ReactOS' ]}</span>
292         code base proved to be a big asset for this functionality.</p>
293 HERE
294
295
296 my @lists=qw(captive-announce-list captive-list captive-devel-list);
297
298 print <<"HERE";
299
300 <h2 id="lists">Mailing Lists</h2>
301
302 <form action="@{[ uri_escaped(path_web "/Mailman.pm") ]}" method="post">
303         <table border="1" class="mailman" style="border-collapse: collapse; border-style: solid; border-width: 1px;">
304                 <tr>@{[ map('<th>'.$_.'@jankratochvil.net</th>',@lists) ]}</tr>
305                 <tr><td>New version announcements<br />
306                         (low traffic, recommended)</td>
307                                 <td>User support,<br />bug reports</td>
308                                 <td>Development</td>
309                                 </tr>
310                 <tr>@{[ map({ "<td>".a_href($W->{"mailman_url"}."listinfo/$_",'Mailman Infopage')."</td>"; } @lists) ]}</tr>
311                 <tr>@{[ map({ "<td>".a_href($W->{"pipermail_url"}."$_",'Archive')."</td>"; } @lists) ]}</tr>
312                 <tr>@{[
313                         map(('<td><input type="checkbox" name="list" value="'.$_.'"'
314                                         .($_ ne "captive-announce-list" ? '' : ' checked="checked"')
315                                         .' /> Subscribe?</td>'),@lists)
316                         ]}</tr>
317                 <tr><td colspan="3">
318                         <table border="0" style="text-align: left;">
319                                 <tr><td>Email address:            </td><td><input type="text"     name="email"   size="30" /></td></tr>
320                                 <tr><td>Your new Mailman password:</td><td><input type="password" name="pw"      size="15" /></td></tr>
321                                 <tr><td>Reenter your password:    </td><td><input type="password" name="pw-conf" size="15" /></td></tr>
322                         </table>
323                         <p>
324                                 <input type="hidden" name="back" value="/project/captive/#lists" />
325                                 <input type="submit" name="email-button" value="Subscribe me" />
326                         </p>
327                 </td></tr>
328         </table>
329 </form>
330
331
332 @{[ vskip "3ex" ]}
333
334 <h1 id="seealso">See Also</h1>
335 <ul>
336         <li>@{[ a_href 'Preview.pm','Technology Preview' ]}</li>
337         <li>@{[ a_href 'CVS.pm','Download Sources, CVS Repository' ]}</li>
338         <li>@{[ a_href 'doc/','Developer Documentation' ]}; highlights:<ul>
339                 <li>@{[ a_href 'doc/About.pm#versions','Microsoft Windows Versions Compatibility' ]}</li>
340                 <li>@{[ a_href 'doc/Architecture.pm#law','Laws and Licensing Conditions' ]}</li>
341                 <li>@{[ a_href 'doc/Details.pm#sandbox','Sandboxing of W32 Filesystem' ]}</li>
342                 <li>@{[ a_href 'doc/TODO.pm#todo_fsck','TODO: Fsck of NTFS' ]}</li>
343                 <li>@{[ a_href 'doc/TODO.pm#todo_surprise','TODO: NTFS Support for Partition Surprise' ]}</li>
344                 <li>@{[ a_href 'doc/Related.pm#LinuxNTFScompet','Related Projects - Linux NTFS' ]}</li>
345                 <li>@{[ a_href 'doc/Related.pm#vmware','Related Projects - VMware Workstation' ]}</li>
346                 <li>@{[ a_href 'doc/LinuxNTFS.pm',"Re: 7.7 Can't we write a wrapper for Windows' driver?" ]}</li>
347                 </ul></li>
348         <li>@{[ a_href $W->{"project_viewcvs"}.'/*checkout*/captive/TODO?rev=HEAD','Known Bugs' ]}</li>
349         <li>Man Pages<ul>
350                 @{[
351                         do {
352                                 my @mans=(
353                                                 'captive'=>[7,'Microsoft Windows NT kernel emulation for NTFS disk access'],
354                                                 'mount.captive'=>[8,'mount(8) interface for NTFS disk access'],
355                                                 'lufs-captivefs'=>[7,'Linux Userland File System module for NTFS as filesystem'],
356                                                 'captive-cmdline'=>[1,'Command-line client for captive(7) NTFS disk access'],
357 ###                                             'captive-sandbox-server'=>[1,'Security+safety wrapper for NTFS disk access'],
358                                                 'captive-install-acquire'=>[1,'Find MS Windows XP driver files for NTFS'],
359 ###                                             'captive-install-fstab'=>[1,'Manage captive-ntfs /etc/fstab entries'],
360                                                 );
361                                 my @r;
362                                 while (@mans) {
363                                         my $file=shift @mans;
364                                         my($section,$name)=@{shift @mans};
365                                         push @r,"<li>".a_href("man/$file.pod.html",$file)."($section) - $name</li>\n";
366                                         }
367                                 @r;
368                                 }
369                         ]}
370                 </ul></li>
371         <li>@{[ a_href 'Resources.pm','Related Pages' ]}</li>
372         <li>@{[ a_href 'Thanks.pm','Thanks' ]}</li>
373 </ul>
374 HERE
375
376
377 My::Web->footer();
378 }
379 1;