| | 19 | There are plugins for almost anything you can think of, and even things |
|---|
| | 20 | you probably haven't. If Kwiki doesn't have something you need, it isn't |
|---|
| | 21 | too hard for you to write a plugin for yourself. Find a friendly Kwiki |
|---|
| | 22 | hacker if you need help getting started. |
|---|
| | 23 | |
|---|
| | 24 | == The Kwiki Vision |
|---|
| | 25 | |
|---|
| | 26 | Kwiki is a great solution for those people who just want to install and |
|---|
| | 27 | easily maintain a wiki site. But Kwiki is much more than that... |
|---|
| | 28 | |
|---|
| | 29 | The vision of Kwiki is to be a software environment where |
|---|
| | 30 | programmers can add to the framework as easily as a person would |
|---|
| | 31 | edit a page on a wiki. |
|---|
| | 32 | |
|---|
| | 33 | In an abstract sense, you can think of the Kwiki project as a wiki, and |
|---|
| | 34 | each Kwiki plugin as a wiki page. Even though these plugins aren't open |
|---|
| | 35 | for /everybody/ to edit, there is a strong sense of trust in the |
|---|
| | 36 | community. Anyone who is interested (and generally trustworthy) can get |
|---|
| | 37 | commit access to the project just by asking. |
|---|
| | 38 | |
|---|
| | 39 | Kwiki encourages experimentation. No idea is too weird for Kwiki. There |
|---|
| | 40 | are no inherent rules to follow. This makes Kwiki a hacker's playground. |
|---|
| | 41 | Just be careful, or somebody might get an eye poked out. |
|---|
| | 42 | |
|---|
| | 43 | Finally Kwiki doesn't make judgments on "Wiki Concepts". For instance, |
|---|
| | 44 | Kwiki does not prefer CamelCaseLinks over [Free Links], or a file system |
|---|
| | 45 | database over an RDBMS. Kwiki supports them all, with plugins for |
|---|
| | 46 | everything. You could probably clone, say, MediaWiki (the Wikipedia wiki |
|---|
| | 47 | software), using the right combination of Kwiki plugins. |
|---|
| | 48 | |
|---|
| | 49 | The point is, if there is something about Kwiki that you don't |
|---|
| | 50 | like, you don't need to convince the Kwiki community to change. |
|---|
| | 51 | Just write a plugin! |
|---|
| | 52 | |
|---|
| | 53 | = INSTALLATION |
|---|
| | 54 | |
|---|
| | 55 | Kwiki is incredibly easy to set up. Kwiki bundles everything you need to |
|---|
| | 56 | get up and running including an optional standalone web server. All you |
|---|
| | 57 | need is a Unix environment with Perl of version 5.8.3 or higher. |
|---|
| | 58 | |
|---|
| | 59 | Ready? You only need to do a few simple steps: |
|---|
| | 60 | |
|---|
| | 61 | 1) Get the Kwiki software. |
|---|
| | 62 | |
|---|
| | 63 | Odds are, that since you are reading this, you already have done this |
|---|
| | 64 | step. 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 | |
|---|
| | 79 | Kwiki does not have an install procedure. Once you have the software, it |
|---|
| | 80 | is "installed". Just put it some nice, safe place like `/usr/local/kwiki`. |
|---|
| | 81 | |
|---|
| | 82 | 2) Put the `kwiki` command line utility in your PATH. |
|---|
| | 83 | |
|---|
| | 84 | At the top level of your new Kwiki software is a directory called `bin` |
|---|
| | 85 | which contains the command line utility called `kwiki`. This utility is |
|---|
| | 86 | needed for managing the Kwiki software. |
|---|
| | 87 | |
|---|
| | 88 | You should put this `bin` directory in your PATH environment setting. Use a |
|---|
| | 89 | command like this in your login script: |
|---|
| | 90 | |
|---|
| | 91 | export PATH=/usr/local/kwiki/bin:$PATH |
|---|
| | 92 | |
|---|
| | 93 | Now you can run `kwiki` commands in your shell. |
|---|
| | 94 | |
|---|
| | 95 | 3) Run the command `kwiki -configure`. |
|---|
| | 96 | |
|---|
| | 97 | You need to run this command once for each time you update the Kwiki |
|---|
| | 98 | software. This command learns things about your system environment and |
|---|
| | 99 | saves them in a place that Kwiki can access them from easily. It will |
|---|
| | 100 | ask you a few questions. |
|---|
| | 101 | |
|---|
| | 102 | To learn find out what questions it will ask you (so you can be prepared |
|---|
| | 103 | to answer them) see http://2.kwiki.org/?KwikiConfigurationQuestions. |
|---|
| | 104 | |
|---|
| | 105 | 4) Create a new wiki with `kwiki -new`. |
|---|
| | 106 | |
|---|
| | 107 | This command installs a Kwiki instance, which is a running wiki website. |
|---|
| | 108 | You can either create a new directory, or specify the directory name in |
|---|
| | 109 | the command. |
|---|
| | 110 | |
|---|
| | 111 | cd /path/to/cgi/ |
|---|
| | 112 | mkdir kwikii-01 |
|---|
| | 113 | cd kwiki-01 |
|---|
| | 114 | kwiki -new |
|---|
| | 115 | |
|---|
| | 116 | or (more simply): |
|---|
| | 117 | |
|---|
| | 118 | kwiki -new /path/to/cgi/kwiki-01 |
|---|
| | 119 | |
|---|
| | 120 | 5) Start a web server with `kwiki -start`. |
|---|
| | 121 | |
|---|
| | 122 | Kwiki comes with its own lightweight web server. To start running your new |
|---|
| | 123 | Kwiki instance, go into its directory and run `kwiki -start`. Or optionally |
|---|
| | 124 | specify the directory on the command: |
|---|
| | 125 | |
|---|
| | 126 | kwiki -start /path/to/cgi/kwiki-01 |
|---|
| | 127 | |
|---|
| | 128 | This is the easy way to get going, but for a real wiki on the Web, |
|---|
| | 129 | you'll probably want to use a "real" web server. In this case, just make |
|---|
| | 130 | sure your webserver is running and knows about your Kwiki. |
|---|
| | 131 | |
|---|
| | 132 | You can use any CGI enabled web server to run Kwiki. Apache and Lighttpd |
|---|
| | 133 | are popular choices. Just put your new Kwiki instance directory in a |
|---|
| | 134 | place where the web server expects to have Perl CGI programs. This may |
|---|
| | 135 | or may not require configuration changes to your web server. |
|---|
| | 136 | |
|---|
| | 137 | 6) You are done!!! |
|---|
| | 138 | |
|---|
| | 139 | Well at least you got a Kwiki up and running. :-) See the next section |
|---|
| | 140 | for advice on configuring and maintaining your new Kwiki. |
|---|
| | 141 | |
|---|
| | 142 | == Installation Command Line Synopsis |
|---|
| | 143 | |
|---|
| | 144 | In 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 | |
|---|