Changeset 18

Show
Ignore:
Timestamp:
12/11/06 20:24:31 (2 years ago)
Author:
ingy
Message:
 r2315@skinny-2:  ingy | 2006-12-11 20:23:01 -0800
 Wrote a better README installation guide.
 
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/README

    r10 r18  
    1 Welcome to Kwiki 2.0 
     1= Welcome to Kwiki 2.0 
    22 
    3 For a fast start: 
     3Kwiki is wiki software that is especially popular in the Perl community. 
     4It is of course written in Perl, but you don't need to be fluent in Perl 
     5or even know what Perl is to start using a Kwiki wiki today. 
    46 
    5     > perl Configure.pl 
    6     > cd kwiki 
    7     > # Follow instructions in ./README 
     7One of the main advantages of Kwiki over other wiki software is that it 
     8is comprised of lots of little software parts called plugins. There are 
     9nearly 200 Kwiki plugins, with the number growing every day. 
    810 
    9 == Installation 
     11A plugin can change a Kwiki installation in any number of ways. The 
     12effect can range from being simple as changing a color scheme to complex 
     13as turning the wiki into a blog. 
    1014 
    11 0 Run `perl Configure.pl` in this directory 
    12 0 Put `/path/to/this/dir/bin/` in your path 
    13 0 Run `kwiki -new mywiki` somewhere 
     15In practice, Kwiki installations end up looking and behaving very 
     16different from each other, because a given installation is defined by 
     17the set of plugins that the owner of the wiki is using. 
    1418 
     19There are plugins for almost anything you can think of, and even things 
     20you probably haven't. If Kwiki doesn't have something you need, it isn't 
     21too hard for you to write a plugin for yourself. Find a friendly Kwiki 
     22hacker if you need help getting started. 
     23 
     24== The Kwiki Vision 
     25 
     26Kwiki is a great solution for those people who just want to install and 
     27easily maintain a wiki site. But Kwiki is much more than that... 
     28 
     29The vision of Kwiki is to be a software environment where 
     30programmers can add to the framework as easily as a person would 
     31edit a page on a wiki. 
     32 
     33In an abstract sense, you can think of the Kwiki project as a wiki, and 
     34each Kwiki plugin as a wiki page. Even though these plugins aren't open 
     35for /everybody/ to edit, there is a strong sense of trust in the 
     36community. Anyone who is interested (and generally trustworthy) can get 
     37commit access to the project just by asking. 
     38 
     39Kwiki encourages experimentation. No idea is too weird for Kwiki. There 
     40are no inherent rules to follow. This makes Kwiki a hacker's playground. 
     41Just be careful, or somebody might get an eye poked out. 
     42 
     43Finally Kwiki doesn't make judgments on "Wiki Concepts". For instance, 
     44Kwiki does not prefer CamelCaseLinks over [Free Links], or a file system 
     45database over an RDBMS. Kwiki supports them all, with plugins for 
     46everything. You could probably clone, say, MediaWiki (the Wikipedia wiki 
     47software), using the right combination of Kwiki plugins. 
     48 
     49The point is, if there is something about Kwiki that you don't 
     50like, you don't need to convince the Kwiki community to change. 
     51Just write a plugin! 
     52 
     53= INSTALLATION 
     54 
     55Kwiki is incredibly easy to set up. Kwiki bundles everything you need to 
     56get up and running including an optional standalone web server. All you 
     57need is a Unix environment with Perl of version 5.8.3 or higher. 
     58 
     59Ready? You only need to do a few simple steps: 
     60 
     611) Get the Kwiki software. 
     62 
     63Odds are, that since you are reading this, you already have done this 
     64step. If not, you can get the software using one of these methods: 
     65 
     66  A) svn checkout http://svn.2.kwiki.org/kwiki /usr/local/kwiki 
     67 
     68     This is the preferred way to get the sources, since it makes 
     69     getting updates as easy as `svn update`. 
     70 
     71  B) svk checkout http://svn.2.kwiki.org/kwiki /usr/local/kwiki 
     72 
     73     SVK is even better than SVN, but takes a little bit more time to 
     74     get used to. It is the Hacker's Choice for version control. 
     75 
     76  C) Download the latest Kwiki tarball from 
     77     http://downloads.2.kwiki.org/ and untar it. 
     78 
     79Kwiki does not have an install procedure. Once you have the software, it 
     80is "installed". Just put it some nice, safe place like `/usr/local/kwiki`. 
     81 
     822) Put the `kwiki` command line utility in your PATH. 
     83 
     84At the top level of your new Kwiki software is a directory called `bin` 
     85which contains the command line utility called `kwiki`. This utility is 
     86needed for managing the Kwiki software. 
     87 
     88You should put this `bin` directory in your PATH environment setting. Use a 
     89command like this in your login script: 
     90 
     91    export PATH=/usr/local/kwiki/bin:$PATH 
     92 
     93Now you can run `kwiki` commands in your shell. 
     94 
     953) Run the command `kwiki -configure`. 
     96 
     97You need to run this command once for each time you update the Kwiki 
     98software. This command learns things about your system environment and 
     99saves them in a place that Kwiki can access them from easily. It will 
     100ask you a few questions. 
     101 
     102To learn find out what questions it will ask you (so you can be prepared 
     103to answer them) see http://2.kwiki.org/?KwikiConfigurationQuestions. 
     104 
     1054) Create a new wiki with `kwiki -new`. 
     106 
     107This command installs a Kwiki instance, which is a running wiki website. 
     108You can either create a new directory, or specify the directory name in 
     109the command. 
     110 
     111    cd /path/to/cgi/ 
     112    mkdir kwikii-01 
     113    cd kwiki-01 
     114    kwiki -new 
     115 
     116or (more simply): 
     117 
     118    kwiki -new /path/to/cgi/kwiki-01 
     119 
     1205) Start a web server with `kwiki -start`. 
     121 
     122Kwiki comes with its own lightweight web server. To start running your new 
     123Kwiki instance, go into its directory and run `kwiki -start`. Or optionally 
     124specify the directory on the command: 
     125 
     126    kwiki -start /path/to/cgi/kwiki-01 
     127 
     128This is the easy way to get going, but for a real wiki on the Web, 
     129you'll probably want to use a "real" web server. In this case, just make 
     130sure your webserver is running and knows about your Kwiki. 
     131 
     132You can use any CGI enabled web server to run Kwiki. Apache and Lighttpd 
     133are popular choices. Just put your new Kwiki instance directory in a 
     134place where the web server expects to have Perl CGI programs. This may 
     135or may not require configuration changes to your web server. 
     136 
     1376) You are done!!! 
     138 
     139Well at least you got a Kwiki up and running. :-) See the next section 
     140for advice on configuring and maintaining your new Kwiki. 
     141 
     142== Installation Command Line Synopsis 
     143 
     144In review, basically just do these commands: 
     145 
     146  > svk checkout http://svn.2.kwiki.org/kwiki /usr/local/kwiki 
     147  > export PATH=/usr/local/kwiki/bin:$PATH 
     148  > kwiki -configure 
     149  > kwiki -new /path/to/cgi/kwiki-01 
     150  > kwiki -start /path/to/cgi/kwiki-01 
     151 
     152= CONFIGURATION 
     153 
     154= COMMUNITY 
     155