diff options
-rw-r--r-- | support/doc/dependencies.md | 51 |
1 files changed, 45 insertions, 6 deletions
diff --git a/support/doc/dependencies.md b/support/doc/dependencies.md index f27e82f32..810846682 100644 --- a/support/doc/dependencies.md +++ b/support/doc/dependencies.md | |||
@@ -82,7 +82,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/) | 82 | * 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) | 83 | * Compile - [https://gist.github.com/mustafaturan/7053900#file-latest-ffmpeg-centos6-sh](https://gist.github.com/mustafaturan/7053900#file-latest-ffmpeg-centos6-sh) |
84 | 84 | ||
85 | 4. Run: | 85 | 4. Install Packages: |
86 | 86 | ||
87 | ``` | 87 | ``` |
88 | sudo yum update | 88 | sudo yum update |
@@ -103,7 +103,7 @@ 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 | 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 |
104 | ``` | 104 | ``` |
105 | 105 | ||
106 | Initialize the PostgreSQL database: | 106 | 6. Initialize the PostgreSQL database: |
107 | 107 | ||
108 | ``` | 108 | ``` |
109 | sudo postgresql-setup initdb | 109 | sudo postgresql-setup initdb |
@@ -112,12 +112,51 @@ sudo postgresql-setup initdb | |||
112 | Now that dependencies are installed, before running PeerTube you should enable and start PostgreSQL and Redis: | 112 | Now that dependencies are installed, before running PeerTube you should enable and start PostgreSQL and Redis: |
113 | 113 | ||
114 | ``` | 114 | ``` |
115 | sudo systemctl enable redis | 115 | sudo systemctl enable --now redis |
116 | sudo systemctl enable postgresql | 116 | sudo systemctl enable --now postgresql |
117 | sudo systemctl start redis | ||
118 | sudo systemctl start postgresql | ||
119 | ``` | 117 | ``` |
120 | 118 | ||
119 | ## Centos 8 | ||
120 | |||
121 | 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) | ||
123 | |||
124 | 2. Install yarn: | ||
125 | [https://yarnpkg.com/en/docs/install](https://yarnpkg.com/en/docs/install) | ||
126 | |||
127 | 3. Install or compile ffmpeg: | ||
128 | |||
129 | * Install - [https://linuxize.com/post/how-to-install-ffmpeg-on-centos-8/](https://linuxize.com/post/how-to-install-ffmpeg-on-centos-8/) | ||
130 | |||
131 | 4. Install packages: | ||
132 | |||
133 | ``` | ||
134 | sudo dnf update | ||
135 | sudo dnf install epel-release | ||
136 | sudo dnf update | ||
137 | sudo dnf install nginx postgresql postgresql-server postgresql-contrib openssl gcc-c++ make wget redis git | ||
138 | ``` | ||
139 | |||
140 | 5. You'll need a symlink for python3 to python for youtube-dl to work | ||
141 | |||
142 | ``` | ||
143 | sudo ln -s /usr/bin/python3 /usr/bin/python | ||
144 | ``` | ||
145 | |||
146 | 6. Initialize the PostgreSQL database: | ||
147 | |||
148 | ``` | ||
149 | sudo postgresql-setup initdb | ||
150 | ``` | ||
151 | |||
152 | Now that dependencies are installed, before running PeerTube you should enable and start PostgreSQL and Redis: | ||
153 | |||
154 | ``` | ||
155 | sudo systemctl enable --now redis | ||
156 | sudo systemctl enable --now postgresql | ||
157 | ``` | ||
158 | |||
159 | |||
121 | ## Fedora | 160 | ## Fedora |
122 | 161 | ||
123 | 1. Upgrade your packages: | 162 | 1. Upgrade your packages: |