diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-11 16:21:29 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-11 16:22:57 +0200 |
commit | f309a156a6201797b4eca19d090f37f2f0da403b (patch) | |
tree | ba9b4473e2cc53cec0fd688ff37fd18f181c3dd0 /support | |
parent | 52c4976fcf4ee255a3af68ff9778e4f5c4f84bd4 (diff) | |
download | PeerTube-f309a156a6201797b4eca19d090f37f2f0da403b.tar.gz PeerTube-f309a156a6201797b4eca19d090f37f2f0da403b.tar.zst PeerTube-f309a156a6201797b4eca19d090f37f2f0da403b.zip |
Update ffmpeg min version
Diffstat (limited to 'support')
-rw-r--r-- | support/doc/dependencies.md | 58 |
1 files changed, 25 insertions, 33 deletions
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 | ||
26 | 2. It would be wise to disable root access and to continue this tutorial with a user with sudoers group access | 26 | 2. It would be wise to disable root access and to continue this tutorial with a user with sudoers group access |
27 | 27 | ||
28 | 3. Install certbot (choose instructions for nginx and your distribution) : | 28 | 3. 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) |
30 | 4. Install NodeJS 10.x: | 30 | 4. 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) |
32 | 5. Install yarn, and be sure to have [a recent version](https://github.com/yarnpkg/yarn/releases/latest): | 32 | 5. 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 | ||
35 | 6. Run: | 35 | 6. Run: |
@@ -37,18 +37,10 @@ | |||
37 | ``` | 37 | ``` |
38 | sudo apt update | 38 | sudo apt update |
39 | sudo apt install nginx ffmpeg postgresql postgresql-contrib openssl g++ make redis-server git python-dev | 39 | sudo apt install nginx ffmpeg postgresql postgresql-contrib openssl g++ make redis-server git python-dev |
40 | ffmpeg -version # Should be >= 3.x | 40 | ffmpeg -version # Should be >= 4.1 |
41 | g++ -v # Should be >= 5.x | 41 | g++ -v # Should be >= 5.x |
42 | ``` | 42 | ``` |
43 | 43 | ||
44 | If you still have a 2.x version of FFmpeg on Ubuntu: | ||
45 | |||
46 | ``` | ||
47 | sudo add-apt-repository ppa:jonathonf/ffmpeg-3 | ||
48 | sudo apt-get update | ||
49 | sudo apt install ffmpeg | ||
50 | ``` | ||
51 | |||
52 | Now that dependencies are installed, before running PeerTube you should start PostgreSQL and Redis: | 44 | Now 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 | ||
74 | 1. Install NodeJS 10.x: | 66 | 1. 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 | ||
77 | 2. Install yarn: | 69 | 2. 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 | ||
80 | 3. Install or compile ffmpeg: | 72 | 3. 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 | ||
85 | 4. Install Packages: | 77 | 4. Install Packages: |
86 | 78 | ||
87 | ``` | 79 | ``` |
88 | sudo yum update | 80 | sudo yum update |
@@ -103,13 +95,13 @@ Later when you invoke any node command, please prefix them with `CC=/opt/rh/devt | |||
103 | sudo -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 | 95 | sudo -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 | ||
106 | 6. Initialize the PostgreSQL database: | 98 | 6. Initialize the PostgreSQL database: |
107 | 99 | ||
108 | ``` | 100 | ``` |
109 | sudo postgresql-setup initdb | 101 | sudo postgresql-setup initdb |
110 | ``` | 102 | ``` |
111 | 103 | ||
112 | Now that dependencies are installed, before running PeerTube you should enable and start PostgreSQL and Redis: | 104 | Now that dependencies are installed, before running PeerTube you should enable and start PostgreSQL and Redis: |
113 | 105 | ||
114 | ``` | 106 | ``` |
115 | sudo systemctl enable --now redis | 107 | sudo systemctl enable --now redis |
@@ -118,21 +110,21 @@ sudo systemctl enable --now postgresql | |||
118 | 110 | ||
119 | ## Centos 8 | 111 | ## Centos 8 |
120 | 112 | ||
121 | 1. Install NodeJS 10.x: | 113 | 1. 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 | ||
124 | 2. Install yarn: | 116 | 2. 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 | ||
127 | 3. Install or compile ffmpeg: | 119 | 3. 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 | ||
131 | 4. Install packages: | 123 | 4. Install packages: |
132 | 124 | ||
133 | ``` | 125 | ``` |
134 | sudo dnf update | 126 | sudo dnf update |
135 | sudo dnf install epel-release | 127 | sudo dnf install epel-release |
136 | sudo dnf update | 128 | sudo dnf update |
137 | sudo dnf install nginx postgresql postgresql-server postgresql-contrib openssl gcc-c++ make wget redis git | 129 | sudo 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 | |||
143 | sudo ln -s /usr/bin/python3 /usr/bin/python | 135 | sudo ln -s /usr/bin/python3 /usr/bin/python |
144 | ``` | 136 | ``` |
145 | 137 | ||
146 | 6. Initialize the PostgreSQL database: | 138 | 6. Initialize the PostgreSQL database: |
147 | 139 | ||
148 | ``` | 140 | ``` |
149 | sudo postgresql-setup initdb | 141 | sudo postgresql-setup initdb |
150 | ``` | 142 | ``` |
151 | 143 | ||
152 | Now that dependencies are installed, before running PeerTube you should enable and start PostgreSQL and Redis: | 144 | Now that dependencies are installed, before running PeerTube you should enable and start PostgreSQL and Redis: |
153 | 145 | ||
154 | ``` | 146 | ``` |
155 | sudo systemctl enable --now redis | 147 | sudo systemctl enable --now redis |
@@ -174,13 +166,13 @@ usermod my-peertube-user -a -G wheel # Add my-peertube-user to sudoers | |||
174 | su my-peertube-user | 166 | su my-peertube-user |
175 | ``` | 167 | ``` |
176 | 168 | ||
177 | 3. (Optional) Install certbot (choose instructions for nginx and your distribution): | 169 | 3. (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 | ||
180 | 4. Install NodeJS 10.x: | 172 | 4. 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 | ||
183 | 5. Install yarn: | 175 | 5. 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 | ||
186 | 6. Enable [RPM Fusion](https://rpmfusion.org) for Fedora (available for x86, x86_64, armhfp) | 178 | 6. 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 | ``` |
196 | sudo dnf install nginx ffmpeg postgresql-server postgresql-contrib openssl gcc-c++ make redis git | 188 | sudo dnf install nginx ffmpeg postgresql-server postgresql-contrib openssl gcc-c++ make redis git |
197 | ffmpeg -version # Should be >= 3.x | 189 | ffmpeg -version # Should be >= 4.1 |
198 | g++ -v # Should be >= 5.x | 190 | g++ -v # Should be >= 5.x |
199 | ``` | 191 | ``` |
200 | 192 | ||
@@ -233,7 +225,7 @@ sudo firewall-cmd --reload | |||
233 | 225 | ||
234 | 10. Configure max ports | 226 | 10. Configure max ports |
235 | 227 | ||
236 | This is necessary if you are running dev setup, otherwise you will have errors with `nodemon` | 228 | This is necessary if you are running dev setup, otherwise you will have errors with `nodemon` |
237 | 229 | ||
238 | ``` | 230 | ``` |
239 | echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | 231 | echo 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 | ||
246 | On a fresh install of [FreeBSD](https://www.freebsd.org), new system or new jail: | 238 | On a fresh install of [FreeBSD](https://www.freebsd.org), new system or new jail: |
247 | 239 | ||
248 | 1. bootstrap pkg, initialize db and install peertube's dependencies, always as root (sudo not yet installed): | 240 | 1. bootstrap pkg, initialize db and install peertube's dependencies, always as root (sudo not yet installed): |
249 | 241 | ||
250 | ``` | 242 | ``` |
251 | pkg | 243 | pkg |
@@ -253,19 +245,19 @@ pkg update | |||
253 | pkg install -y sudo bash wget git python nginx pkgconf vips postgresql96-server postgresql96-contrib redis openssl node npm yarn ffmpeg unzip | 245 | pkg 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 | ||
256 | 2. Allow users in the wheel group (hope you don't forgot to add your user on wheel group!) to use sudo. | 248 | 2. 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 | ||
262 | Uncomment the line 90 | 254 | Uncomment the line 90 |
263 | 255 | ||
264 | ``` | 256 | ``` |
265 | %wheel ALL=(ALL) ALL | 257 | %wheel ALL=(ALL) ALL |
266 | ``` | 258 | ``` |
267 | 259 | ||
268 | 3. Enable nginx, redis, postgresql services and initialize database. | 260 | 3. Enable nginx, redis, postgresql services and initialize database. |
269 | 261 | ||
270 | ``` | 262 | ``` |
271 | sysrc postgresql_enable="YES" | 263 | sysrc postgresql_enable="YES" |
@@ -347,7 +339,7 @@ rc-update add postgresql-11 | |||
347 | rc-service redis start | 339 | rc-service redis start |
348 | rc-service postgresql-11 start | 340 | rc-service postgresql-11 start |
349 | ``` | 341 | ``` |
350 | 342 | ||
351 | ## Other distributions | 343 | ## Other distributions |
352 | 344 | ||
353 | Feel free to update this file in a pull request! | 345 | Feel free to update this file in a pull request! |