Guide to Mediawiki on a Raspberry Pi: Difference between revisions

From UmbraXenu
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
This is a guide to setting up a MediaWiki on a Raspberry Pi, eventually to include a disk image of a pre-configured setup.
This is a guide to setting up a MediaWiki on a Raspberry Pi, eventually to include a disk image of a pre-configured setup.
==Parts needed==
==Parts needed==
*Raspberry Pi - Model B.
*Raspberry Pi - Model B or B+.
*SD Card, at least 4GB.
*SD Card, at least 8GB.
*USB drive or stick.
*USB drive or stick.
*Powered USB hub.
*Powered USB hub.
Line 12: Line 12:
*Either HDMI or DVI monitor.
*Either HDMI or DVI monitor.
*Monitor cable. Either mini-HDMI or mini-HDMI to DVI adapter cable.
*Monitor cable. Either mini-HDMI or mini-HDMI to DVI adapter cable.

==Operating system==
===Raspberry Pi B+===
The Pi has a bootstrap loader that will try to load an OS from the SD Card. In this case, it will be the Raspbian version of the Debian distro of Linux.
A Raspberry Pi B+ is capable of driving a USB hard drive directly, without the need of a powered hub, however there are some requirements:
*A power supply of at least 2A real capacity.
*A good USB cable with thick wires. Some cheap charge cables use thin wires and even skimp on the copper.
*A change to the config.txt file to turn off the USB current limiter.
Symptoms of low power are the RPI power LED turning off (brownout condition) or the drive clicking as the voltage drops below the working level and resets.

==Software needed==
*An SD format program.
*An image writer.
*A disk image of the current version of wheezy Raspbian Pi.

==Raising up a LAMP==
==Raising up a LAMP==
LAMP stands for [[Wikipedia:LAMP_%28software_bundle%29|Linux Apache MySQL PHP]] (mainly). It's the "solution stack" needed for most web-based applications.
LAMP stands for [[Wikipedia:LAMP_%28software_bundle%29|Linux Apache MySQL PHP]] (mainly). It's the "solution stack" needed for most web-based applications.

==Get it together==


==That's how I role==
==That's how I role==
Line 42: Line 55:
*[http://raspberrywebserver.com/ Raspberry Web Server]. Websites using Python.
*[http://raspberrywebserver.com/ Raspberry Web Server]. Websites using Python.
*[http://www.weedpi.com/how-to/how-this-site-was-built/ How this site was built - Weed Pi], Nginx and WordPress.
*[http://www.weedpi.com/how-to/how-this-site-was-built/ How this site was built - Weed Pi], Nginx and WordPress.
*[http://www.berryterminal.com/doku.php/berryboot BerryBoot v2.0 - bootloader / universal operating system installer]. Simple method of installing OSs on external drives.

Latest revision as of 17:50, 15 January 2015

(Article under construction)

The UmbraXenu server, with $2.25 in change.

This is a guide to setting up a MediaWiki on a Raspberry Pi, eventually to include a disk image of a pre-configured setup.

Parts needed

  • Raspberry Pi - Model B or B+.
  • SD Card, at least 8GB.
  • USB drive or stick.
  • Powered USB hub.
  • A router between the Internet and your LAN.

For initial configuration, the following will be needed:

  • USB keyboard.
  • Either HDMI or DVI monitor.
  • Monitor cable. Either mini-HDMI or mini-HDMI to DVI adapter cable.

Raspberry Pi B+

A Raspberry Pi B+ is capable of driving a USB hard drive directly, without the need of a powered hub, however there are some requirements:

  • A power supply of at least 2A real capacity.
  • A good USB cable with thick wires. Some cheap charge cables use thin wires and even skimp on the copper.
  • A change to the config.txt file to turn off the USB current limiter.

Symptoms of low power are the RPI power LED turning off (brownout condition) or the drive clicking as the voltage drops below the working level and resets.

Software needed

  • An SD format program.
  • An image writer.
  • A disk image of the current version of wheezy Raspbian Pi.

Raising up a LAMP

LAMP stands for Linux Apache MySQL PHP (mainly). It's the "solution stack" needed for most web-based applications.

Get it together

That's how I role

It's a matter of style

Getting the show on the road

Once the MediaWiki is running and configured on your LAN, and has enough content, it's time to make it available. (If you want to. If it's a local in-house Wiki, you're done!)

Poking a hole through the router

DNS

Bots and bad actors

As soon as your Wiki is on the Internet, the bots and script-kiddies will come calling.

Other options

MediaWiki is powerful and quite useful for presenting lots of organized information, but it's not the only game in town.

TiddlyWiki / TiddlyWeb

WordPress

Notes


External links