Setup

From wiki
Revision as of 09:14, 26 October 2024 by Sysop (talk | contribs) (Created page with "== playground-mw.bitplan.com == * create DNS entry in Hosteurope KIS * create DNS entry in local bitplan DNS * install apache 2 <source lang='bash' highlight='1,3,5,7,9'> sudo apt-get install apache2 # mod_proxy - Base proxy module sudo a2enmod proxy # mod_proxy_http - HTTP proxy support sudo a2enmod proxy_http # mod_headers - For RequestHeader directives sudo a2enmod headers # mod rewrite sudo a2enmod rewrite </source> == god names == <source lang='bash' highlight='1-...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

playground-mw.bitplan.com

  • create DNS entry in Hosteurope KIS
  • create DNS entry in local bitplan DNS
  • install apache 2
sudo apt-get install apache2
# mod_proxy - Base proxy module
sudo a2enmod proxy
# mod_proxy_http - HTTP proxy support
sudo a2enmod proxy_http
# mod_headers - For RequestHeader directives
sudo a2enmod headers
# mod rewrite 
sudo a2enmod rewrite

god names

mkdir /tmp/pg
sparqlquery -en qlever-wikidata -qn GreekGods -f mediawiki > /tmp/pg/GreekGods.wiki
sparqlquery -en qlever-wikidata -qn GreekGods | jq -r '.[] | "# [" + .Greek_deityItem + " " + .Greek_deity + "] <img src=\"" + .image + "\" width=\"100\"/> Father: [" + .fatherItem + " " + .father + "] Mother: [" + .motherItem + " " + .mother + "]"' > /tmp/pg/GreekGodsList.wiki
wikirestore -d --backupPath /tmp/pg --target cr -p GreekGods
restoring 1 pages from /tmp/pg to cr
1/1 ( 100%): restore GreekGods ...✅
wikirestore -d --backupPath /tmp/pg --target cr -p GreekGodsList
restoring 1 pages from /tmp/pg to cr
1/1 ( 100%): restore GreekGodsList ...✅
  1. https://cr.bitplan.com/index.php/GreekGods
  2. https://cr.bitplan.com/index.php/GreekGodsList

Playground home page

First wiki

profiwiki -rp -fu -cn Aglaea  -bp 9100 -sp 9101 --all -f
profiwiki -cn Aglaea --bash
ProfiWiki with previous configuration from /home/wf/.pymediawikidocker/Aglaea/MwConfig.json...
docker exec -it Aglaea-mw /bin/bash

Editors

# gedit
sudo apt install gedit
# Visual Studio code
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt install apt-transport-https
sudo apt update
sudo apt install code

X11 remote

sudo apt install xauth
touch ~/.Xauthority
chmod 600 ~/.Xauthority
# Ensure ownership is correct
chown wf:wf ~/.Xauthority

Docker network size

# increase from default 16 to 4096 nodes
sudo tee /etc/docker/daemon.json << EOF
{
  "default-address-pools": [
    {
      "base": "172.16.0.0/12",
      "size": 24
    }
  ]
}
EOF
{
  "default-address-pools": [
    {
      "base": "172.16.0.0/12",
      "size": 24
    }
  ]
}
sudo systemctl restart docker

patching

profiwiki -cn Aglaea --bash
ProfiWiki with previous configuration from /home/wf/.pymediawikidocker/Aglaea/MwConfig.json...
docker exec -it Aglaea-mw /bin/bash

wgArticlePath

 ./setup_wikis --clean
⚠️  WARNING: This will remove all Docker containers, images, and volumes
Are you sure you want to continue? (y/N) y
🗑️  Cleaning up Docker environment...
...
Total reclaimed space: 275.6MB
🗑️  Removing MediaWiki configurations...
✅ Cleanup complete
./setup_wikis -w Zeus --setup
🏗️  Setting up Zeus wiki...
ProfiWiki Zeus using port 9186 sqlport 9187
starting Zeus 1.39.8 docker application ...
...
./setup_wikis -w Zeus --patch
$wgScriptPath = "/Zeus";
## Set wgArticlePath if config.article_path is provided
$wgArticlePath = "/Zeus/index.php/\$1";
$wgServer = "http://playground-mw.bitplan.com";
$wgResourceBasePath = $wgScriptPath;
✅:Patched Zeus wiki settings successfully.

Login