2019-03-14 14:00:34 +00:00
|
|
|
# Dependencies
|
|
|
|
|
|
|
|
|
|
|
|
- [Debian / Ubuntu and derivatives](#debian--ubuntu-and-derivatives)
|
|
|
|
- [Arch Linux](#arch-linux)
|
|
|
|
- [Other distributions](#other-distributions)
|
|
|
|
|
|
|
|
## Debian / Ubuntu and derivatives
|
|
|
|
1. On a fresh Debian/Ubuntu, as root user, install basic utility programs needed for the installation
|
|
|
|
|
|
|
|
```
|
2019-05-19 09:38:09 +00:00
|
|
|
sudo apt install curl sudo unzip vim
|
2019-03-14 14:00:34 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
2. It would be wise to disable root access and to continue this tutorial with a user with sudoers group access
|
2019-05-19 09:38:09 +00:00
|
|
|
3. Install certbot (choose instructions for nginx and your distribution):
|
2019-03-14 14:00:34 +00:00
|
|
|
[https://certbot.eff.org/all-instructions](https://certbot.eff.org/all-instructions)
|
|
|
|
4. Install NodeJS 10.x (current LTS):
|
|
|
|
[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)
|
2019-05-19 09:38:09 +00:00
|
|
|
5. Install yarn, and be sure to have [a recent version](https://github.com/yarnpkg/yarn/releases/latest):
|
|
|
|
[https://yarnpkg.com/en/docs/install#linux-tab](https://yarnpkg.com/en/docs/install#linux-tab)
|
|
|
|
6. Install Erlang and Elixir:
|
2019-03-14 14:00:34 +00:00
|
|
|
[https://elixir-lang.org/install.html#unix-and-unix-like](https://elixir-lang.org/install.html#unix-and-unix-like)
|
2019-05-19 09:38:09 +00:00
|
|
|
7. Install PostGIS:
|
2019-03-14 14:00:34 +00:00
|
|
|
[https://postgis.net/install/](https://postgis.net/install/)
|
2019-05-19 09:38:09 +00:00
|
|
|
8. Run:
|
2019-03-14 14:00:34 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install nginx postgresql postgresql-contrib openssl make git esl-erlang elixir postgis
|
|
|
|
```
|
|
|
|
|
2019-05-19 09:38:09 +00:00
|
|
|
Now that dependencies are installed, before running Mobilizon you should start PostgreSQL:
|
2019-03-14 14:00:34 +00:00
|
|
|
```
|
|
|
|
sudo systemctl start postgresql
|
|
|
|
```
|
|
|
|
|
|
|
|
## Arch Linux
|
|
|
|
|
|
|
|
1. Run:
|
|
|
|
|
|
|
|
```
|
2019-04-10 15:30:18 +00:00
|
|
|
sudo pacman -S nodejs postgresql openssl git wget unzip base-devel yarn nginx elixir postgis
|
2019-03-14 14:00:34 +00:00
|
|
|
```
|
|
|
|
|
2019-05-19 09:38:09 +00:00
|
|
|
Now that dependencies are installed, before running Mobilizon you should start PostgreSQL and Redis:
|
2019-03-14 14:00:34 +00:00
|
|
|
```
|
|
|
|
sudo systemctl start postgresql
|
|
|
|
```
|
|
|
|
|
|
|
|
## Other distributions
|
|
|
|
|
|
|
|
Feel free to update this file in a pull request!
|