Ahrensburg.city:Tools: Unterschied zwischen den Versionen

Aus ahrensburg.city
Zur Navigation springen Zur Suche springen
// via Wikitext Extension for VSCode
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
site_name: Dokument
== Tools ==
nav:
===Git Installieren===
  - Starseite: index.md
<pre>
  - Server:
sudo apt-get update
    - Server20.04: Server/index.md
sudo apt-get upgrade
    - Server22.04: Server/Server224.md
 
    - Server24.04: Server/Server244.md
sudo apt-get install git
    - Server Mieten: Server/Server_Mieten.md
 
  - IDE: IDE/index.md 
git config --global user.email "you@example.com"
  - Wordpress:
git config --global user.name "Your Name"
    - Installieren: CMS/Wordpress/index.md
 
    - klassik Themen: CMS/Wordpress/classe:Themen.md
</pre>
  - Mediawiki:
===GH Installieren===
    - Installieren: CMS/Mediawiki/index.md
<pre>
  - Static Site Generator:
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
    - Code-Dokumentationen:
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
      - mkdocs: SSG/mkdocs.md
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
      - sphinx: SSG/sphinx.md
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
    - Frameworks:
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
      - next.js: SSG/next.js.md
&& sudo apt update \
      - astro.build: SSG/astro.build.md
&& sudo apt install gh -y
    - Github-pages: SSG/github_page.md
</pre>
 
 
  - Tools:
====GH Anmelden=====
    - Pandoc: Tools/Pandoc.md
 
    - Analysetool: Tools/Analysetool.md
<pre>
    - Benchmark: Tools/Benchmark.md
gh auth login
  - Impressum: Impressum.md
</pre>
  - Datenschutz: Datenschutz.md
 
theme:
=== Backup für MediaWiki erstellen ===
  name: 'material'
 
  language: de
<pre>
plugins:
cd /var/www
    - search
gh repo clone thorstenkloehn/Download
extra:
sudo chmod 777 -R Download
  consent:
cd /var/www/Download
    title: Cookie-Zustimmung
php /var/www/mediawiki/maintenance/dumpBackup.php --full > /var/www/Download/pagedump.xml
    description: >-
git add .
      Wir verwenden Cookies, um Ihre Besuche und Präferenzen zu erkennen und die
git commit -m "Backup"
      Effektivität unserer Dokumentation zu messen.
git push
</pre>
 
=== Backup für MediaWiki wiederherstellen ===
 
<pre>
php importDump.php < pagedump.xml
</pre>
[[Category:Tools]]
[[Category:Git]]
[[Category:GH]]
[[Category:Backup]]
[[Category:MediaWiki]]

Version vom 9. August 2024, 04:53 Uhr

Tools

Git Installieren

sudo apt-get update 
sudo apt-get upgrade

sudo apt-get install git

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

GH Installieren

(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y

GH Anmelden=

gh auth login

Backup für MediaWiki erstellen

cd /var/www
gh repo clone thorstenkloehn/Download
sudo chmod 777 -R Download
cd /var/www/Download
php /var/www/mediawiki/maintenance/dumpBackup.php --full > /var/www/Download/pagedump.xml
git add .
git commit -m "Backup"
git push

Backup für MediaWiki wiederherstellen

php importDump.php < pagedump.xml