LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-03-2010, 10:39 PM   #1
Dafydd
Member
 
Registered: Oct 2008
Posts: 344

Rep: Reputation: 29
Installing/running mediawiki


Before I go any further, I need to ask some questions. The website I administer is for educational purposes. I would like the club members to be able to create/update/correct articles much like you can on 'Wikipedia'.

From the 'Ubuntu' repository I have installed 'mediawiki' and am in the process of configuring it, ( shhheesh ) I also have 'html2wiki' installed.

1. Is converting all the HTML files to work with 'mediawiki' going to be as simple as running them thru 'html2wiki'?

I think I need this question ask and discussed before I ask you to waste time answering others.

Thanks for any help you can give.
Dave
 
Old 08-16-2010, 06:16 AM   #2
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
html2wiki does what it says on the tin. Takes an HTML webpage and converts into Wiki markup. SHould be that simple.

Have you tried any?

Stuart.
 
Old 08-17-2010, 08:47 AM   #3
Dafydd
Member
 
Registered: Oct 2008
Posts: 344

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by stuart_cherrington View Post
html2wiki does what it says on the tin. Takes an HTML webpage and converts into Wiki markup. SHould be that simple.

Have you tried any?
Yes I have, and it turn out to be that simple. I tested a couple then wrote a script and presto.

Code:
#! /bin/bash
## Step thru the entire website directoris
## converting HTML files to wiki files

for filename in *.html *.htm;

  do
  if [ -f "$filename" ]
    then
	wikifilename=${filename%.*}
	/usr/bin/html2wiki --dialect "Kwiki" --encoding iso-8859-1 --base-uri "http://en.wikipedia.org/wiki/"  --wiki-uri "http://en.wikipedia.org/wiki/" $filename > $wikifilename.wiki
  else
	:
     fi
  done
exit;
One of the things I encountered that I don't understand is '--dialect'. The example uses 'MediaWiki'. I don't have that and could not find it. And I could not find a definition of the differences. So I picked one at random.

After I got this done, I ask myself what to do with all these converted files. All the online manuals seem to be about configuration et al.

Is there a read somewhere that will take me through those steps?

Thanks for your feedback.
Dave
 
Old 08-17-2010, 12:09 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
I did a search on mediawiki HOWTO and these links were on the first page:

http://users.telenet.be/mydotcom/howto/linux/wiki.htm
http://www.mediawiki.org/wiki/Manual...bian_GNU/Linux
http://www.linuxquestions.org/questi...ra-9-a-677135/

Perhaps one of those will help you get started.

I have noticed that often, when there is little documentation, that the best thing to do is just "get started", and you then find it's surprisingly simple. So, instead of posting your own "Howto" for the uninitiated, you move on to more interesting things. Good luck!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems installing and running Frostwire on Acer One running Linpus Linux ricky1981 Linux - Newbie 1 12-19-2008 08:24 AM
Installing Mediawiki: Apache won't read PHP files. Lokathor Debian 1 11-28-2006 05:08 AM
MediaWiki on Core 4 interOperate Fedora 1 08-23-2005 08:18 AM
mediawiki spellchecker jdd Linux - Software 2 08-04-2005 05:26 AM
mediawiki noir911 General 1 07-01-2005 07:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration