From 2850cb7954833f2c6eb1febeaa91a4026ad09b3d Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 29 Jul 2021 10:43:31 -0400 Subject: peertube tweaks --- peertube.html | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) (limited to 'peertube.html') diff --git a/peertube.html b/peertube.html index ad00d65..e38a2ba 100644 --- a/peertube.html +++ b/peertube.html @@ -15,15 +15,15 @@ PeerTube logo -

PeerTube is a self-hosted and (optionally) federated video sharing platform that saves bandwith on videos the more people watch. - PeerTube instances can follow each other to share videos and grow the federated network, +

PeerTube is a self-hosted and (optionally) federated video sharing platform that saves bandwith on videos the more people watch. + PeerTube instances can follow each other to share videos and grow the federated network, but you can always keep your instance to yourself if you choose to.

Prerequisites

Most of PeerTube's dependencies can be installed with this command:

-
apt install 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

It's also important to start all associated daemons:

@@ -32,7 +32,7 @@

PeerTube also requires NodeJS 14 and yarn which cannot be installed from the Debian repositories. This means they have to be installed from separate, external repos:

curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
-apt-get install -y nodejs
+apt install -y nodejs
 npm install --global yarn

In addition to these dependencies, it's recommended to create a dedicated PeerTube user to install and manage PeerTube.

@@ -40,7 +40,7 @@ npm install --global yarn
useradd -m -d /var/www/peertube -s /bin/bash -p peertube peertube

Database

- +

PeerTube requires a PostgreSQL database to function. To create it, first make a new Postgres user named PeerTube:

su postgres
@@ -128,8 +128,8 @@ cd ./peertube-latest && sudo -H -u peertube yarn install --production --pure-loc
 
 	
cp /var/www/peertube/peertube-latest/support/nginx/peertube /etc/nginx/sites-available/peertube
-

Because the PeerTube config is so long, it's recommended to use sed to modify the contents of the file, - replacing ${WEBSERVER_HOST} with your hostname, +

Because the PeerTube config is so long, it's recommended to use sed to modify the contents of the file, + replacing ${WEBSERVER_HOST} with your hostname, and $(PEERTUBE_HOST) with your localhost and port, which by default should be 127.0.0.1:9000:

sed -i 's/${WEBSERVER_HOST}/example.org/g' /etc/nginx/sites-available/peertube
@@ -163,8 +163,8 @@ systemctl daemon-reload

Using PeerTube

To set a password for your admin user, run:

- -
cd /var/www/peertube/peertube-latest && NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run reset-password -- -u root
+ +
cd /var/www/peertube/peertube-latest && NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run reset-password -- -u root

Login to your PeerTube instance using the admin email specified in your production.yaml file and the admin password you just set.

@@ -173,7 +173,21 @@ systemctl daemon-reload

Once logged in, it's recommended to create a separate user without admin privileges for uploading videos to PeerTube. This can be done easily from the users tab in the administration section:

-

Enjoy your PeerTube instance!

+

Enjoy your PeerTube instance!

+ +
+ +

Updating PeerTube

+ +

PeerTube is constantly adding new features, so it's a good idea to check for new updates and add them if you wish. Just in the past year, they have added livestreaming and more.

+ +

Updating is fairly easy now since an upgrade.sh script has been added. Just run:

+ +
cd /var/www/peertube/peertube-latest/scripts && sudo -H -u peertube ./upgrade.sh
+ +

+ Although check the changelog to see if there are additional manual requirements for particular updates. +


Written by Denshi. Donate Monero here [QR]

-- cgit v1.2.3