Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > d8544620e4ac7bee48ddb48c85d55709 > files > 469

ikiwiki-3.20190228-1.mga7.noarch.rpm

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>setup</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />

<link rel="stylesheet" href="style.css" type="text/css" />

<link rel="stylesheet" href="local.css" type="text/css" />










</head>
<body>

<div class="page">

<div class="pageheader">
<div class="header">
<span>
<span class="parentlinks">

<a href="./index.html">ikiwiki</a>/ 

</span>
<span class="title">
setup

</span>
</span>



</div>









</div>





<div id="pagebody">

<div id="content" role="main">
<p>This tutorial will walk you through setting up a wiki with ikiwiki.</p>

<div class="toc">
	<ol>
		<li class="L2"><a href="#index1h2">Install ikiwiki</a>
		</li>
		<li class="L2"><a href="#index2h2">Create your wiki</a>
		</li>
		<li class="L2"><a href="#index3h2">Using the web interface</a>
		</li>
		<li class="L2"><a href="#index4h2">Checkout and edit wiki source</a>
		</li>
		<li class="L2"><a href="#index5h2">Customizing the wiki</a>
		</li>
		<li class="L2"><a href="#index6h2">Customizing file locations</a>
		</li>
		<li class="L2"><a href="#index7h2">Enjoy your new wiki!</a>
		</li>
	</ol>
</div>

<h2><a name="index1h2"></a>Install ikiwiki</h2>

<p>If you're using Debian or Ubuntu, ikiwiki is an <code><a href="http://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_basic_package_management_operations">apt-get</a> install ikiwiki</code> away.
If you're not, see the <a href="./download.html">download</a> and <a href="./install.html">install</a> pages.</p>

<p>You may also want to try out a sandboxed <a href="https://github.com/elecnix/ikiwiki-docker">Docker image</a>
with ikiwiki pre-installed or this other <a href="https://github.com/dgsb/docker-ikiwiki">one</a> which will use a volume to access a local git repository
for the wiki content.</p>

<h2><a name="index2h2"></a>Create your wiki</h2>

<p>All it takes to create a fully functional wiki using ikiwiki is running
one command.</p>

<div class="notebox">
<p>For more control, advanced users may prefer to set up a wiki
<a href="./setup/byhand.html">by hand</a>.</p>
</div>

<pre><code>% ikiwiki --setup /etc/ikiwiki/auto.setup
</code></pre>

<p>Or, set up a blog with ikiwiki, run this command instead.</p>

<pre><code>% ikiwiki --setup /etc/ikiwiki/auto-blog.setup
</code></pre>

<p><code>librpc-xml-perl</code> and <code>python-docutils</code> dependencies are needed.</p>

<p>Either way, it will ask you a couple of questions.</p>

<pre><code>What will the wiki be named? foo
What revision control system to use? git
What wiki user (or openid) will be admin? joey
Choose a password:
</code></pre>

<p>Then, wait for it to tell you an url for your new site..</p>

<pre><code>Successfully set up foo:
    url:         http://example.com/~joey/foo
    srcdir:      ~/foo
    destdir:     ~/public_html/foo
    repository:  ~/foo.git
To modify settings, edit ~/foo.setup and then run:
    ikiwiki --setup ~/foo.setup
</code></pre>

<p>Done! </p>

<h2><a name="index3h2"></a>Using the web interface</h2>

<p>Now you can go to the url it told you, and edit pages in your new wiki
using the web interface.</p>

<p>(If the web interface doesn't seem to allow editing or login, you may
need to <a href="./tips/dot_cgi.html">configure the web server</a>.)</p>

<h2><a name="index4h2"></a>Checkout and edit wiki source</h2>

<p>Part of the fun of using ikiwiki is not being limited to using the
web for editing pages, and instead using your favorite text editor and
<a href="./rcs.html">Revision Control System</a>. </p>

<p>To do this, you need to check out a copy of the source to your wiki.
(You should avoid making changes directly to the <code>srcdir</code>, as that
checkout is reserved for use by ikiwiki itself.)</p>

<p>Depending on which <a href="./rcs.html">Revision Control System</a> you chose to use,
you can run one of these commands to check out your own copy of your wiki's
source. (Remember to replace "foo" with the real directory name.)</p>

<pre><code>git clone foo.git foo.src
svn checkout file://`pwd`/foo.svn/trunk foo.src
cvs -d `pwd`/foo get -P ikiwiki
bzr clone foo foo.src
hg clone foo foo.src
darcs get foo.darcs foo.src
# TODO monotone, tla
</code></pre>

<p>Now to edit pages by hand, go into the directory you checked out (ie,
"foo.src"), and fire up your text editor to edit <code>index.mdwn</code> or whatever
other page you want to edit. If you chose to set up a blog, there is even a
sample first post in <code>posts/first_post.mdwn</code> that you can edit.</p>

<p>Once you've edited a page, use your revision control system to commit
the changes. For distributed revision control systems, don't forget to push
your commit.</p>

<p>Once the commit reaches the repository, ikiwiki will notice it, and
automatically update the wiki with your changes.</p>

<h2><a name="index5h2"></a>Customizing the wiki</h2>

<p>There are lots of things you can configure to customize your wiki.
These range from changing the wiki's name, to enabling <a href="./plugins.html">plugins</a>,
to banning users and locking pages.</p>

<p>If you log in as the admin user you configured earlier, and go to
your Preferences page, you can click on "Setup" to customize many
wiki settings and plugins.</p>

<p>Some settings cannot be configured on the web, for security reasons or
because misconfiguring them could break the wiki. To change these settings,
you can manually edit the setup file, which is named something like
"foo.setup". The file lists all available configuration settings
and gives a brief description of each.</p>

<p>After making changes to this file, you need to tell ikiwiki to use it:</p>

<pre><code>% ikiwiki --setup foo.setup
</code></pre>

<p>Alternatively, you can ask ikiwiki to change settings in the file for you:</p>

<pre><code>% ikiwiki --changesetup foo.setup --plugin goodstuff
</code></pre>

<p>See <a href="./usage.html">usage</a> for more options.</p>

<h2><a name="index6h2"></a>Customizing file locations</h2>

<p>As a wiki compiler, ikiwiki builds a wiki from files in a source directory,
and outputs the files to a destination directory. The source directory is
a working copy checked out from the version control system repository.</p>

<p>When you used <code>auto.setup</code>, ikiwiki put the source directory, destination
directory, and repository in your home directory, and told you the location
of each. Those locations were chosen to work without customization, but you
might want to move them to different directories.</p>

<p>First, move the destination directory and repository around.</p>

<pre><code>% mv public_html/foo /srv/web/foo.com
% mv foo.git /srv/git/foo.git
</code></pre>

<p>If you moved the repository to a new location, checkouts pointing at the
old location won't work, and the easiest way to deal with this is to delete
them and re-checkout from the new repository location.</p>

<pre><code>% rm -rf foo
% git clone /srv/git/foo.git
</code></pre>

<p>Finally, edit the setup file. Modify the settings for <code>srcdir</code>, <code>destdir</code>,
<code>url</code>, <code>cgiurl</code>, <code>cgi_wrapper</code>, <code>git_wrapper</code>, etc to reflect where
you moved things. Remember to run <code>ikiwiki --setup</code> after editing the
setup file.</p>

<h2><a name="index7h2"></a>Enjoy your new wiki!</h2>

<p>Add yourself to <span class="createlink">IkiWikiUsers</span>. And check out
the <a href="./tips.html">tips</a> to find out how to get more out of ikiwiki.</p>

<hr />

<p><em>Notes</em>:</p>

<ul>
<li>If you are searching for the file where the users are stored, it's in <code>your_repository/.ikiwiki/userdb</code>. The one which is in YOUR REPOSITORY, it cannot be found into your <code>~/.ikiwiki</code>.</li>
<li>If you want to enable a plugin you <strong>WILL HAVE</strong> to add it to the <code>add_plugins</code> array in the <code>*.setup</code> file (or to use the <code>--plugin</code> switch while calling <code>ikiwiki</code>). Uncommenting the plugin options/configuration fields in the setup is not <strong>ALWAYS</strong> sufficient. You have been warned.</li>
</ul>

</div>







</div>

<div id="footer" class="pagefooter" role="contentinfo">

<div id="pageinfo">






<div id="backlinks">
Links:

<a href="./cgi.html">cgi</a>

<a href="./download.html">download</a>

<a href="./index.html">index</a>

<a href="./news/ikiwiki_screencast.html">news/ikiwiki screencast</a>

<a href="./plugins/contrib/opengraph.html">plugins/contrib/opengraph</a>

<a href="./post-commit.html">post-commit</a>

<a href="./rcs/git.html">rcs/git</a>

<a href="./setup/byhand.html">setup/byhand</a>

<a href="./templates/links.html">templates/links</a>

<a href="./tips/Hosting_Ikiwiki_and_master_git_repository_on_different_machines.html">tips/Hosting Ikiwiki and master git repository on different machines</a>


<span class="popup">...
<span class="balloon">

<a href="./tips/distributed_wikis.html">tips/distributed wikis</a>

<a href="./tips/integrated_issue_tracking_with_ikiwiki.html">tips/integrated issue tracking with ikiwiki</a>

<a href="./tips/laptop_wiki_with_git.html">tips/laptop wiki with git</a>

<a href="./tips/nearlyfreespeech.html">tips/nearlyfreespeech</a>

<a href="./tips/using_a_proxy.html">tips/using a proxy</a>

</span>
</span>

</div>






<div class="pagedate">
Last edited <span class="date">Tue Feb 26 23:01:54 2019</span>
<!-- Created <span class="date">Tue Feb 26 23:01:54 2019</span> -->
</div>

</div>


<!-- from ikiwiki -->
</div>

</div>

</body>
</html>