]> scripts.mit.edu Git - www/ikiwiki.git/blobdiff - doc/tips/nearlyfreespeech.mdwn
fix PERL5LIB in examples
[www/ikiwiki.git] / doc / tips / nearlyfreespeech.mdwn
index 7892e1617dcd23439ec7e1fb7587ebf96467decb..b8984a4b72a4114169ebf1c0ee083be0e83cef19 100644 (file)
@@ -11,7 +11,7 @@ Mine is named `ikiwiki-test` and I used their DNS instead of getting my
 own, resulting in <http://ikiwiki-test.nfshost.com/>
 
 They gave me 2 cents free funding for signing up, which is enough to pay
-for 10 megabytes of hosting, or about a thousand typical page views at
+for 10 megabytes of bandwidth, or about a thousand typical page views, at
 their current rates. Plenty to decide if this is right for you. If it is,
 $5 might be a good starting amount of money to put in your account.
 
@@ -38,12 +38,12 @@ Use `wget` to [[download]] the ikiwiki tarball. Then unpack it:
 
 Use CPAN to install the perl modules it uses into your home directory:
 
-       PERL5LIB=ikiwiki:ikiwiki/cpan:. PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->install("Bundle::IkiWiki")'
-       PERL5LIB=ikiwiki:ikiwiki/cpan:. PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->force(install => "Bundle::IkiWiki::Extras")'
+       PERL5LIB=`pwd`/ikiwiki:`pwd`/ikiwiki/cpan:`pwd`/lib/perl5 PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->install("Bundle::IkiWiki")'
+       PERL5LIB=`pwd`/ikiwiki:`pwd`/ikiwiki/cpan:`pwd`/lib/perl5 PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->force(install => "Bundle::IkiWiki::Extras")'
 
-(This will take a while. As long as the first command succeeds, ikiwiki will be
-usable. The second command adds extra modules that some plugins use, and
-installation of some of them might fail.)
+This will take a while. As long as the first command succeeds, ikiwiki will be
+usable. The second command adds extra modules that some plugins use, so it's
+ok if installation of some of them fails.
 
 ## Build and install ikiwiki
 
@@ -53,7 +53,7 @@ installation of some of them might fail.)
        $MAKE
        $MAKE install
 
-## Set up a wiki in the usual way.
+## Set up a wiki in the usual way
 
 With ikiwiki installed, you can follow the regular [[setup]] tutorial for
 settng up your wiki. Make sure to set `destdir` to `/home/htdocs/` so that
@@ -81,9 +81,14 @@ Here is an example of how I set up a wiki:
 ## Clean up
 
 Finally, you can save a _lot_ of disk space by cleaning up the ikiwiki
-tarball and .cpan directory.
+tarball and .cpan directory and a few other peices of cruft. Since you'll be
+charged one cent per month per megabyte, this is a quick way to save several
+dollars.
 
-rm -rf ~/ikiwiki*.tar.gz ~/.cpan
+rm -rf ~/ikiwiki*.tar.gz ~/.cpan ~/ikiwiki ~/man ~/lib/perl5/5.8.8
+
+That should cut things down to less than 4 megabytes. If you want to save
+even more space, delete unused perl modules from ~/lib/perl5
 
 ## Enjoy!