aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc/dependencies.md
diff options
context:
space:
mode:
authoram97 <andy.maldo@hotmail.com>2018-09-23 15:14:15 +0200
committerRigel Kent <par@rigelk.eu>2018-09-23 15:14:15 +0200
commit0a314a99874716a0723fbc37b44dbdf2be59e589 (patch)
tree561c713154b94ccfabe03c0f4adf893c67af2c1e /support/doc/dependencies.md
parenta43e21820da3ec9ece00dab9f1574c3f5f8d4d10 (diff)
downloadPeerTube-0a314a99874716a0723fbc37b44dbdf2be59e589.tar.gz
PeerTube-0a314a99874716a0723fbc37b44dbdf2be59e589.tar.zst
PeerTube-0a314a99874716a0723fbc37b44dbdf2be59e589.zip
add dependencies for Fedora (#1111)
Diffstat (limited to 'support/doc/dependencies.md')
-rw-r--r--support/doc/dependencies.md68
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
890. Upgrade your packages:
90```
91dnf upgrade
92```
931. Add a user with sudoers group access:
94```
95useradd my-peertube-user
96passwd my-peertube-user
97usermod my-peertube-user -a -G wheel # Add my-peertube-user to sudoers
98su my-peertube-user
99```
1002. (Optional) Install certbot (choose instructions for nginx and your distribution) :
101[https://certbot.eff.org/all-instructions](https://certbot.eff.org/all-instructions)
1023. 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)
1044. Install yarn:
105[https://yarnpkg.com/en/docs/install](https://yarnpkg.com/en/docs/install)
1065. Enable [RPM Fusion](https://rpmfusion.org) for Fedora (available for x86, x86_64, armhfp)
107```
108sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
109```
110This is necessary because `ffmpeg` is not in the Fedora repos.
111
1126. Run:
113```
114sudo dnf install nginx ffmpeg postgresql-server postgresql-contrib openssl gcc-c++ make redis git
115ffmpeg -version # Should be >= 3.x
116g++ -v # Should be >= 5.x
117```
1187. 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
124sudo postgresql-setup initdb
125sudo systemctl enable postgresql.service
126sudo systemctl start postgresql.service
127# Nginx
128sudo systemctl enable nginx.service
129sudo systemctl start nginx.service
130# Redis
131sudo systemctl enable redis.service
132sudo systemctl start redis.service
133```
1348. Firewall
135
136By default, you cannot acces your server via public IP. To do so, you must configure firewall:
137```
138# Ports used by peertube dev setup
139sudo firewall-cmd --permanent --zone=public --add-port=3000/tcp
140sudo firewall-cmd --permanent --zone=public --add-port=9000/tcp
141# Optional
142sudo firewall-cmd --permanent --zone=public --add-service=http
143sudo firewall-cmd --permanent --zone=public --add-service=https
144# Reload firewall
145sudo firewall-cmd --reload
146```
1479. Configure max ports
148
149This is necessary if you are running dev setup, otherwise you will have errors with `nodemon`
150```
151echo 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
89On a fresh install of [FreeBSD](https://www.freebsd.org), new system or new jail: 157On a fresh install of [FreeBSD](https://www.freebsd.org), new system or new jail: