Website Local Attack: Difference between revisions

From ICO wiki
Jump to navigationJump to search
m (Lphanvan moved page User:Lphanvan to Website Local Attack)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Computer hardware
== Mediawiki Installation  ==
Jargon: CPU, RAM, ROM, HDD, SSD, PCI, PCI Express, USB 2.0, USB 3.0, VGA, HDMI, DVI, LCD, TFT, LED, OLED, AMOLED, CRT, PWM
Autor: Lauri Vosandi
Lecture recording #1
=== Mediawiki Requirement ===
Lecture recording #2 starting 12:30
Lecture slides Random access memory, permanent storage, buses, input devices, display technologies, networking
Potential exam questions:
 Different buses and their uses
Bus is a system which help to transact the date between each component in computer or between computers. It has 2 types of buses in side computer (Asus socket 7) and outside of computers (Pc card or IEEE-448)


 What are the differences between hard disk drive (HDD) and solid state drive (SSD)? [1]
[http://www.mediawiki.org/wiki/Manual:Installation_requirements http://www.mediawiki.org/wiki/Manual:Installation_requirements] <br> Basically, it is necessary to install a web server, PHP and MySQL, you need to root to install as follows:<br>
<pre>
root@kaka:~#apt-get install apache2 mysql-server php5


</pre>


 What is the purpose of Flash Translation Layer in terms of solid state drives?
=== Download  ===


  A flash translation layer is used to adapt a fully functional file system to the constraints and restrictions imposed by flash memory devices
Tee oma valik [http://www.mediawiki.org/wiki/Download/Matrix http://www.mediawiki.org/wiki/Download/Matrix] ning downloadi sobiv versioon.<br> n. Mine veebiserveri document-root -u, downloadi wgetiga, paki lahti:
<pre>
root@kaka:~# cd /var/www/
root@kaka:/var/www# wget http://download.wikimedia.org/mediawiki/1.14/mediawiki-1.14.0.tar.gz
--2009-03-13 13:08:43-- http://download.wikimedia.org/mediawiki/1.14/mediawiki-1.14.0.tar.gz
Lahendan download.wikimedia.org... 208.80.152.183
Loon ühendust serveriga download.wikimedia.org|208.80.152.183|:80... ühendus loodud.
HTTP päring saadetud, ootan vastust... 200 OK
Pikkus: 10122254 (9,7M) [application/octet-stream]
Saving to: `mediawiki-1.14.0.tar.gz.1'


 What are difference between volatile/non-volatile, RAM, ROM, EEPROM and where are they used?
100%[======================================&gt;] 10&nbsp;122&nbsp;254  2,51M/s  in 4,4s


RAM is Random Access Memory. 
2009-03-13 13:08:48 (2,18 MB/s) - `mediawiki-1.14.0.tar.gz.1' salvestatud [10122254/10122254]
ROM is Read Only Memory.
RAM is the memory available for the operating system, programs and processes to use when the computer is running. 
ROM is the memory that comes with your computer that is pre-written to hold the instructions for booting-up the computer.
RAM requires a flow of electricity to retain data (e.g. the computer powered on).
ROM will retain data without the flow of electricity (e.g. when computer is powered off).
RAM is a type of volatile memory. Data in RAM is not permanently written. When you power off your computer the data stored in RAM is deleted.
ROM is a type of non- volatile memory. Data in ROM is permanently written and is not erased when you power off your computer.
There are different types of RAM, including DRAM (Dynamic Random Access Memory) andSRAM (Static Random Access Memory).
There are different types of ROM, including PROM (programmable read-only memory) that is manufactured as blank memory (e.g. a CD-ROM) and EPROM (erasable programmable read-only memory).
There are many differences between RAM and ROM memory but there are also a couple similarities (and these are very easy to remember). Both types of memory used by a computer, and they are both required for your computer to operate properly and efficiently.


EEPROM
root@kaka:/var/www# tar -xvvf mediawiki-1.14.0.tar.gz
EEPROM , or electrically erasable programmable read only memory, is another step up from EPROM because EEPROM chips do away with some of the drawbacks. For example, EEPROM chips do not need to be removed to be rewritten. Additionally, a portion of the chip can be changed without erasing the entire chip. Furthermore, it does not require special equipment to rewrite the chip.




Volatile memory Non-volatile memory
</pre>
Requires a power source to retain information. Does not require a power source to retain information.
=== Install  ===
When power source is disconnected, information is lost or deleted. When power source is disconnected, information is not deleted.
Often used for temporary retention of data, such as with RAM, or for retention of sensitive data. Often used for long-term retention of data, such as files and folders.


[http://www.mediawiki.org/wiki/Manual:Installing_MediaWiki http://www.mediawiki.org/wiki/Manual:Installing_MediaWiki] <br> Muuda ära kataloogi nimi, muuda failide õigused:
<pre>
root@kaka:/var/www# mv mediawiki-1.14.0 wiki
root@kaka:/var/www# chown -R www-data:www-data ./wiki


 What is data retention?
</pre>
Data retention defines the policies of persistent data and records management for meeting legal and business data archival requirements;
Tekita mysql baas ning wiki jaoks eraldi kasutaja:
<pre>
www-data@kaka:~/wiki$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with&nbsp;; or \g.
Your MySQL connection id is 190
Server version: 5.0.67-0ubuntu6 (Ubuntu)


Type 'help;' or '\h' for help. Type '\c' to clear the buffer.


 What are difference between asynchronous/synchronous, dynamic/static RAM and where are they used?
mysql&gt;  create database wikidb;
 Synchronous Circuits:
Query OK, 1 row affected (0.01 sec)


These are the class of sequential circuits which are governed by a global clock signal generated by an oscillator. The state of all elements of a synchronous circuit changes only by an application of a distributed clock signal. So, this makes the state of a synchronous circuit predictable. Also, synchronous clock signals are less susceptible to noise, circuit anomalies and hence safer to design and operate. But they are limited in operation of speed by the propagation delay of the clock signal in reaching all the elements of the clock signal. The time period of a clock signal should be long enough to accommodate  longest propagation delay. Practically all the circuits today are synchronous circuits, except the part where speed of the circuit operation is crucial.
mysql&gt;  grant create, select, insert, update, delete, alter, lock tables on wikidb.* to 'wikiuser'@'localhost' identified by 'password';
Query OK, 0 rows affected (0.00 sec)


Asynchronous Circuits:
mysql&gt; exit
Bye
www-data@kaka:~/wiki$


Asyncronous circuits change state only through the inputs received by them. So, the operation is quite instantaneous since they dont have to wait for a clock pulse. They are limited by propagation delay of logic gates only. But asynchronous circuits can transition into a wrong state due to incorrect arrival time of 2 inputs. This is called a race condition. Asynchronous circuits are quite difficult to design for a reliable operation. These are used primarily in high speed systems such as Signal Processing hardware.
</pre>
Mine veebilehitsejaga äsja installeeritud wiki confi aadressile n. [http://localhost/wiki/config http://localhost/wiki/config] ning pane seal täide esmane seadistus.<br> config kataloogi tekitatakse Localsetings.php fail mille peaksid tõstma oma wiki root kataloogi.  
<pre>
www-data@kaka:~/wiki$ mv config/LocalSettings.php .


The basic difference between Static and Dynamic RAM lies mainly in structure and work principal.
</pre>
•Firstly the main difference in the structure varies due to transistor and capacitor number and setting as just three to four transistors are required for a Dynamic RAM, but six to eight MOS transistors are necessary for a Static RAM.
=== Seadistus  ===
•Secondly Dynamic RAM memory can be deleted and refreshed while running the program, but in case of Static RAM it is not possible to refresh programs.
•Data is stored as a charge in a capacitor in Dynamic RAM, where data is stored in flip flop level in Static RAM.
•For refreshing a data another capacitor is required in case of Dynamic capacitor, but no refreshing option is available in Static RAM.
•A Dynamic RAM possesses less space in the chip than a Static RAM.
•Dynamic RAM is used to create larger RAM space system, where Static RAM create speed- sensitive cache.
•Static ram is 4 times more expensive than Dynamic RAM.
•Dynamic RAM consumes less power than Static RAM.
•For accessing a data or information, Static RAM takes less time than Dynamic RAM.
•Dynamic RAM has higher storage capacity. In fact it can store 4 times than Static RAM.


Seadista mõned parameetrid LocalSettings.php failis:<br>
<pre>
$wgSitename        = "ITC wiki";
$wgEmergencyContact = "webmaster@localhost";
$wgPasswordSender = "webmaster@localhost";
$wgEmailAuthentication = true;
## Database settings
$wgDBtype          = "mysql";
$wgDBserver        = "localhost";
$wgDBname          = "wikidb";
$wgDBuser          = "wiki";
$wgDBpassword      = "*******";
$wgDefaultSkin = 'modern';
$wgEnableUploads      = true;


 What is cache? What is cache coherence?
# for maintenance put wiki read-only by uncommenting following variable #
# $wgReadOnly = 'maintenance message here';


Cache is very fast and small memory that is placed in between the CPU and the main memory.
# Whether to allow inline images hosted on external websites
cache coherence is the consistency of shared resource data that ends up stored in multiple local caches. When clients in a system maintain caches of a common memory resource, problems may arise with inconsistent data, which is particularly the case with CPUs in a multiprocessing system.
$wgAllowExternalImages = true;


 What are differences between resistive and capacitive touchscreen? [2]
# if false, allow uploading files with any extension
$wgCheckFileExtensions = false;


http://vietnamnet.vn/vn/cong-nghe-thong-tin-vien-thong/83571/cam-ung-dien-tro-va-dien-dung-khac-nhau-the-nao.html
# if false, does not do mime check on uploaded files
 Explain how computer mouse works? History of computer mouse.
$wgMimeTypeFile = false;


Ball mouse and optical mouse
# define wikilogo and icon
How does a mouse like this actually work? As you move it across your desk, the ball rolls under its own weight and pushes against two plastic rollers linked to thin wheels (numbered 6 and 7 in the photo). One of the wheels detects movements in an up-and-down direction (like the y-axis on graph/chart paper); the other detects side-to-side movements (like the x-axis on graph paper).
#$wgLogo        = "$wgScriptPath/skins/common/images/wikilogo.png";
#$wgFavicon = "$wgScriptPath/skins/common/images/favicon.ico";
How do the wheels measure your hand movements? As you move the mouse, the ball moves the rollers that turn one or both of the wheels. If you move the mouse straight up, only the y-axis wheel turns; if you move to the right, only the x-axis wheel turns. And if you move the mouse at an angle, the ball turns both wheels at once. Now here's the clever bit. Each wheel is made up of plastic spokes and, as it turns, the spokes repeatedly break a light beam. The more the wheel turns, the more times the beam is broken. So counting the number of times the beam is broken is a way of precisely measuring how far the wheel has turned and how far you've pushed the mouse. The counting and measuring is done by the microchip inside the mouse, which sends details down the cable to your computer. Software in your computer moves the cursor on your screen by a corresponding amount.
An optical mouse works in a completely different way. It shines a bright light down onto your desk from an LED (light-emitting diode) mounted on the bottom of the mouse. The light bounces straight back up off the desk into a photocell (photoelectric cell), also mounted under the mouse, a short distance from the LED. The photocell has a lens in front of it that magnifies the reflected light, so the mouse can respond more precisely to your hand movements. As you push the mouse around your desk, the pattern of reflected light changes, and the chip inside the mouse uses this to figure out how you're moving your hand.
The mouse was invented by Douglas Engelbart in 1964 and consisted of a wooden shell, circuit board and two metal wheels that came into contact with the surface it was being used on.


 Explain how computer keyboard works? HowStuffworks article Explain that Stuff article Keyboard History
# do not show &amp; allow editing anything if user is not logged in
http://www.explainthatstuff.com/computerkeyboards.html
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['edit'] = false;


Keyboards and typing technology have come a long way over the past couple centuries. The first typing devices were designed and patented in the 1700s while the first manufactured typing devices came about in the 1870s. These machines featured “blind typing” technology, where characters were printed on upside-down pages that remained unseen until completion. Since then, we have seen several updates in design, layout, technology, and function that are more efficient and user-friendly.  
# whitelists  - pages what can be seen by people who are not logged in
$wgWhitelistRead = array("Main Page", "Special:Userlogin", "-", "MediaWiki:Monobook.css");


 Explain how cathode ray tube (CRT) based screen technology works and name pros/cons. [3]
# do not allow account creating
$wgGroupPermissions['*']['createaccount'] = false;


Sort for cathode-ray tubes, CRT monitors were the only choice consumers had for monitor technology for many years. Cathode ray tube (CRT) technology has been in use for more than 100 years, and is found in most televisions and computer monitors. A CRT works by moving an electron beam back and forth across the back of the screen. Each time the beam makes a pass across the screen, it lights up phosphor dots on the inside of the glass tube, thereby illuminating the active portions of the screen. By drawing many such lines from the top to the bottom of the screen, it creates an entire screen of images.
</pre>
== Extensionite install  ==


Resolution on a CRT is flexible and a newer model will provide you with viewing resolutions of up to 1600 by 1200 and higher,
=== LDAP auth extension  ===
On a CRT the sharpness of the picture can be blemished by soft edges or a flawed focus.
A CRT monitor can be viewed from almost any angle
Some users of a CRT may notice a bit of an annoying flicker, which is an inherent trait based on a CRTs physical components. Today's graphics cards, however, can provide a high refresh rate signal to the CRT to get rid of this otherwise annoying problem..
Screen (viewable) Size
Most people today tend to look at a 17-inch CRT or bigger monitor. When you purchase a 17-inch CRT monitor, you usually get 16.1 inches or a bit more of actual viewing area, depending on the brand and manufacturer of a specific CRT.
Physical Size
There is no denying that an LCD wins in terms of its physical size and the space it needs. CRT monitors are big, bulky and heavy. They are not a good choice if you're working with limited desk space, or need to move the monitor around (for some odd reason) between computers


 Explain how liquid crystal displays (LCD) work and name pros/cons. [4]
[http://www.mediawiki.org/wiki/LDAP http://www.mediawiki.org/wiki/LDAP]  


Short for liquid crystal display, LCD technology can be found in digital watches and computer monitors. LCD displays use two sheets of polarizing material with a liquid crystal solution between them. An electric current passed through the liquid causes the crystals to align so that light cannot pass through them. Each crystal, therefore, is like a shutter, either allowing light to pass through or blocking the light. Color LCD displays use two basic techniques for producing color: Passive matrix is the less expensive of the two technologies. The other technology, calledthin film transistor (TFT) or active-matrix, produces color images that are as sharp as traditional CRT displays, but the technology is expensive.
==== Eeldused  ====
resolution


an LCD the resolution is fixed within each monitor (called a native resolution). The resolution on an LCD can be changed, but if you're running it at a resolution other than its native resolution you will notice a drop in performance or quality.
Vaja installida php5 LDAP support:
Both types of monitors (newer models) provide bright and vibrant color display. However, LCDs cannot display the maximum color range that a CRT can. In terms of image sharpness, when an LCD is running at its native resolution the picture quality is perfectly sharp. On a CRT the sharpness of the picture can be blemished by soft edges or a flawed focus.
<pre>root@kaka:~#apt-get install php5-ldap
A CRT monitor can be viewed from almost any angle, but with an LCD this is often a problem. When you use an LCD, your view changes as you move different angles and distances away from the monitor. At some odd angles, you may notice the picture fade, and possibly look as if it will disappear from view.
Refresh Rate


Some users of a CRT may notice a bit of an annoying flicker, which is an inherent trait based on a CRTs physical components. Today's graphics cards, however, can provide a high refresh rate signal to the CRT to get rid of this otherwise annoying problem. LCDs are flicker-free and as such the refresh rate isn't an important issue with LCDs.
</pre>
Dot Pitch
==== Download &amp; install  ====


Dot pitch refers to the space between the pixels that make up the images on your screen, and is measured in millimeters. The less space between pixels, the better the image quality. On either type of monitor, smaller dot pitch is better and you're going to want to look at something in the 0.26 mm dot pitch or smaller range.
[http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/LdapAuthentication/LdapAuthentication.php?view=co http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/LdapAuthentication/LdapAuthentication.php?view=co] <br> Vaja downloadida LdapAuthentication.php fail, kuna too asub SVN-is, siis on selleks mitu eri varianti.<br> Lihtsaim on see link veebibrowseris avada ning saadud fail maha salvestada<br> Kopeeri allalaetud fail extensions kataloogi:
Screen (viewable) Size
<pre>www-data@kaka:/var/www# cp /home/argoe/Töölaud/LdapAuthentication.php ./wiki/extensions/


Most people today tend to look at a 17-inch CRT or bigger monitor. When you purchase a 17-inch CRT monitor, you usually get 16.1 inches or a bit more of actual viewing area, depending on the brand and manufacturer of a specific CRT. The difference between the "monitor size" and the "view area" is due to the large bulky frame of a CRT. If you purchase a 17" LCD monitor, you actually get a full 17" viewable area, or very close to a 17".
</pre>
==== Seadistus  ====


Physical Size
LocalSettings.php faili lisa pisut infi oma LDAPi kohta:
<pre>###### LDAP Authentication ######
require_once 'extensions/LdapAuthentication.php';
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array(
  'itcollege'
);
$wgLDAPServerNames = array(
  'itcollege' =&gt; 'earl.itcollege.ee'
);
$wgLDAPEncryptionType = array(
  'itcollege' =&gt; 'clear'
);
$wgLDAPSearchStrings = array(
  'itcollege' =&gt; 'uid=USER-NAME,ou=People,dc=itcollege,dc=ee'
);
//Don't automatically create an account for a user if the account exists in LDAP
//but not in MediaWiki.
//Default: false.
#$wgLDAPDisableAutoCreate = array(
#"testADdomain"=&gt;true
#);
//Allow the use of the local database as well as the LDAP database.
//wiki admin user is in local DB!
$wgLDAPUseLocal = true;


There is no denying that an LCD wins in terms of its physical size and the space it needs. CRT monitors are big, bulky and heavy. They are not a good choice if you're working with limited desk space, or need to move the monitor around (for some odd reason) between computers. An LCD on the other hand is small, compact and lightweight. LCDs are thin, take up far less space and are easy to move around. An average 17-inch CRT monitor could be upwards of 40 pounds, while a 17&-inch LCD would weigh in at around 15 pounds.
</pre>
Price
=== FreeMind extension  ===


As an individual one-time purchase an LCD monitor is going to be more expensive. Throughout a lifetime, however, LCDs are cheaper as they are known to have a longer lifespan and also a lower power consumption. The cost of both technologies have come down over the past few years, and LCDs are reaching a point where smaller monitors are within many consumers' price range. You will pay more for a 17" LCD compared to a 17" CRT, but since the CRT's actual viewing size is smaller, it does bring the question of price back into proportion. Today, fewer CRT monitors are manufactured as the price on LCDs lowers and they become mainstream.
[http://www.mediawiki.org/wiki/Extension:FreeMind http://www.mediawiki.org/wiki/Extension:FreeMind]


 Name screen technologies making use of thin film transistor (TFT) technology? [5]
==== Eeldused  ====


A thin-film transistor (TFT) is a special kind of field-effect transistor made by depositing thin films of an active semiconductor layer as well as the dielectric layer and metallic contacts over a supporting (but non-conducting) substrate. A common substrate is glass, because the primary application of TFTs is in liquid-crystal displays. This differs from the conventional transistor, where the semiconductor material typically is the substrate, such as a silicon wafer.
Nõrk turva on aksepteeritav - mm failide uploadimiseks tuleb keelata wiki skriptide kontroll ning see võib viia igasugu pahade asjadeni nagu javaskripti injection jne.<br> Olete valmis muutma wiki koodi


 Name uses for light polarization filters? [6] [7]
==== Download &amp; install  ====
Camera, tv, photography….
<pre>
 What are the benefits of twisted pair cabling and differential signalling?
www-data@kaka:/var/www/wiki/extensions# wget http://freemind.sourceforge.net/dimitry_mediawiki_freemind_extension/MediawikiExtension.zip
twisted pair cabling
--2009-03-13 13:47:05--  http://freemind.sourceforge.net/dimitry_mediawiki_freemind_extension/MediawikiExtension.zip
 Electrical noise going into or coming from the cable can be prevented.[10]
Lahendan freemind.sourceforge.net... 216.34.181.96
 Cross-talk is minimized
Loon ühendust serveriga freemind.sourceforge.net|216.34.181.96|:80... ühendus loodud.
differential signalling
HTTP päring saadetud, ootan vastust... 200 OK
The technique minimizes electronic crosstalk and electromagnetic interference, both noise emission and noise acceptance, and can achieve a constant or known characteristic impedance, allowing impedance matching techniques important in a high-speed signal transmission line or high qualitybalanced line and balanced circuit audio signal path.
Pikkus: 6242 (6,1K) [application/zip]
 Active matrix vs passive matrix in display technology
Saving to: `MediawikiExtension.zip'
 Active-matrix display :


An active-matrix display, also known as a TFT (thin-film transistor) display, uses a separate transistor to apply charges to each liquid crystal cell and thus displays high-quality color that is viewable from all angles.
100%[==============================================================&gt;] 6&nbsp;242      --.-K/s  in 0,1s


Passive-matrix display :
2009-03-13 13:47:07 (45,1 KB/s) - `MediawikiExtension.zip' salvestatud [6242/6242]
</pre>
Lae alla järgmised failid:<br>
http://sourceforge.net/project/downloading.php?group_id=7118&use_mirror=easynews&filename=freemind-browser-0_7_1.zip&36406726 <br>
http://www.efectokiwano.net/mm/freeMindFlashBrowser.zip <br>
Paki failid lahti:
<pre>
www-data@kaka:/var/www/wiki/extensions# unzip MediawikiExtension.zip
Archive:  MediawikiExtension.zip
  inflating: FreeMind.php
replace README? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
  inflating: freemind/appletwindow.php
  inflating: freemind/appletwindowFunction.php
  inflating: freemind/flashwindow.php
  inflating: freemind/flashwindowFunction.php
www-data@kaka:~/wiki/extensions$ rm MediawikiExtension.zip
www-data@kaka:/var/www/wiki/extensions# cd freemind
www-data@kaka:/var/www/wiki/extensions/freemind# cp /home/argoe/Töölaud/free* .
www-data@kaka:/var/www/wiki/extensions/freemind# unzip freemind-browser-0_7_1.zip
Archive:  freemind-browser-0_7_1.zip
  inflating: freemindbrowser.jar
  inflating: freemindbrowser.html
www-data@kaka:/var/www/wiki/extensions/freemind# unzip freeMindFlashBrowser.zip
Archive:  freeMindFlashBrowser.zip
  inflating: bola.jpg
  inflating: bola4.gif
extracting: estrella.png
  inflating: flashfreemind.css
  inflating: flashobject.js
  inflating: freeMindFlashBrowser.mm
  inflating: freeMindFlashBrowser.mm.bak
  inflating: mindmaps.html
  inflating: readme.txt
  inflating: visorFreemind.swf
www-data@kaka:~/wiki/extensions/freemind$ rm *.zip
</pre>


A passive-matrix display uses fewer transistors, requires less power, and is less expensive than an active-matrix display. The color on a passive-matrix display often is not as bright as an active-matrix display. Users view images on a passive-matrix display best when working directly in front of it.
==== Seadistus  ====
 
LocalSettings.php faili lisa järgmine rida:
<pre>include('extensions/FreeMind.php');
 
</pre>
! Selleks, et mm tüüpi faile uploadida, on vaja keelata skriptide kontroll uploadidtud failides Juhendid:<br>
http://freemind.sourceforge.net/wiki/index.php/Talk:Embedded_Mind_Maps#This_file_contains_HTML_or_script_code_that_may_be_erroneously_be_interpreted_by_a_web_browser
<br>
http://www.mediawiki.org/wiki/Allowing_HTML_Uploads <br>
 
==== Kasutus ja näide  ====
 
! Freemind töötab vaid wikisse '''uploaditud''' failidega <br>
<pre>&lt;mm&gt;[[Osadmin2009.mm]]&lt;/mm&gt;
 
</pre>
 
=== WebsiteFrame extension  ===
 
[http://www.mediawiki.org/wiki/Extension:Website_in_iFrame http://www.mediawiki.org/wiki/Extension:Website_in_iFrame]
 
==== Eeldused  ====
 
Nõrk turva on aksepteeritav - extansion loob võimaluse cross-site skriptimiseks [http://en.wikipedia.org/wiki/Cross-site_scripting http://en.wikipedia.org/wiki/Cross-site_scripting]
 
==== Download &amp; install  ====
 
[http://www.mediawiki.org/wiki/Extension:Website_in_iFrame http://www.mediawiki.org/wiki/Extension:Website_in_iFrame] lehel on kood üleval. Salvesta see extensions kataloogi faili websiteFrame.php
 
==== Seadistus  ====
 
LocalSettings.php faili lisa järgmine rida:
<pre>include("extensions/websiteFrame.php");
 
</pre>
==== Kasutus ja näide  ====
 
Tuleb kasutada täielikku URLi a'la '''[http://www.yourWebsite.com http://www.yourWebsite.com]''' 
<pre>&lt;websiteFrame&gt;
website=[website URL]
name=[string]
align=[top,middle,bottom,left,right]
height=[number]
width=[number,percentage]
border=[number]
scroll=[yes,no,auto]
longdescription=[long description URI]
&lt;/websiteFrame&gt;
 
</pre>
=== Groupportal extension  ===
 
[http://www.mediawiki.org/wiki/Extension:GroupPortal http://www.mediawiki.org/wiki/Extension:GroupPortal]
 
==== Eeldused  ====
 
admin viitsib tekitada mõne kasutajagrupi koos õigustega, vaja tekitada ka mitu avalehte.<br> Kasutaja, kes on eraldi esilehega grupis, ei saa enam wiki originaal esilehte muuta.
 
==== Download &amp; install  ====
<pre>www-data@kaka:~/wiki$ cd extensions/
www-data@kaka:~/wiki/extensions$ wget http://upload.wikimedia.org/ext-dist/GroupPortal-MW1.14-r30722.tar.gz
--2009-03-14 11:38:17--  http://upload.wikimedia.org/ext-dist/GroupPortal-MW1.14-r30722.tar.gz
Lahendan upload.wikimedia.org... 91.198.174.3
Loon ühendust serveriga upload.wikimedia.org|91.198.174.3|:80... ühendus loodud.
HTTP päring saadetud, ootan vastust... 200 OK
Pikkus: 803 [application/x-tar]
Saving to: `GroupPortal-MW1.14-r30722.tar.gz'
 
100%[================================================&gt;] 803        --.-K/s  in 0,002s
 
2009-03-14 11:38:17 (426 KB/s) - `GroupPortal-MW1.14-r30722.tar.gz' salvestatud [803/803]
 
www-data@kaka:~/wiki/extensions$ tar -xvf GroupPortal-MW1.14-r30722.tar.gz
GroupPortal/
GroupPortal/GroupPortal.php
www-data@kaka:~/wiki/extensions$ rm GroupPortal-MW1.14-r30722.tar.gz
www-data@kaka:~/wiki/extensions$
 
</pre>
==== Seadistus  ====
 
LocalSettings.php faili lisa järgmine rida:
<pre>require_once( "extensions/GroupPortal/GroupPortal.php" );
 
</pre>
==== Kasutus ja näide  ====
 
Tekitage kasutajagrupp [http://www.mediawiki.org/wiki/Manual:User_rights http://www.mediawiki.org/wiki/Manual:User_rights] <br> n. lisades järgneva rea LocalSettings.php faili tekitate grupi kala ning annate neile kõikide lehtede lugemisõiguse:<br>
<pre>$wgGroupPermissions['kala']['read'] = true;
 
</pre>
!Kui gruppi on lisatud mõni isik ning kui grupi nime muuta või kustutada, jääb ta kuhugi mysql baasi ikkagi alles ning <br> seda listitakse jätkuvalt mõningatel erilehtedel. Parandada saab otse baasist.<br> <br> Lisa soovitud kasutajad soovitud gruppi: [[Eri:UserRights]]<br> <br> Tekitage [[MediaWiki:Groupportal]] leht ning lisage sinna gruppide ja esilehtede mapping.<br> Näiteks:
<pre>kala|freemind
sysop|Sysop Home
*|Portals
RandomGroup|Random Home
 
</pre>
=== GraphViz extension  ===
 
[http://www.mediawiki.org/wiki/Extension:GraphViz http://www.mediawiki.org/wiki/Extension:GraphViz]
 
==== Eeldused  ====
 
Vaja installeerida graphviz pakk:<br> root@kaka:~#apt-get install graphviz
 
==== Download &amp; install  ====
<pre>www-data@kaka:~/wiki$ cd extensions/
www-data@kaka:~/wiki/extensions$ wget http://mwextensions.cvs.sourceforge.net/*checkout*/mwextensions/mediawikiextensions/Graphviz.php
Hoiatus: HTTP ei toeta jokkereid.
--2009-03-14 12:18:27--  http://mwextensions.cvs.sourceforge.net/*checkout*/mwextensions/mediawikiextensions/Graphviz.php
Lahendan mwextensions.cvs.sourceforge.net... 216.34.181.108
Loon ühendust serveriga mwextensions.cvs.sourceforge.net|216.34.181.108|:80... ühendus loodud.
HTTP päring saadetud, ootan vastust... 200 OK
Pikkus: määramata [text/plain]
Saving to: `Graphviz.php'
 
    [ &lt;=&gt;                                                                                                                                                        ] 2&nbsp;322      --.-K/s  in 0,005s
 
2009-03-14 12:18:27 (450 KB/s) - `Graphviz.php' salvestatud [2322]
 
</pre>
==== Seadistus  ====
 
LocalSettings.php faili lisa järgmised read ning vaata, et dot asukoht oleks süsteemis sama.
<pre>include("extensions/Graphviz.php");
$wgGraphVizSettings-&gt;dotCommand = "/usr/bin/dot";
 
</pre>
==== Kasutus ja näide  ====
 
Palju näiteid on veebis [http://www.graphviz.org/Gallery.php http://www.graphviz.org/Gallery.php] <br>
<pre>&lt;graphviz renderer='neato' caption='Hello Neato'&gt;
graph G {
  run -- intr;
  intr -- runbl;
  runbl -- run;
  run -- kernel;
  kernel -- zombie;
  kernel -- sleep;
  kernel -- runmem;
  sleep -- swap;
  swap -- runswap;
  runswap -- new;
  runswap -- runmem;
  new -- runmem;
  sleep -- runmem;
}
&lt;/graphviz&gt;
 
</pre>
=== PDF Export extension  ===
 
[http://www.mediawiki.org/wiki/Extension:Pdf_Export http://www.mediawiki.org/wiki/Extension:Pdf_Export]
 
==== Eeldused  ====
 
Vaja installeerida htmldoc pakk + pakid millest ta sõltub:<br>
<pre>root@kaka:~# apt-get install htmldoc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  htmldoc-common libfltk1.1
The following NEW packages will be installed:
  htmldoc htmldoc-common libfltk1.1
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 5855kB of archives.
After this operation, 10,1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ee.archive.ubuntu.com intrepid/main htmldoc-common 1.8.27-3 [5192kB]
Get:2 http://ee.archive.ubuntu.com intrepid/main libfltk1.1 1.1.9-4 [460kB]
Get:3 http://ee.archive.ubuntu.com intrepid/main htmldoc 1.8.27-3 [202kB]
Fetched 5855kB in 24s (238kB/s)
Varem valimata paki htmldoc-common valimine.
(Andmebaasi lugemine ... hetkel on paigaldatud 109296 faili ja kataloogi.)
Paki htmldoc-common lahtipakkimine (failist .../htmldoc-common_1.8.27-3_all.deb) ...
Varem valimata paki libfltk1.1 valimine.
Paki libfltk1.1 lahtipakkimine (failist .../libfltk1.1_1.1.9-4_i386.deb) ...
Varem valimata paki htmldoc valimine.
Paki htmldoc lahtipakkimine (failist .../htmldoc_1.8.27-3_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for menu ...
Paki htmldoc-common (1.8.27-3) paikasättimine ...
Paki libfltk1.1 (1.1.9-4) paikasättimine ...
 
Paki htmldoc (1.8.27-3) paikasättimine ...
 
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Processing triggers for menu ...
 
</pre>
==== Download &amp; install  ====
 
4 php faili kood on saadaval [http://www.mediawiki.org/wiki/Extension:Pdf_Export/Source_Code http://www.mediawiki.org/wiki/Extension:Pdf_Export/Source_Code] <br> tee uus kataloog ning salvesta need sinna.
<pre>www-data@kaka:~/wiki$ cd extensions/
www-data@kaka:~/wiki/extensions$ mkdir PdfExport
 
</pre>
==== Seadistus  ====
 
LocalSettings.php faili lisa järgmine rida:
<pre>require_once("extensions/PdfExport/PdfExport.php");
 
</pre>
==== Kasutus  ====
 
Tööriistakastis on link "'''Print as PDF'''", sellel klikkides prinditakse hetkel aktiivne wiki leht PDF faili.<br> '''! Fail laetakse alla kui index.php, nime ja laiendi peab käsitsi ümber nimetama!'''
 
=== FCKeditor extension  ===
 
[http://www.mediawiki.org/wiki/Extension:FCKeditor_(by_FCKeditor_and_Wikia) http://www.mediawiki.org/wiki/Extension:FCKeditor_(by_FCKeditor_and_Wikia)] <br> [http://mediawiki.fckeditor.net/index.php/FCKeditor_integration_guide http://mediawiki.fckeditor.net/index.php/FCKeditor_integration_guide]
 
==== Eeldused  ====
Peab arvestama, et FCK editor mudib ära olemasolevad artiklid, kui need uuesti salvestada ning see ei pruugi alati kõige paremini lõppeda!<br>
Lingid tehakse ringi, reavahetusi kustutatakse jne. Ei ole mõistlik paigaldada siis, kui kavatsetakse edaspidi veel käsitsi artikleid edida.
 
==== Download &amp; install  ====
 
tiri alla 1 fail veebist, [http://rs426.rapidshare.com/files/205304883/FCKeditor.zip http://rs426.rapidshare.com/files/205304883/FCKeditor.zip] <br> kopi see extensions kataloogi ning paki lahti.
<pre>www-data@kaka:~/wiki$ cd extensions/
www-data@kaka:~/wiki/extensions/$ cp /home/argoe/Töölaud/FCKeditor.zip .                                                                                                                     
www-data@kaka:~/wiki/extensions/$ unzip FCKeditor.zip 
www-data@kaka:~/wiki/extensions$ rm FCKeditor.zip
 
</pre>
==== Seadistus  ====
 
LocalSettings.php faili lisa järgmine rida:
<pre>
require_once( "$IP/extensions/FCKeditor/FCKeditor.php" );
$wgUseAjax = true;
</pre>
==== Kasutus  ====
 
Voila - ongi kohe eriti fancy word-lookalike menüü olemas! õnneks või õnnetuseks on menüü vasakul ülemises nurgas olemas nupp kirjaga "wikitext"&nbsp;:D
 
 
[[Category:IT infrastruktuuri teenused]]

Latest revision as of 18:52, 15 September 2016

Mediawiki Installation

Autor: Lauri Vosandi

Mediawiki Requirement

http://www.mediawiki.org/wiki/Manual:Installation_requirements
Basically, it is necessary to install a web server, PHP and MySQL, you need to root to install as follows:

root@kaka:~#apt-get install apache2 mysql-server php5

Download

Tee oma valik http://www.mediawiki.org/wiki/Download/Matrix ning downloadi sobiv versioon.
n. Mine veebiserveri document-root -u, downloadi wgetiga, paki lahti:

root@kaka:~# cd /var/www/
root@kaka:/var/www# wget http://download.wikimedia.org/mediawiki/1.14/mediawiki-1.14.0.tar.gz
--2009-03-13 13:08:43--  http://download.wikimedia.org/mediawiki/1.14/mediawiki-1.14.0.tar.gz
Lahendan download.wikimedia.org... 208.80.152.183
Loon ühendust serveriga download.wikimedia.org|208.80.152.183|:80... ühendus loodud.
HTTP päring saadetud, ootan vastust... 200 OK
Pikkus: 10122254 (9,7M) [application/octet-stream]
Saving to: `mediawiki-1.14.0.tar.gz.1'

100%[======================================>] 10 122 254  2,51M/s   in 4,4s

2009-03-13 13:08:48 (2,18 MB/s) - `mediawiki-1.14.0.tar.gz.1' salvestatud [10122254/10122254]

root@kaka:/var/www# tar -xvvf mediawiki-1.14.0.tar.gz


Install

http://www.mediawiki.org/wiki/Manual:Installing_MediaWiki
Muuda ära kataloogi nimi, muuda failide õigused:

root@kaka:/var/www# mv mediawiki-1.14.0 wiki
root@kaka:/var/www# chown -R www-data:www-data ./wiki

Tekita mysql baas ning wiki jaoks eraldi kasutaja:

www-data@kaka:~/wiki$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 190
Server version: 5.0.67-0ubuntu6 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>  create database wikidb;
Query OK, 1 row affected (0.01 sec)

mysql>  grant create, select, insert, update, delete, alter, lock tables on wikidb.* to 'wikiuser'@'localhost' identified by 'password';
Query OK, 0 rows affected (0.00 sec)

mysql> exit
Bye
www-data@kaka:~/wiki$

Mine veebilehitsejaga äsja installeeritud wiki confi aadressile n. http://localhost/wiki/config ning pane seal täide esmane seadistus.
config kataloogi tekitatakse Localsetings.php fail mille peaksid tõstma oma wiki root kataloogi.

www-data@kaka:~/wiki$ mv config/LocalSettings.php .

Seadistus

Seadista mõned parameetrid LocalSettings.php failis:

$wgSitename         = "ITC wiki";
$wgEmergencyContact = "webmaster@localhost";
$wgPasswordSender = "webmaster@localhost";
$wgEmailAuthentication = true;
## Database settings
$wgDBtype           = "mysql";
$wgDBserver         = "localhost";
$wgDBname           = "wikidb";
$wgDBuser           = "wiki";
$wgDBpassword       = "*******";
$wgDefaultSkin = 'modern';
$wgEnableUploads       = true;

# for maintenance put wiki read-only by uncommenting following variable #
# $wgReadOnly = 'maintenance message here';

# Whether to allow inline images hosted on external websites
$wgAllowExternalImages = true;

# if false, allow uploading files with any extension
$wgCheckFileExtensions = false;

# if false, does not do mime check on uploaded files
$wgMimeTypeFile = false;

# define wikilogo and icon
#$wgLogo         = "$wgScriptPath/skins/common/images/wikilogo.png";
#$wgFavicon = "$wgScriptPath/skins/common/images/favicon.ico";

# do not show & allow editing anything if user is not logged in
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['edit'] = false;

# whitelists  - pages what can be seen by people who are not logged in
$wgWhitelistRead = array("Main Page", "Special:Userlogin", "-", "MediaWiki:Monobook.css");

# do not allow account creating
$wgGroupPermissions['*']['createaccount'] = false;

Extensionite install

LDAP auth extension

http://www.mediawiki.org/wiki/LDAP

Eeldused

Vaja installida php5 LDAP support:

root@kaka:~#apt-get install php5-ldap

Download & install

http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/LdapAuthentication/LdapAuthentication.php?view=co
Vaja downloadida LdapAuthentication.php fail, kuna too asub SVN-is, siis on selleks mitu eri varianti.
Lihtsaim on see link veebibrowseris avada ning saadud fail maha salvestada
Kopeeri allalaetud fail extensions kataloogi:

www-data@kaka:/var/www# cp /home/argoe/Töölaud/LdapAuthentication.php ./wiki/extensions/

Seadistus

LocalSettings.php faili lisa pisut infi oma LDAPi kohta:

###### LDAP Authentication ######
require_once 'extensions/LdapAuthentication.php';
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array(
  'itcollege'
);
$wgLDAPServerNames = array(
  'itcollege' => 'earl.itcollege.ee'
);
$wgLDAPEncryptionType = array(
  'itcollege' => 'clear'
);
$wgLDAPSearchStrings = array(
  'itcollege' => 'uid=USER-NAME,ou=People,dc=itcollege,dc=ee'
);
//Don't automatically create an account for a user if the account exists in LDAP
//but not in MediaWiki.
//Default: false.
#$wgLDAPDisableAutoCreate = array(
#"testADdomain"=>true
#);
//Allow the use of the local database as well as the LDAP database.
//wiki admin user is in local DB!
$wgLDAPUseLocal = true;

FreeMind extension

http://www.mediawiki.org/wiki/Extension:FreeMind

Eeldused

Nõrk turva on aksepteeritav - mm failide uploadimiseks tuleb keelata wiki skriptide kontroll ning see võib viia igasugu pahade asjadeni nagu javaskripti injection jne.
Olete valmis muutma wiki koodi

Download & install

www-data@kaka:/var/www/wiki/extensions# wget http://freemind.sourceforge.net/dimitry_mediawiki_freemind_extension/MediawikiExtension.zip
--2009-03-13 13:47:05--  http://freemind.sourceforge.net/dimitry_mediawiki_freemind_extension/MediawikiExtension.zip
Lahendan freemind.sourceforge.net... 216.34.181.96
Loon ühendust serveriga freemind.sourceforge.net|216.34.181.96|:80... ühendus loodud.
HTTP päring saadetud, ootan vastust... 200 OK
Pikkus: 6242 (6,1K) [application/zip]
Saving to: `MediawikiExtension.zip'

100%[==============================================================>] 6 242       --.-K/s   in 0,1s

2009-03-13 13:47:07 (45,1 KB/s) - `MediawikiExtension.zip' salvestatud [6242/6242]

Lae alla järgmised failid:
http://sourceforge.net/project/downloading.php?group_id=7118&use_mirror=easynews&filename=freemind-browser-0_7_1.zip&36406726
http://www.efectokiwano.net/mm/freeMindFlashBrowser.zip
Paki failid lahti:

www-data@kaka:/var/www/wiki/extensions# unzip MediawikiExtension.zip
Archive:  MediawikiExtension.zip
  inflating: FreeMind.php
replace README? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
  inflating: freemind/appletwindow.php
  inflating: freemind/appletwindowFunction.php
  inflating: freemind/flashwindow.php
  inflating: freemind/flashwindowFunction.php
www-data@kaka:~/wiki/extensions$ rm MediawikiExtension.zip
www-data@kaka:/var/www/wiki/extensions# cd freemind
www-data@kaka:/var/www/wiki/extensions/freemind# cp /home/argoe/Töölaud/free* .
www-data@kaka:/var/www/wiki/extensions/freemind# unzip freemind-browser-0_7_1.zip
Archive:  freemind-browser-0_7_1.zip
  inflating: freemindbrowser.jar
  inflating: freemindbrowser.html
www-data@kaka:/var/www/wiki/extensions/freemind# unzip freeMindFlashBrowser.zip
Archive:  freeMindFlashBrowser.zip
  inflating: bola.jpg
  inflating: bola4.gif
 extracting: estrella.png
  inflating: flashfreemind.css
  inflating: flashobject.js
  inflating: freeMindFlashBrowser.mm
  inflating: freeMindFlashBrowser.mm.bak
  inflating: mindmaps.html
  inflating: readme.txt
  inflating: visorFreemind.swf
www-data@kaka:~/wiki/extensions/freemind$ rm *.zip

Seadistus

LocalSettings.php faili lisa järgmine rida:

include('extensions/FreeMind.php');

! Selleks, et mm tüüpi faile uploadida, on vaja keelata skriptide kontroll uploadidtud failides Juhendid:
http://freemind.sourceforge.net/wiki/index.php/Talk:Embedded_Mind_Maps#This_file_contains_HTML_or_script_code_that_may_be_erroneously_be_interpreted_by_a_web_browser
http://www.mediawiki.org/wiki/Allowing_HTML_Uploads

Kasutus ja näide

! Freemind töötab vaid wikisse uploaditud failidega

<mm>[[Osadmin2009.mm]]</mm>

WebsiteFrame extension

http://www.mediawiki.org/wiki/Extension:Website_in_iFrame

Eeldused

Nõrk turva on aksepteeritav - extansion loob võimaluse cross-site skriptimiseks http://en.wikipedia.org/wiki/Cross-site_scripting

Download & install

http://www.mediawiki.org/wiki/Extension:Website_in_iFrame lehel on kood üleval. Salvesta see extensions kataloogi faili websiteFrame.php

Seadistus

LocalSettings.php faili lisa järgmine rida:

include("extensions/websiteFrame.php");

Kasutus ja näide

Tuleb kasutada täielikku URLi a'la http://www.yourWebsite.com

<websiteFrame>
website=[website URL]
name=[string]
align=[top,middle,bottom,left,right]
height=[number]
width=[number,percentage]
border=[number]
scroll=[yes,no,auto]
longdescription=[long description URI]
</websiteFrame>

Groupportal extension

http://www.mediawiki.org/wiki/Extension:GroupPortal

Eeldused

admin viitsib tekitada mõne kasutajagrupi koos õigustega, vaja tekitada ka mitu avalehte.
Kasutaja, kes on eraldi esilehega grupis, ei saa enam wiki originaal esilehte muuta.

Download & install

www-data@kaka:~/wiki$ cd extensions/
www-data@kaka:~/wiki/extensions$ wget http://upload.wikimedia.org/ext-dist/GroupPortal-MW1.14-r30722.tar.gz
--2009-03-14 11:38:17--  http://upload.wikimedia.org/ext-dist/GroupPortal-MW1.14-r30722.tar.gz
Lahendan upload.wikimedia.org... 91.198.174.3
Loon ühendust serveriga upload.wikimedia.org|91.198.174.3|:80... ühendus loodud.
HTTP päring saadetud, ootan vastust... 200 OK
Pikkus: 803 [application/x-tar]
Saving to: `GroupPortal-MW1.14-r30722.tar.gz'

100%[================================================>] 803         --.-K/s   in 0,002s

2009-03-14 11:38:17 (426 KB/s) - `GroupPortal-MW1.14-r30722.tar.gz' salvestatud [803/803]

www-data@kaka:~/wiki/extensions$ tar -xvf GroupPortal-MW1.14-r30722.tar.gz
GroupPortal/
GroupPortal/GroupPortal.php
www-data@kaka:~/wiki/extensions$ rm GroupPortal-MW1.14-r30722.tar.gz
www-data@kaka:~/wiki/extensions$

Seadistus

LocalSettings.php faili lisa järgmine rida:

require_once( "extensions/GroupPortal/GroupPortal.php" );

Kasutus ja näide

Tekitage kasutajagrupp http://www.mediawiki.org/wiki/Manual:User_rights
n. lisades järgneva rea LocalSettings.php faili tekitate grupi kala ning annate neile kõikide lehtede lugemisõiguse:

$wgGroupPermissions['kala']['read'] = true;

!Kui gruppi on lisatud mõni isik ning kui grupi nime muuta või kustutada, jääb ta kuhugi mysql baasi ikkagi alles ning
seda listitakse jätkuvalt mõningatel erilehtedel. Parandada saab otse baasist.

Lisa soovitud kasutajad soovitud gruppi: Eri:UserRights

Tekitage MediaWiki:Groupportal leht ning lisage sinna gruppide ja esilehtede mapping.
Näiteks:

kala|freemind 
sysop|Sysop Home
*|Portals
RandomGroup|Random Home

GraphViz extension

http://www.mediawiki.org/wiki/Extension:GraphViz

Eeldused

Vaja installeerida graphviz pakk:
root@kaka:~#apt-get install graphviz

Download & install

www-data@kaka:~/wiki$ cd extensions/
www-data@kaka:~/wiki/extensions$ wget http://mwextensions.cvs.sourceforge.net/*checkout*/mwextensions/mediawikiextensions/Graphviz.php
Hoiatus: HTTP ei toeta jokkereid.
--2009-03-14 12:18:27--  http://mwextensions.cvs.sourceforge.net/*checkout*/mwextensions/mediawikiextensions/Graphviz.php
Lahendan mwextensions.cvs.sourceforge.net... 216.34.181.108
Loon ühendust serveriga mwextensions.cvs.sourceforge.net|216.34.181.108|:80... ühendus loodud.
HTTP päring saadetud, ootan vastust... 200 OK
Pikkus: määramata [text/plain]
Saving to: `Graphviz.php'

    [ <=>                                                                                                                                                        ] 2 322       --.-K/s   in 0,005s

2009-03-14 12:18:27 (450 KB/s) - `Graphviz.php' salvestatud [2322]

Seadistus

LocalSettings.php faili lisa järgmised read ning vaata, et dot asukoht oleks süsteemis sama.

include("extensions/Graphviz.php");
$wgGraphVizSettings->dotCommand = "/usr/bin/dot";

Kasutus ja näide

Palju näiteid on veebis http://www.graphviz.org/Gallery.php

<graphviz renderer='neato' caption='Hello Neato'>
graph G {
   run -- intr;
   intr -- runbl;
   runbl -- run;
   run -- kernel;
   kernel -- zombie;
   kernel -- sleep;
   kernel -- runmem;
   sleep -- swap;
   swap -- runswap;
   runswap -- new;
   runswap -- runmem;
   new -- runmem;
   sleep -- runmem;
}
</graphviz>

PDF Export extension

http://www.mediawiki.org/wiki/Extension:Pdf_Export

Eeldused

Vaja installeerida htmldoc pakk + pakid millest ta sõltub:

root@kaka:~# apt-get install htmldoc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  htmldoc-common libfltk1.1
The following NEW packages will be installed:
  htmldoc htmldoc-common libfltk1.1
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 5855kB of archives.
After this operation, 10,1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ee.archive.ubuntu.com intrepid/main htmldoc-common 1.8.27-3 [5192kB]
Get:2 http://ee.archive.ubuntu.com intrepid/main libfltk1.1 1.1.9-4 [460kB]
Get:3 http://ee.archive.ubuntu.com intrepid/main htmldoc 1.8.27-3 [202kB]
Fetched 5855kB in 24s (238kB/s)
Varem valimata paki htmldoc-common valimine.
(Andmebaasi lugemine ... hetkel on paigaldatud 109296 faili ja kataloogi.)
Paki htmldoc-common lahtipakkimine (failist .../htmldoc-common_1.8.27-3_all.deb) ...
Varem valimata paki libfltk1.1 valimine.
Paki libfltk1.1 lahtipakkimine (failist .../libfltk1.1_1.1.9-4_i386.deb) ...
Varem valimata paki htmldoc valimine.
Paki htmldoc lahtipakkimine (failist .../htmldoc_1.8.27-3_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for menu ...
Paki htmldoc-common (1.8.27-3) paikasättimine ...
Paki libfltk1.1 (1.1.9-4) paikasättimine ...

Paki htmldoc (1.8.27-3) paikasättimine ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Processing triggers for menu ...

Download & install

4 php faili kood on saadaval http://www.mediawiki.org/wiki/Extension:Pdf_Export/Source_Code
tee uus kataloog ning salvesta need sinna.

www-data@kaka:~/wiki$ cd extensions/
www-data@kaka:~/wiki/extensions$ mkdir PdfExport

Seadistus

LocalSettings.php faili lisa järgmine rida:

require_once("extensions/PdfExport/PdfExport.php");

Kasutus

Tööriistakastis on link "Print as PDF", sellel klikkides prinditakse hetkel aktiivne wiki leht PDF faili.
! Fail laetakse alla kui index.php, nime ja laiendi peab käsitsi ümber nimetama!

FCKeditor extension

http://www.mediawiki.org/wiki/Extension:FCKeditor_(by_FCKeditor_and_Wikia)
http://mediawiki.fckeditor.net/index.php/FCKeditor_integration_guide

Eeldused

Peab arvestama, et FCK editor mudib ära olemasolevad artiklid, kui need uuesti salvestada ning see ei pruugi alati kõige paremini lõppeda!
Lingid tehakse ringi, reavahetusi kustutatakse jne. Ei ole mõistlik paigaldada siis, kui kavatsetakse edaspidi veel käsitsi artikleid edida.

Download & install

tiri alla 1 fail veebist, http://rs426.rapidshare.com/files/205304883/FCKeditor.zip
kopi see extensions kataloogi ning paki lahti.

www-data@kaka:~/wiki$ cd extensions/
www-data@kaka:~/wiki/extensions/$ cp /home/argoe/Töölaud/FCKeditor.zip .                                                                                                                      
www-data@kaka:~/wiki/extensions/$ unzip FCKeditor.zip  
www-data@kaka:~/wiki/extensions$ rm FCKeditor.zip

Seadistus

LocalSettings.php faili lisa järgmine rida:

require_once( "$IP/extensions/FCKeditor/FCKeditor.php" );
$wgUseAjax = true;

Kasutus

Voila - ongi kohe eriti fancy word-lookalike menüü olemas! õnneks või õnnetuseks on menüü vasakul ülemises nurgas olemas nupp kirjaga "wikitext" :D