InstallMoinMoinOnFedora

From $1

Table of contents
[MISSING]

See Also [[UpgradingMoinMoinOnFedora]]

Moin 1.3.1 basic install

  1. cd /usr/local
  2. tar --zxf moin.tar.gz
  3. python setup.py --quiet install --record=install.log

    1. As root
  4. In Moin terminology:
    1. Location = /usr/local/wikis
    2. PREFIX = /usr
    3. MoinMoin directory (MM source) = /usr/lib/python2.3/site-packages/MoinMoin

    4. share directory (MM templates) = /usr/share/moin
  5. edit, then run my script: setup-moin-1.3.1.sh
  6. Copy my textil.py to /usr/local/wikis/kleinfelterwiki/data/plugin/parser
  7. hack /usr/lib/python2.3/ste-packages/MoinMoin/Page.py to treat 'system' pages as wiki markup, even though they don't contain "#FORMAT wiki":

    1. Find the SendPage function (about line 650).

    2. Then find:
      1. elif verb == "acl"
      2. (about line 803)
    3. Add:

                 1. kpk mod begins
                if line[:25] == '#acl MoinPagesEditorGroup':
                    pi_format = 'wiki'
                 1. kpk mod ends

  1. hack /usr/lib/python2.3/ste-packages/MoinMoin/PageEditor.py to show quick-help for textile and not wiki-markup:

    1. Search for QuickHelp (about line 1105).

    2. Replace the wiki-markup help with:


Formatting Tips:
<table cellspacing="0" cellpadding="0">
	<tr><td>_your text_</td><td class="arrow">?</td><td><em>your text</em></td></tr>
	<tr><td>*your text*</td><td class="arrow">?</td><td><strong>your text</strong></td></tr>
	<tr><td>%{color:red}hello%</td><td class="arrow">?</td><td><span style="color: red;">hello</span></td></tr>
	<tr><td>{background:#ddd}. Gray</td><td class="arrow">?</td><td><span style="background: #ddd">Gray</span></td></tr>
	<tr><td> * Bulleted list<br /> * Second item</td><td class="arrow">?</td><td>??? Bulleted list<br />??? Second item</td></tr>
	<tr><td> 1. Numbered list<br /> 1. Second item</td><td class="arrow">?</td><td>1. Numbered list<br />2. Second item</td></tr>
	<tr><td>"linkname":URL</td><td class="arrow">?</td><td><a href="URL">linkname</a></td></tr>
	<tr><td>|a|table|row|<br />|b|table|row|</td><td class="arrow">?</td><td>Table</td></tr>
	<tr><td>http://url<br />email@address.com</td><td class="arrow">?</td><td>Auto-linked</td></tr>
	<tr><td>!imageURL!</td><td class="arrow">?</td><td>Image</td></tr>
</table>

Moin additional instance creation:

  1. edit, then run my script: setup-moin-1.3.1.sh

vi $INSTANCE/wikiconfig.py (assuming your wiki is in /usr/local/wikis/mywiki)

  1. (DONT DO THIS ONE. My script adds this at the bottom.) set data_dir to /usr/local/wikis/mywiki/data/
  2. (DONT DO THIS ONE. My script adds this at the bottom.) set data_underlay_dir to /usr/local/wikis/mywiki/underlay
  3. set sitename to: Your Wiki Title
  4. uncomment allowed_actions
  5. acl_rights_before="KevinKleinfelter:read,write,delete,revert,admin"

  6. acl_rights_default="KleinfelterFamilyGroup:read,write,revert All:read"

    1. or at work: "Known:read,write,revert All:read"

  7. default_markup = 'textil'

And test...

  1. apachectl restart
  2. Browse to http://kkleinfelter.dyndns.org/wikis/mywiki?action=test

  3. Browse to http://kkleinfelter.dyndns.org/wikis/mywiki

Create KleinfelterFamilyGroup

  1. Browse to http://kkleinfelter.dyndns.org/wikis/kleinfelter/KleinfelterFamilyGroup


Notes on MoinMoin (1.3.1)

  • To alter the content of a page template (such as PageEditor.py), edit the copy in /usr/lib/python2.3/site-packages/MoinMoin.

  • If ACLs or Groups seem not to be working:

cd /usr/local/wikis
rm */data/cache/*/*


Regulus Notes

  • set mail_smarthost to nap112smx01.regulusgroup.net
Tags:
none
 
Images (0)
 
Comments (0)
You must login to post a comment.