server:peertube
Differences
This shows you the differences between two versions of the page.
| server:peertube [2025/06/18 09:30] – created marlonivo | server:peertube [2025/08/24 07:39] (current) – marlonivo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | 1. Systemvorbereitung | + | ====== PeerTube Installation ====== |
| - | Alle nötigen Pakete installieren: | + | ===== 1. System preparation ===== |
| + | Install all required packages: | ||
| + | |||
| + | <code bash> | ||
| apt install -y curl sudo unzip vim ffmpeg postgresql postgresql-contrib g++ make redis-server git python-dev cron wget | apt install -y curl sudo unzip vim ffmpeg postgresql postgresql-contrib g++ make redis-server git python-dev cron wget | ||
| + | </ | ||
| - | | + | Start PostgreSQL |
| + | <code bash> | ||
| systemctl start postgresql redis | systemctl start postgresql redis | ||
| + | </ | ||
| - | 2. Node.js & Yarn Installation | + | ===== 2. Node.js & Yarn installation ===== |
| - | + | ||
| - | Deine Anleitung sagt, Node.js 14 wird benötigt, aber PeerTube 7.2.1 (neuere Version) benötigt Node.js >= 20. | + | |
| - | Deshalb musst du Node.js | + | Your guide says Node.js 14 is needed, but PeerTube 7.2.1 (newer version) requires |
| - | So installierst du Node.js 20 und yarn: | + | So you must install |
| + | <code bash> | ||
| curl -fsSL https:// | curl -fsSL https:// | ||
| sudo apt install -y nodejs | sudo apt install -y nodejs | ||
| npm install --global yarn | npm install --global yarn | ||
| + | </ | ||
| - | Danach: | + | Check versions: |
| - | node -v # sollte | + | <code bash> |
| + | node -v | ||
| yarn -v | yarn -v | ||
| + | </ | ||
| - | 3. PeerTube | + | ===== 3. Create |
| + | <code bash> | ||
| useradd -m -d / | useradd -m -d / | ||
| + | </ | ||
| - | 4. PostgreSQL | + | ===== 4. Set up PostgreSQL |
| + | <code bash> | ||
| su -l postgres | su -l postgres | ||
| - | createuser -P peertube | + | createuser -P peertube |
| createdb -O peertube -E UTF8 -T template0 peertube_prod | createdb -O peertube -E UTF8 -T template0 peertube_prod | ||
| psql -c " | psql -c " | ||
| psql -c " | psql -c " | ||
| exit | exit | ||
| + | </ | ||
| - | 5. PeerTube | + | ===== 5. Create |
| + | <code bash> | ||
| su -l peertube | su -l peertube | ||
| mkdir config storage versions | mkdir config storage versions | ||
| chmod 750 config | chmod 750 config | ||
| exit | exit | ||
| + | </ | ||
| - | 6. PeerTube herunterladen | + | ===== 6. Download |
| + | <code bash> | ||
| su -l peertube | su -l peertube | ||
| VERSION=$(curl -s https:// | VERSION=$(curl -s https:// | ||
| Line 55: | Line 70: | ||
| rm peertube-${VERSION}.zip | rm peertube-${VERSION}.zip | ||
| exit | exit | ||
| + | </ | ||
| - | 7. Yarn installieren (PeerTube Abhängigkeiten) | + | ===== 7. Install |
| + | <code bash> | ||
| su -l peertube | su -l peertube | ||
| cd / | cd / | ||
| Line 64: | Line 81: | ||
| yarn install --production --pure-lockfile | yarn install --production --pure-lockfile | ||
| exit | exit | ||
| + | </ | ||
| - | 8. Konfiguration anpassen | + | ===== 8. Adjust configuration ===== |
| + | <code bash> | ||
| su -l peertube | su -l peertube | ||
| cd / | cd / | ||
| cp peertube-latest/ | cp peertube-latest/ | ||
| vim config/ | vim config/ | ||
| - | # Hier hostname, | + | # set hostname, |
| exit | exit | ||
| + | </ | ||
| - | 9. SSL Zertifikat mit Certbot | + | ===== 9. Get SSL certificate with Certbot |
| - | certbot --nginx -d dein.hostname.tld certonly | + | <code bash> |
| + | certbot --nginx -d your.hostname.tld certonly | ||
| + | </ | ||
| - | 10. Nginx konfigurieren | + | ===== 10. Configure |
| + | <code bash> | ||
| cp / | cp / | ||
| - | sed -i ' | + | sed -i ' |
| sed -i ' | sed -i ' | ||
| ln -s / | ln -s / | ||
| systemctl reload nginx | systemctl reload nginx | ||
| + | </ | ||
| - | 11. PeerTube | + | ===== 11. Start PeerTube |
| + | <code bash> | ||
| cp / | cp / | ||
| systemctl daemon-reload | systemctl daemon-reload | ||
| systemctl start peertube | systemctl start peertube | ||
| - | systemctl status peertube | + | systemctl status peertube |
| + | </ | ||
| - | 12. Admin-Passwort setzen | + | ===== 12. Set admin password ===== |
| + | <code bash> | ||
| su -l peertube | su -l peertube | ||
| cd / | cd / | ||
| NODE_CONFIG_DIR=/ | NODE_CONFIG_DIR=/ | ||
| exit | exit | ||
| + | </ | ||
| + | |||