Debian webmin: Difference between revisions

From Phobos Wiki
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 46: Line 46:


  # prerequisites
  # prerequisites
  apt-get install php5-mysql
  apt-get install mysql-server php5-mysql imagemagick
  # download/extract wiki
  # download/extract wiki
  cd /var/www
  cd /var/www
  wget http://download.wikimedia.org/mediawiki/1.19/mediawiki-1.19.0.tar.gz
  W_ver=1.17
  wget http://download.wikimedia.org/mediawiki/1.17/mediawiki-1.17.4.tar.gz
WL_ver=$W_ver.4
  tar vxfz mediawiki-1.19.0.tar.gz
  wget http://download.wikimedia.org/mediawiki/$W_ver/mediawiki-$WL_ver.tar.gz
  mv mediawiki-1.19.0 wiki
  tar vxfz mediawiki-$WL_ver.tar.gz
  mv mediawiki-$WL_ver wiki
  # delete old
  # delete old
  rm mediawiki-1.19.0.tar.gz
  rm mediawiki-$WL_ver.tar.gz
 
chown -R www-data:www-data /var/www/wiki
=== install it ===
=== install it ===
go to http://10.0.0.192/wiki
go to http://10.0.0.192/wiki
Line 65: Line 68:
scp LocalSettings.php root@10.0.0.192:/var/www/wiki/
scp LocalSettings.php root@10.0.0.192:/var/www/wiki/


=== SMW bundle ===
===admin tool===
apt-get -f install unzip php5-curl
cd /var/www/wiki
wget http://downloads.sourceforge.net/project/halo-extension/SMWHalo%201.7.0/MediaWiki%20extensions/wikiadmintool-1.7.0_0.zip
unzip wikiadmintool-1.7.0_0.zip
rm wikiadmintool-1.7.0_0.zip
echo '
#
# Wiki Administration Tool 1.7.0
#
# http://www.smwplus.com/index.php/Download#MEDIAWIKI_EXTENSIONS
#
$wgDBadminuser="root";
$wgDBadminpassword="rootSQL";
/*start-wikiadmintool*/
require_once("$IP/deployment/Deployment.php");
/*end-wikiadmintool*/
' >> /var/www/wiki/LocalSettings.php
cp /var/www/wiki/deployment/config/settings.php /var/www/wiki/deployment/settings.php
 
edit following lines in file /var/www/wiki/deployment/settings.php
$scriptPath = "/wiki";
'df_homedir' => '/usr/local/wikiwebadmin',
'df_php_executable' => 'php5',
 
mkdir /usr/local/wikiwebadmin
chown www-data:www-data /usr/local/wikiwebadmin
 
chown -R www-data:www-data /var/www/wiki
 
chmod +x /var/www/wiki/deployment/tools/smwadmin.sh
 
=== SMW extensions ===
 
go to http://192.168.1.241/wiki/deployment/tools/webadmin


  cd /var/www/wiki/extensions
  cd /var/www/wiki/extensions
Line 107: Line 155:
* Page Schemas
* Page Schemas
* Replace Text
* Replace Text
====admin tool====
cd /var/www/wiki
wget http://downloads.sourceforge.net/project/halo-extension/SMWHalo%201.7.0/MediaWiki%20extensions/wikiadmintool-1.7.0_0.zip
unzip wikiadmintool-1.7.0_0.zip
rm wikiadmintool-1.7.0_0.zip
echo '
#
# Wiki Administration Tool 1.7.0
#
# http://www.smwplus.com/index.php/Download#MEDIAWIKI_EXTENSIONS
#
/*start-wikiadmintool*/
require_once($IP/deployment/Deployment.php");
/*end-wikiadmintool*/
' >> /var/www/wiki/LocalSettings.php
cp /var/www/wiki/deployment/config/settings.php /var/www/wiki/deployment/settings.php
sed -i '/public static $scriptPath = "\/mediawiki";/ c\ public static $scriptPath = "\/wiki";' /var/www/wiki/deployment/settings.php
sed -i '/\'df_php_executable\' => \'php\',/ c\ \'df_php_executable\' => \'php5\',' /var/www/wiki/deployment/settings.php
sed -i '/\/\/ \'df_homedir\' => \'\',/ c\ \'df_homedir\' => \'\/usr\/local\/wikiwebadmin\',' /var/www/wiki/deployment/settings.php
mkdir /usr/local/wikiwebadmin
chown www-data:www-data /usr/local/wikiwebadmin


====Extension HALO====
====Extension HALO====

Latest revision as of 22:51, 11 May 2012

Installing debian server for SMW

package configuration

When installing debian select following packages

  • SQL Database
  • WEB server

Optional

  • Desktop environment (not necessary for headless server)

WEBMIN

http://www.webmin.com/deb.html

webmin requirements

apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python

installation

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.580_all.deb dpkg --install webmin_1.580_all.deb

pretty web GUI theme

login to webmin and go to theme page, and install stressfree

http://webmin-theme-stressfree.googlecode.com/files/theme-stressfree-2.10.tar.gz


openVPN webmin module

webmin configuration -> webmin modules

http://www.openit.it/downloads/OpenVPNadmin/openvpn-2.5.wbm.gz


webmin stats module

http://sourceforge.net/projects/webminstats/

apt-get install librrds-perl rrdcollect rrdtool

webmin configuration -> webmin modules

http://downloads.sourceforge.net/project/webminstats/Sysstats/2.5/sysstats-2.5.tgz

MediaWiki

http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Debian_GNU/Linux

# prerequisites
apt-get install mysql-server php5-mysql imagemagick
# download/extract wiki
cd /var/www
W_ver=1.17
WL_ver=$W_ver.4
wget http://download.wikimedia.org/mediawiki/$W_ver/mediawiki-$WL_ver.tar.gz
tar vxfz mediawiki-$WL_ver.tar.gz
mv mediawiki-$WL_ver wiki
# delete old
rm mediawiki-$WL_ver.tar.gz

chown -R www-data:www-data /var/www/wiki

install it

go to http://10.0.0.192/wiki

copy LocalSettings.php to /var/www/wiki/

LocalSettings.php

cd ~/Downloads scp LocalSettings.php root@10.0.0.192:/var/www/wiki/

admin tool

apt-get -f install unzip php5-curl
cd /var/www/wiki
wget http://downloads.sourceforge.net/project/halo-extension/SMWHalo%201.7.0/MediaWiki%20extensions/wikiadmintool-1.7.0_0.zip
unzip wikiadmintool-1.7.0_0.zip

rm wikiadmintool-1.7.0_0.zip

echo '
#
# Wiki Administration Tool 1.7.0
#
# http://www.smwplus.com/index.php/Download#MEDIAWIKI_EXTENSIONS
#

$wgDBadminuser="root";
$wgDBadminpassword="rootSQL";

/*start-wikiadmintool*/

require_once("$IP/deployment/Deployment.php");

/*end-wikiadmintool*/

' >> /var/www/wiki/LocalSettings.php

cp /var/www/wiki/deployment/config/settings.php /var/www/wiki/deployment/settings.php

edit following lines in file /var/www/wiki/deployment/settings.php

$scriptPath = "/wiki";

'df_homedir' => '/usr/local/wikiwebadmin',

'df_php_executable' => 'php5',
mkdir /usr/local/wikiwebadmin
chown www-data:www-data /usr/local/wikiwebadmin
chown -R www-data:www-data /var/www/wiki
chmod +x /var/www/wiki/deployment/tools/smwadmin.sh

SMW extensions

go to http://192.168.1.241/wiki/deployment/tools/webadmin
cd /var/www/wiki/extensions
wget https://semantic-mediawiki-bundle.googlecode.com/files/SemanticBundle-20120327.tgz
tar xvf SemanticBundle-20120327.tgz
rm SemanticBundle-20120327.tgz
# copy semantic bundle settings file
cp semantic-bundle/SemanticBundleSettings.sample.php semantic-bundle/SemanticBundleSettings.php

include semantic bundle

echo '
#
# Semantic MediaWiki
#
# http://www.mediawiki.org/wiki/Semantic_Bundle
#
require_once( "$IP/extensions/semantic-bundle/SemanticBundleSettings.php" );
require_once( "$IP/extensions/semantic-bundle/SemanticBundle.php" );
' >> /var/www/wiki/LocalSettings.php

initialize SMW

http://debian.local/wiki/index.php/Special:SMWAdmin

enable SMW extensions

  • Semantic Result Formats
  • Semantic Forms
  • Semantic Forms Inputs
  • Semantic Compound Queries
  • Semantic Drilldown
  • Semantic Image Input
  • Admin Links
  • Arrays
  • Data Transfer
  • External Data
  • Header Tabs
  • Page Schemas
  • Replace Text

Extension HALO

http://www.mediawiki.org/wiki/Extension:Halo_Extension
cd /var/www/wiki
wget http://downloads.sourceforge.net/project/halo-extension/SMWHalo%201.7.0/MediaWiki%20extensions/smwhalo-1.7.0_1.zip
nuzip smwhalo-1.7.0_1.zip