01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
$ setenv PYTHONPATH $HOME/.python
$ easy_install -d ~/.python PIL
$ python captcha.py --font=DejaVuSans.ttf --count=100 --wordlist=wordlist.txt --key=xxxxxxxx --output=captcha
require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
require_once("$IP/extensions/ConfirmEdit/FancyCaptcha.php");
$wgCaptchaClass = 'FancyCaptcha';
$wgCaptchaDirectory = "$IP/extensions/ConfirmEdit/captcha";
$wgCaptchaDirectoryLevels = 0;
$wgCaptchaSecret = "xxxxxxxx";
$ sudo yum install python-imaging
$ sudo python captcha.py --font=/usr/share/fonts/dejavu/DejaVuSans.ttf --count=200 --wordlist=words --key=xxxxxxxxx --output=captcha
require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
require_once("$IP/extensions/ConfirmEdit/FancyCaptcha.php");
$wgCaptchaClass = 'FancyCaptcha';
$wgCaptchaDirectory = "$IP/extensions/ConfirmEdit/captcha";
$wgCaptchaDirectoryLevels = 0;
$wgCaptchaSecret = "xxxxxxxxx";