Tags:
create new tag
view all tags

Question

Howto install plugins automated or scripted. For anyone searching like I did. This is my example for Debian/Ubuntu/Linux. It helps me as I tend to install and reinstall TWiki many times for testing or other purposes. See the attachement. Be welcome to correct or enhance at will.

The script does the following:

  • You edit and list the wanted plugins in the file (the plugins variable)
  • Plugins get downloaded
  • Plugins are extracted
  • Plugins are installed, with dependencies (read further)
  • Permissions are applied (apache user)

You must enable the plugins from the configure script yourself afterwards

Remember that even though it works fine for me and my usual setup, it might give errors for you that need manual attention. I couldn't find any ready examples so I wrote this script a sunday evening. It's not perfect. Be sure to check the following before and after running the script:

  • the configure script (http://myserver/twiki/bin/configure)
  • data/warn*.txt (/var/www/twiki/data/warn200801.txt)
  • /var/log/apache/error.log.
  • the local TWiki web, leftbar InstalledPlugins, scroll down and check Plugin Diagnostics.

NB! If you have installed plugins manually before or have rund the script several times the 'wget' utility saves new versions of downloaded files as Plugin.tgz.1 and counting. So you need to delete the tgz from previous downloads, if any.

NB! Some plugin, like DirectedGraphPlugin needs extra setting in the configure script.

NB! I recommend ImageMagick and GraphViz to be on the system before running the script.

NB! The TimeTablePlugin only seems to have a zip file at the moment. Others might as well.

Many thanks to those who made the plugin installer script. The installer script that follows each plugin takes a "-a" switch which makes it automagically fix dependencies, if it can. This means that other plugins and cpan modules might be installed other than those you write in the script.

Hope it might be of some use for someone.

Environment

TWiki version: TWiki 4.2
TWiki plugins:  
Server OS: Debian/Ubuntu/Linux
Web server: Apache
Perl version: 5.8
Client OS: Linux, maybe cygwin
Web Browser: Any
Categories: Installation, Permissions, Deployment, Plugins

-- LarsEik - 28 Jan 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Change status to:
Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt PlugInstaller.sh.txt r2 r1 manage 2.0 K 2008-01-28 - 00:55 UnknownUser Remove .txt to run as shell script
Topic revision: r1 - 2008-01-28 - LarsEik
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.