Größe: 3035
Kommentar: removed: pip install -e
|
Größe: 3860
Kommentar: Neue Installationsroutine mit pip und pypi
|
Gelöschter Text ist auf diese Art markiert. | Hinzugefügter Text ist auf diese Art markiert. |
Zeile 45: | Zeile 45: |
sudo mkdir moin moinwiki | sudo mkdir moin moinwiki moin-venv-python3 |
Zeile 49: | Zeile 49: |
* Moin Installation (z.B. mit Benutzer moinadm) | * Moin Installation mit pip für Benutzer (z.B. mit Benutzer moinadm) Dies ist die schnellere und benutzerfreundlichere Installationsroutine. Da moin2 noch nicht offiziell freigegeben ist, wird dafür der Test-Python-Package-Index benutzt. Das moin Paket wird nur selten aktualisiert. Am Ende steht aber ein lauffähiges Wiki mit englischen Hilfeseiten und einer Welcome-Page zur Verfügung. {{{ cd /usr/local/ python3 -m venv moin-venv-python3 . moin-venv-python3/bin/activate pip install --pre --index-url https://test.pypi.org/simple --extra-index-url https://pypi.org/simple moin cd /usr/local/moinwiki/ moin create-instance --full moin run }}} * Alternativ: Moin Installation mit git für Entwickler (z.B. mit Benutzer moinadm) Diese Installationsroutine benutzt den aktuellsten Entwicklungsstand aus den github-Programmquellen. |
Installation einer Moin Version 2 Testumgebung
Beispiel Stand 01.01.2022:
Umgebung und Ziel:
- virtueller Server mit Virtual Box
- Debian 11 (bullseye)
- minimal Server Installation ohne Desktop
- Zugang per SSH (Commandline) und SSH-Tunnel (HTML)
Kurzanleitung:
- Virtuelle Maschine mit Netzwerk als Netzwerkbrücke einrichten
- Installationsmedium Debian 11.2 bullseye Netinst für 64-Bit-PC (AMD64)
Keyboard Layout -> German
Select and Install Software ->
- unselect Debian desktop + GNOME
- select SSH server
- select standard system utils
- Benutzer, z.B.: root, admdebi (mit sudo Recht)
- Befehle nach Installation und Reboot (mit Benutzer root)
usermod -G sudo admdebi apt-get install -y sudo apt-get install -y binutils apt-get install -y git apt-get install -y python3-pip apt-get install -y python3-venv
- Moin Vorbereitung (mit Benutzer admdebi)
sudo useradd -m -s "/usr/bin/bash" moinadm cd /usr/local sudo mkdir moin moinwiki moin-venv-python3 sudo chown moinadm moin*
- Moin Installation mit pip für Benutzer (z.B. mit Benutzer moinadm)
Dies ist die schnellere und benutzerfreundlichere Installationsroutine. Da moin2 noch nicht offiziell freigegeben ist, wird dafür der Test-Python-Package-Index benutzt. Das moin Paket wird nur selten aktualisiert. Am Ende steht aber ein lauffähiges Wiki mit englischen Hilfeseiten und einer Welcome-Page zur Verfügung.
cd /usr/local/ python3 -m venv moin-venv-python3 . moin-venv-python3/bin/activate pip install --pre --index-url https://test.pypi.org/simple --extra-index-url https://pypi.org/simple moin cd /usr/local/moinwiki/ moin create-instance --full moin run
- Alternativ: Moin Installation mit git für Entwickler (z.B. mit Benutzer moinadm)
Diese Installationsroutine benutzt den aktuellsten Entwicklungsstand aus den github-Programmquellen.
cd /usr/local/moin git clone https://github.com/moinwiki/moin cd moin python3 quickinstall.py . ./activate ./m new-wiki ./m run
- Test vom Laptop bzw. Hostsystem
# SSH Tunnel starten ssh -f moinadm@<ip-of-moin-vm> -L 8080:localhost:8080 -N
Aufruf im Webbrowser http://localhost:8080/Home
Warnmeldungen auf Olimex
WARNING: The script flask is installed in '/home/moinadm/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script chardetect is installed in '/home/moinadm/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script pybabel is installed in '/home/moinadm/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script pygmentize is installed in '/home/moinadm/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script markdown_py is installed in '/home/moinadm/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Und das dauert
Quickinstall run time (h:mm:ss) 0:05:59
Erste Erfolgsmeldung:
Running on http://127.0.0.1:8080/
Nach dem Tunnelbau, Moinmoin 2.0 läuft auf der Olimex Maschine