aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-11 16:21:29 +0200
committerChocobozzz <me@florianbigard.com>2020-08-11 16:22:57 +0200
commitf309a156a6201797b4eca19d090f37f2f0da403b (patch)
treeba9b4473e2cc53cec0fd688ff37fd18f181c3dd0
parent52c4976fcf4ee255a3af68ff9778e4f5c4f84bd4 (diff)
downloadPeerTube-f309a156a6201797b4eca19d090f37f2f0da403b.tar.gz
PeerTube-f309a156a6201797b4eca19d090f37f2f0da403b.tar.zst
PeerTube-f309a156a6201797b4eca19d090f37f2f0da403b.zip
Update ffmpeg min version
-rw-r--r--README.md2
-rw-r--r--support/doc/dependencies.md58
2 files changed, 26 insertions, 34 deletions
diff --git a/README.md b/README.md
index d3f406fc1..e2738a005 100644
--- a/README.md
+++ b/README.md
@@ -166,7 +166,7 @@ Feel free to reach out if you have any questions or ideas! :speech_balloon:
166 * **Redis >= 2.8.18** 166 * **Redis >= 2.8.18**
167 * **NodeJS >= 10.x** 167 * **NodeJS >= 10.x**
168 * **yarn >= 1.x** 168 * **yarn >= 1.x**
169 * **FFmpeg >= 3.x** 169 * **FFmpeg >= 4.1**
170 170
171See the [production guide](https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/production.md), which is the recommended way to install or upgrade PeerTube. For hardware requirements, see [Should I have a big server to run PeerTube?](https://github.com/Chocobozzz/PeerTube/blob/develop/FAQ.md#should-i-have-a-big-server-to-run-peertube) in the FAQ. 171See the [production guide](https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/production.md), which is the recommended way to install or upgrade PeerTube. For hardware requirements, see [Should I have a big server to run PeerTube?](https://github.com/Chocobozzz/PeerTube/blob/develop/FAQ.md#should-i-have-a-big-server-to-run-peertube) in the FAQ.
172 172
diff --git a/support/doc/dependencies.md b/support/doc/dependencies.md
index 810846682..e930c015e 100644
--- a/support/doc/dependencies.md
+++ b/support/doc/dependencies.md
@@ -25,11 +25,11 @@
25 25
262. It would be wise to disable root access and to continue this tutorial with a user with sudoers group access 262. It would be wise to disable root access and to continue this tutorial with a user with sudoers group access
27 27
283. Install certbot (choose instructions for nginx and your distribution) : 283. Install certbot (choose instructions for nginx and your distribution) :
29[https://certbot.eff.org/all-instructions](https://certbot.eff.org/all-instructions) 29[https://certbot.eff.org/all-instructions](https://certbot.eff.org/all-instructions)
304. Install NodeJS 10.x: 304. Install NodeJS 10.x:
31[https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions) 31[https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)
325. Install yarn, and be sure to have [a recent version](https://github.com/yarnpkg/yarn/releases/latest): 325. Install yarn, and be sure to have [a recent version](https://github.com/yarnpkg/yarn/releases/latest):
33[https://yarnpkg.com/en/docs/install#linux-tab](https://yarnpkg.com/en/docs/install#linux-tab) 33[https://yarnpkg.com/en/docs/install#linux-tab](https://yarnpkg.com/en/docs/install#linux-tab)
34 34
356. Run: 356. Run:
@@ -37,18 +37,10 @@
37``` 37```
38sudo apt update 38sudo apt update
39sudo apt install nginx ffmpeg postgresql postgresql-contrib openssl g++ make redis-server git python-dev 39sudo apt install nginx ffmpeg postgresql postgresql-contrib openssl g++ make redis-server git python-dev
40ffmpeg -version # Should be >= 3.x 40ffmpeg -version # Should be >= 4.1
41g++ -v # Should be >= 5.x 41g++ -v # Should be >= 5.x
42``` 42```
43 43
44If you still have a 2.x version of FFmpeg on Ubuntu:
45
46```
47sudo add-apt-repository ppa:jonathonf/ffmpeg-3
48sudo apt-get update
49sudo apt install ffmpeg
50```
51
52Now that dependencies are installed, before running PeerTube you should start PostgreSQL and Redis: 44Now that dependencies are installed, before running PeerTube you should start PostgreSQL and Redis:
53 45
54``` 46```
@@ -71,10 +63,10 @@ sudo systemctl start redis postgresql
71 63
72## CentOS 7 64## CentOS 7
73 65
741. Install NodeJS 10.x: 661. Install NodeJS 10.x:
75[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora) 67[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora)
76 68
772. Install yarn: 692. Install yarn:
78[https://yarnpkg.com/en/docs/install](https://yarnpkg.com/en/docs/install) 70[https://yarnpkg.com/en/docs/install](https://yarnpkg.com/en/docs/install)
79 71
803. Install or compile ffmpeg: 723. Install or compile ffmpeg:
@@ -82,7 +74,7 @@ sudo systemctl start redis postgresql
82* Install - [https://linoxide.com/linux-how-to/install-ffmpeg-centos-7/](https://linoxide.com/linux-how-to/install-ffmpeg-centos-7/) 74* Install - [https://linoxide.com/linux-how-to/install-ffmpeg-centos-7/](https://linoxide.com/linux-how-to/install-ffmpeg-centos-7/)
83* Compile - [https://gist.github.com/mustafaturan/7053900#file-latest-ffmpeg-centos6-sh](https://gist.github.com/mustafaturan/7053900#file-latest-ffmpeg-centos6-sh) 75* Compile - [https://gist.github.com/mustafaturan/7053900#file-latest-ffmpeg-centos6-sh](https://gist.github.com/mustafaturan/7053900#file-latest-ffmpeg-centos6-sh)
84 76
854. Install Packages: 774. Install Packages:
86 78
87``` 79```
88sudo yum update 80sudo yum update
@@ -103,13 +95,13 @@ Later when you invoke any node command, please prefix them with `CC=/opt/rh/devt
103sudo -H -u peertube CC=/opt/rh/devtoolset-7/root/usr/bin/gcc CXX=/opt/rh/devtoolset-7/root/usr/bin/g++ yarn install --production --pure-lockfile 95sudo -H -u peertube CC=/opt/rh/devtoolset-7/root/usr/bin/gcc CXX=/opt/rh/devtoolset-7/root/usr/bin/g++ yarn install --production --pure-lockfile
104``` 96```
105 97
1066. Initialize the PostgreSQL database: 986. Initialize the PostgreSQL database:
107 99
108``` 100```
109sudo postgresql-setup initdb 101sudo postgresql-setup initdb
110``` 102```
111 103
112Now that dependencies are installed, before running PeerTube you should enable and start PostgreSQL and Redis: 104Now that dependencies are installed, before running PeerTube you should enable and start PostgreSQL and Redis:
113 105
114``` 106```
115sudo systemctl enable --now redis 107sudo systemctl enable --now redis
@@ -118,21 +110,21 @@ sudo systemctl enable --now postgresql
118 110
119## Centos 8 111## Centos 8
120 112
1211. Install NodeJS 10.x: 1131. Install NodeJS 10.x:
122[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora) 114[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora)
123 115
1242. Install yarn: 1162. Install yarn:
125[https://yarnpkg.com/en/docs/install](https://yarnpkg.com/en/docs/install) 117[https://yarnpkg.com/en/docs/install](https://yarnpkg.com/en/docs/install)
126 118
1273. Install or compile ffmpeg: 1193. Install or compile ffmpeg:
128 120
129* Install - [https://linuxize.com/post/how-to-install-ffmpeg-on-centos-8/](https://linuxize.com/post/how-to-install-ffmpeg-on-centos-8/) 121* Install - [https://linuxize.com/post/how-to-install-ffmpeg-on-centos-8/](https://linuxize.com/post/how-to-install-ffmpeg-on-centos-8/)
130 122
1314. Install packages: 1234. Install packages:
132 124
133``` 125```
134sudo dnf update 126sudo dnf update
135sudo dnf install epel-release 127sudo dnf install epel-release
136sudo dnf update 128sudo dnf update
137sudo dnf install nginx postgresql postgresql-server postgresql-contrib openssl gcc-c++ make wget redis git 129sudo dnf install nginx postgresql postgresql-server postgresql-contrib openssl gcc-c++ make wget redis git
138``` 130```
@@ -143,13 +135,13 @@ sudo dnf install nginx postgresql postgresql-server postgresql-contrib openssl g
143sudo ln -s /usr/bin/python3 /usr/bin/python 135sudo ln -s /usr/bin/python3 /usr/bin/python
144``` 136```
145 137
1466. Initialize the PostgreSQL database: 1386. Initialize the PostgreSQL database:
147 139
148``` 140```
149sudo postgresql-setup initdb 141sudo postgresql-setup initdb
150``` 142```
151 143
152Now that dependencies are installed, before running PeerTube you should enable and start PostgreSQL and Redis: 144Now that dependencies are installed, before running PeerTube you should enable and start PostgreSQL and Redis:
153 145
154``` 146```
155sudo systemctl enable --now redis 147sudo systemctl enable --now redis
@@ -174,13 +166,13 @@ usermod my-peertube-user -a -G wheel # Add my-peertube-user to sudoers
174su my-peertube-user 166su my-peertube-user
175``` 167```
176 168
1773. (Optional) Install certbot (choose instructions for nginx and your distribution): 1693. (Optional) Install certbot (choose instructions for nginx and your distribution):
178[https://certbot.eff.org/all-instructions](https://certbot.eff.org/all-instructions) 170[https://certbot.eff.org/all-instructions](https://certbot.eff.org/all-instructions)
179 171
1804. Install NodeJS 10.x: 1724. Install NodeJS 10.x:
181[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora) 173[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora)
182 174
1835. Install yarn: 1755. Install yarn:
184[https://yarnpkg.com/en/docs/install](https://yarnpkg.com/en/docs/install) 176[https://yarnpkg.com/en/docs/install](https://yarnpkg.com/en/docs/install)
185 177
1866. Enable [RPM Fusion](https://rpmfusion.org) for Fedora (available for x86, x86_64, armhfp) 1786. Enable [RPM Fusion](https://rpmfusion.org) for Fedora (available for x86, x86_64, armhfp)
@@ -194,7 +186,7 @@ This is necessary because `ffmpeg` is not in the Fedora repos.
194 186
195``` 187```
196sudo dnf install nginx ffmpeg postgresql-server postgresql-contrib openssl gcc-c++ make redis git 188sudo dnf install nginx ffmpeg postgresql-server postgresql-contrib openssl gcc-c++ make redis git
197ffmpeg -version # Should be >= 3.x 189ffmpeg -version # Should be >= 4.1
198g++ -v # Should be >= 5.x 190g++ -v # Should be >= 5.x
199``` 191```
200 192
@@ -233,7 +225,7 @@ sudo firewall-cmd --reload
233 225
23410. Configure max ports 22610. Configure max ports
235 227
236This is necessary if you are running dev setup, otherwise you will have errors with `nodemon` 228This is necessary if you are running dev setup, otherwise you will have errors with `nodemon`
237 229
238``` 230```
239echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p 231echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
@@ -245,7 +237,7 @@ echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo s
245 237
246On a fresh install of [FreeBSD](https://www.freebsd.org), new system or new jail: 238On a fresh install of [FreeBSD](https://www.freebsd.org), new system or new jail:
247 239
2481. bootstrap pkg, initialize db and install peertube's dependencies, always as root (sudo not yet installed): 2401. bootstrap pkg, initialize db and install peertube's dependencies, always as root (sudo not yet installed):
249 241
250``` 242```
251pkg 243pkg
@@ -253,19 +245,19 @@ pkg update
253pkg install -y sudo bash wget git python nginx pkgconf vips postgresql96-server postgresql96-contrib redis openssl node npm yarn ffmpeg unzip 245pkg install -y sudo bash wget git python nginx pkgconf vips postgresql96-server postgresql96-contrib redis openssl node npm yarn ffmpeg unzip
254``` 246```
255 247
2562. Allow users in the wheel group (hope you don't forgot to add your user on wheel group!) to use sudo. 2482. Allow users in the wheel group (hope you don't forgot to add your user on wheel group!) to use sudo.
257 249
258``` 250```
259# visudo 251# visudo
260``` 252```
261 253
262Uncomment the line 90 254Uncomment the line 90
263 255
264``` 256```
265%wheel ALL=(ALL) ALL 257%wheel ALL=(ALL) ALL
266``` 258```
267 259
2683. Enable nginx, redis, postgresql services and initialize database. 2603. Enable nginx, redis, postgresql services and initialize database.
269 261
270``` 262```
271sysrc postgresql_enable="YES" 263sysrc postgresql_enable="YES"
@@ -347,7 +339,7 @@ rc-update add postgresql-11
347rc-service redis start 339rc-service redis start
348rc-service postgresql-11 start 340rc-service postgresql-11 start
349``` 341```
350 342
351## Other distributions 343## Other distributions
352 344
353Feel free to update this file in a pull request! 345Feel free to update this file in a pull request!