diff options
Diffstat (limited to 'support/doc')
-rw-r--r-- | support/doc/dependencies.md | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/support/doc/dependencies.md b/support/doc/dependencies.md index 94fabe11c..74a8b117e 100644 --- a/support/doc/dependencies.md +++ b/support/doc/dependencies.md | |||
@@ -84,6 +84,74 @@ $ sudo service redis start | |||
84 | $ sudo service postgresql start | 84 | $ sudo service postgresql start |
85 | ``` | 85 | ``` |
86 | 86 | ||
87 | ## Fedora | ||
88 | |||
89 | 0. Upgrade your packages: | ||
90 | ``` | ||
91 | dnf upgrade | ||
92 | ``` | ||
93 | 1. Add a user with sudoers group access: | ||
94 | ``` | ||
95 | useradd my-peertube-user | ||
96 | passwd my-peertube-user | ||
97 | usermod my-peertube-user -a -G wheel # Add my-peertube-user to sudoers | ||
98 | su my-peertube-user | ||
99 | ``` | ||
100 | 2. (Optional) Install certbot (choose instructions for nginx and your distribution) : | ||
101 | [https://certbot.eff.org/all-instructions](https://certbot.eff.org/all-instructions) | ||
102 | 3. Install NodeJS 8.x (current LTS): | ||
103 | [https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora) | ||
104 | 4. Install yarn: | ||
105 | [https://yarnpkg.com/en/docs/install](https://yarnpkg.com/en/docs/install) | ||
106 | 5. Enable [RPM Fusion](https://rpmfusion.org) for Fedora (available for x86, x86_64, armhfp) | ||
107 | ``` | ||
108 | sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm | ||
109 | ``` | ||
110 | This is necessary because `ffmpeg` is not in the Fedora repos. | ||
111 | |||
112 | 6. Run: | ||
113 | ``` | ||
114 | sudo dnf install nginx ffmpeg postgresql-server postgresql-contrib openssl gcc-c++ make redis git | ||
115 | ffmpeg -version # Should be >= 3.x | ||
116 | g++ -v # Should be >= 5.x | ||
117 | ``` | ||
118 | 7. Post-installation | ||
119 | |||
120 | _from [PostgreSQL documentation](https://www.postgresql.org/download/linux/redhat/):_ | ||
121 | > Due to policies for Red Hat family distributions, the PostgreSQL installation will not be enabled for automatic start or have the database initialized automatically. | ||
122 | ``` | ||
123 | # PostgreSQL | ||
124 | sudo postgresql-setup initdb | ||
125 | sudo systemctl enable postgresql.service | ||
126 | sudo systemctl start postgresql.service | ||
127 | # Nginx | ||
128 | sudo systemctl enable nginx.service | ||
129 | sudo systemctl start nginx.service | ||
130 | # Redis | ||
131 | sudo systemctl enable redis.service | ||
132 | sudo systemctl start redis.service | ||
133 | ``` | ||
134 | 8. Firewall | ||
135 | |||
136 | By default, you cannot acces your server via public IP. To do so, you must configure firewall: | ||
137 | ``` | ||
138 | # Ports used by peertube dev setup | ||
139 | sudo firewall-cmd --permanent --zone=public --add-port=3000/tcp | ||
140 | sudo firewall-cmd --permanent --zone=public --add-port=9000/tcp | ||
141 | # Optional | ||
142 | sudo firewall-cmd --permanent --zone=public --add-service=http | ||
143 | sudo firewall-cmd --permanent --zone=public --add-service=https | ||
144 | # Reload firewall | ||
145 | sudo firewall-cmd --reload | ||
146 | ``` | ||
147 | 9. Configure max ports | ||
148 | |||
149 | This is necessary if you are running dev setup, otherwise you will have errors with `nodemon` | ||
150 | ``` | ||
151 | echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
152 | ``` | ||
153 | [More info](https://stackoverflow.com/questions/34662574/node-js-getting-error-nodemon-internal-watch-failed-watch-enospc#34664097) | ||
154 | |||
87 | ## FreeBSD | 155 | ## FreeBSD |
88 | 156 | ||
89 | On a fresh install of [FreeBSD](https://www.freebsd.org), new system or new jail: | 157 | On a fresh install of [FreeBSD](https://www.freebsd.org), new system or new jail: |