Offline Wikipedia on Debian 7 Wheezy

install

aptitude install apache2 phpmyadmin mysql-server
cd /var/www/
wget -c http://releases.wikimedia.org/mediawiki/1.22/mediawiki-1.22.6.tar.gz

download wikipedia dump

wget -c http://dumps.wikimedia.org/dewiki/20140511/dewiki-20140511-pages-articles.xml.bz2

unpack to /var/www/
tar xvf mediawiki-1.20.6.tar.gz
bzip2 -kd dewiki-20130422-pages-articles.xml.bz2

browse to the local mediawiki and configure it

import Data

cd /var/www/mediawiki-1.20.6/maintenance/
php importDump.php < ../../dewiki-20060803-pages-articles.xml

else

php importDump.php --conf ../LocalSettings.php /path_to/dumpfile.xml.gz wikidb

MediaWiki-Installation

set date and time on Debian / Ubuntu

install

aptitude install ntpdate

update

ntpdate ptbtime1.ptb.de

Server:
http://www.ptb.de/cms/fachabteilungen/abtq/fb-q4/ag-q42/zeitsynchronisation-von-rechnern-mit-hilfe-des-network-time-protocol-ntp.html
ptbtime1.ptb.de
ptbtime2.ptb.de
ptbtime3.ptb.de
http://www.pool.ntp.org/zone/de
0.de.pool.ntp.org
1.de.pool.ntp.org
2.de.pool.ntp.org
3.de.pool.ntp.org

update hardware clock

hwclock --systohc

Copy Image via netcat

This is for a High-Bandwidth Network. If you have a Low-Bandwidth Network you can try to switch lzo with bzip2.

Target:
nc -v -l -p 19000 | lzop -c -d | pv -s 70G | dd bs=16M of=/root/foo.img

  1. listen on port 19000 for connections.
  2. decompress the datapackages.
  3. pv displays a status bar.
  4. and wirte them into a file.

Source:
dd bs=16M if=/root/bar.img | lzop -3 -c | nc -v 10.0.01 19000

  1. dd reads the file in 16MB Blocks.
  2. each block will be compressed with lzo.
  3. nc connects 10.0.01 on port 19000 and pushes data.