Ahrensburg.city:Tools: Unterschied zwischen den Versionen

Aus ahrensburg.city
Zur Navigation springen Zur Suche springen
// via Wikitext Extension for VSCode
 
(9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
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
</pre>
    - klassik Themen: CMS/Wordpress/classe:Themen.md
 
  - Mediawiki:
=== GitHub CLI 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:
==== GitHub CLI anmelden ====
    - Pandoc: Tools/Pandoc.md
<pre>
    - Analysetool: Tools/Analysetool.md
gh auth login
    - Benchmark: Tools/Benchmark.md
</pre>
  - Impressum: Impressum.md
 
  - Datenschutz: Datenschutz.md
=== Backup für MediaWiki erstellen ===
theme:
<pre>
  name: 'material'
cd /home/thorsten
  language: de
gh repo clone thorstenkloehn/Download
plugins:
sudo chmod 777 -R Download
    - search
cd /home/thorsten/Download
extra:
sudo rm /home/thorsten/Download/pagedump.xml
  consent:
php /home/thorsten/mediawiki/maintenance/dumpBackup.php --full > /home/thorsten/Download/pagedump.xml
    title: Cookie-Zustimmung
git add .
    description: >-
git commit -m "Backup"
      Wir verwenden Cookies, um Ihre Besuche und Präferenzen zu erkennen und die
git push
      Effektivität unserer Dokumentation zu messen.
</pre>
 
=== Backup für MediaWiki wiederherstellen ===
<pre>
php /var/www/mediawiki/maintenance/importDump.php < /var/www/Download/pagedump.xml
</pre>
 
[[Category:Tools]]
[[Category:Git]]
[[Category:GH]]
[[Category:Backup]]
[[Category:MediaWiki]]

Aktuelle Version vom 23. August 2024, 21:17 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"

GitHub CLI 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

GitHub CLI anmelden

gh auth login

Backup für MediaWiki erstellen

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

Backup für MediaWiki wiederherstellen

php /var/www/mediawiki/maintenance/importDump.php < /var/www/Download/pagedump.xml