2017-04-08 04:04:27 +02:00
# Mastodon for YunoHost
2019-03-18 04:22:38 +01:00
[![Integration level ](https://dash.yunohost.org/integration/mastodon.svg )](https://dash.yunohost.org/appci/app/mastodon)
2019-05-10 11:42:07 +02:00
[![Install Mastodon with YunoHost ](https://install-app.yunohost.org/install-with-yunohost.png )](https://install-app.yunohost.org/?app=mastodon)
2019-03-18 04:22:38 +01:00
2019-05-30 10:37:28 +02:00
*[Lire ce readme en français.](./README_fr.md)*
2019-03-18 04:22:38 +01:00
2019-05-10 11:42:07 +02:00
> *This package allow you to install Mastodon quickly and simply on a YunoHost server.
2019-03-18 04:22:38 +01:00
If you don't have YunoHost, please see [here ](https://yunohost.org/#/install ) to know how to install and enjoy it.*
2017-06-07 20:42:42 +02:00
:warning: UPDATE 05/06/17 :This app can work now on ARM, but installation takes several hours and you must add a swapfile of 1GB.
2017-05-31 17:03:04 +02:00
2017-04-17 00:30:23 +02:00
:warning: This application uses the Debian backports packages, do not install this application directly in production
2019-03-18 04:22:38 +01:00
## Overview
2019-05-30 10:37:28 +02:00
Mastodon is a free, open-source social network. A decentralized alternative to commercial platforms, it avoids the risks of a single company monopolizing your communication. Pick a server that you trust — whichever you choose, you can interact with everyone else. Anyone can run their own Mastodon instance and participate in the social network seamlessly.
2017-04-08 04:04:27 +02:00
2019-06-23 01:23:49 +02:00
**Shipped version:** 2.9.2
2017-04-16 16:33:17 +02:00
2019-03-18 04:22:38 +01:00
## Screenshots
2017-04-08 04:04:27 +02:00
2019-03-18 04:22:38 +01:00
![](https://framalibre.org/sites/default/files/mastodon.png)
2017-04-08 04:04:27 +02:00
2019-03-18 04:22:38 +01:00
[Source code ](https://github.com/tootsuite/mastodon )
2017-04-16 16:08:42 +02:00
2019-03-18 04:22:38 +01:00
## Configuration
2017-04-16 16:08:42 +02:00
2017-06-07 20:42:42 +02:00
#### Adding "swapfile" If you have less than 2Go of RAM
```
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1024000
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
```
add this line on /etc/fstab
```
/swapfile none swap sw 0 0
```
2017-04-08 04:04:27 +02:00
2017-06-07 20:42:42 +02:00
### Install
#### Using __screen__ in case of disconnect
```
$ sudo apt-get install screen
$ screen
$ sudo yunohost app install https://github.com/YunoHost-Apps/mastodon_ynh.git
```
Recover after disconnect:
```
$ screen -d
$ screen -r
```
2017-05-07 22:23:01 +02:00
The admin user is automatically created as: user@domain.tld
2017-04-08 04:04:27 +02:00
### Update
2017-06-07 20:42:42 +02:00
#### Using __screen__ highly recommended
2017-04-08 04:04:27 +02:00
2019-06-13 21:09:36 +02:00
`$ sudo yunohost app upgrade mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh --debug `
2017-04-16 16:08:42 +02:00
## Recommendation
You can't install Mastodon in subdirectory, you must use a domain or subdomain for this application.
It seems important to close the inscriptions for your Mastodon, so that it remains a private body. We invite you to block remote malicious instances from the administration interface. You can also add text on your home page.
2019-03-18 04:22:38 +01:00
## Documentation
* Official documentation: https://docs.joinmastodon.org/
## YunoHost specific features
#### Supported architectures
2019-05-10 11:40:40 +02:00
* x86-64b - [![Build Status ](https://ci-apps.yunohost.org/ci/logs/mastodon%20%28Apps%29.svg )](https://ci-apps.yunohost.org/ci/apps/mastodon/)
* ARMv8-A - [![Build Status ](https://ci-apps-arm.yunohost.org/ci/logs/mastodon%20%28Apps%29.svg )](https://ci-apps-arm.yunohost.org/ci/apps/mastodon/)
* Jessie x86-64b - [![Build Status ](https://ci-stretch.nohost.me/ci/logs/mastodon%20%28Apps%29.svg )](https://ci-stretch.nohost.me/ci/apps/mastodon/)
2019-03-18 04:22:38 +01:00
## Links
* Report a bug: https://github.com/YunoHost-Apps/mastodon_ynh/issues
2019-03-18 04:26:32 +01:00
* App website: https://joinmastodon.org/
2019-05-10 11:43:31 +02:00
* Upstream app repository: https://github.com/tootsuite/mastodon
2019-03-18 04:22:38 +01:00
* YunoHost website: https://yunohost.org/
---
Developers info
----------------
**Only if you want to use a testing branch for coding, instead of merging directly into master.**
Please do your pull request to the [testing branch ](https://github.com/YunoHost-Apps/mastodon_ynh/tree/testing ).
To try the testing branch, please proceed like that.
```
sudo yunohost app install https://github.com/YunoHost-Apps/mastodon_ynh/tree/testing --debug
or
sudo yunohost app upgrade mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh/tree/testing --debug
```