2018-08-08 15:07:02 +08:00
# Installing
2018-09-09 05:23:34 +08:00
If you've [configured your DNS ](configuring-dns.md ) and have [configured the playbook ](configuring-playbook.md ), you can start the installation procedure.
2018-08-08 15:07:02 +08:00
Run this as-is to set up a server:
```bash
ansible-playbook -i inventory/hosts setup.yml --tags=setup-all
```
2020-01-19 01:55:26 +08:00
**Note**: if you don't use SSH keys for authentication, but rather a regular password, you may need to add `--ask-pass` to the above (and all other) Ansible commands.
2018-08-08 15:07:02 +08:00
2020-01-19 01:55:26 +08:00
The above command **doesn't start any services just yet** (another step does this later - below).
Feel free to **re-run this setup command any time** you think something is off with the server configuration.
2018-08-08 15:07:02 +08:00
2018-09-17 15:51:46 +08:00
## Things you might want to do after installing
2018-08-08 15:07:02 +08:00
After installing, but before starting the services, you may want to do additional things like:
- [Importing an existing SQLite database (from another installation) ](importing-sqlite.md ) (optional)
2019-01-01 20:40:48 +08:00
- [Importing an existing Postgres database (from another installation) ](importing-postgres.md ) (optional)
2019-01-01 21:37:57 +08:00
- [Importing `media_store` data files from an existing installation ](importing-media-store.md ) (optional)
2018-08-08 15:07:02 +08:00
2018-09-17 15:51:46 +08:00
## Starting the services
2018-08-08 15:07:02 +08:00
When you're ready to start the Matrix services (and set them up to auto-start in the future):
```bash
ansible-playbook -i inventory/hosts setup.yml --tags=start
```
2018-09-17 15:51:46 +08:00
Now that the services are running, you might want to:
2019-02-05 17:07:08 +08:00
- **finalize the installation process** (required for federation to work!) by [Configuring Service Discovery via .well-known ](configuring-well-known.md )
- or [create your first user account ](registering-users.md )
2019-03-10 19:17:56 +08:00
- or [set up the Dimension Integrations Manager ](configuring-playbook-dimension.md )
2019-02-05 17:07:08 +08:00
- or [check if services work ](maintenance-checking-services.md )
2018-12-12 00:15:09 +08:00
- or learn how to [upgrade your services when new versions are released ](maintenance-upgrading-services.md )
2019-06-12 04:06:25 +08:00
- or learn how to [migrate to another server ](maintenance-migrating.md )