diff options
| author | nemsia <nemsia@nemsia.org> | 2017-07-13 00:27:17 +0200 |
|---|---|---|
| committer | nemsia <nemsia@nemsia.org> | 2017-07-13 00:27:17 +0200 |
| commit | 60ae6587feb89feb6221d43d89fac40eb44165a8 (patch) | |
| tree | b9cdf6ea7270150a29fda581c2f2b26c0225d6eb /README.md | |
| parent | 8f88641088a09aa466d6d2de760d9470b3d4d322 (diff) | |
| parent | 8711b925306be63d7b2b7669fe2ef3cf8ebdc476 (diff) | |
| download | mastodon_ynh-60ae6587feb89feb6221d43d89fac40eb44165a8.tar.gz mastodon_ynh-60ae6587feb89feb6221d43d89fac40eb44165a8.tar.bz2 mastodon_ynh-60ae6587feb89feb6221d43d89fac40eb44165a8.zip | |
Merge remote-tracking branch 'refs/remotes/YunoHost-Apps/master' into upgrade-from-pre-release
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 87 |
1 files changed, 53 insertions, 34 deletions
@@ -1,14 +1,18 @@ # Mastodon for YunoHost -[](https://github.com/YunoHost-Apps/mastodon_ynh/releases) +[](https://github.com/YunoHost-Apps/mastodon_ynh/releases) [](https://github.com/YunoHost-Apps/mastodon_ynh/milestones) [](https://github.com/YunoHost-Apps/mastodon_ynh#dependencies) [](https://raw.githubusercontent.com/YunoHost-Apps/mastodon_ynh/master/LICENSE) [](https://github.com/YunoHost/yunohost) [](https://github.com/YunoHost-Apps/mastodon_ynh/issues) +:warning: MAJ 05/06/17 :Cette application peut maintenant fonctionner sur ARM, mais l'installation prend plusieurs heures et il faut ajouter un swapfile de 1Go. + :warning: Cette application utilise les packages backports de Debian, nous vous recommendons de ne pas installer cette application directement en production +: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. + :warning: This application uses the Debian backports packages, do not install this application directly in production ## Mastodon c'est quoi ? @@ -17,27 +21,35 @@ Mastodon est un réseau social gratuit et open source. Une alternative décentra [Source code](https://github.com/tootsuite/mastodon) -### Installation +#### Ajout d'un "swapfile" si vous avez moins de 2Go de RAM +``` +sudo dd if=/dev/zero of=/swapfile bs=1024 count=1024000 +sudo chmod 600 /swapfile +sudo mkswap /swapfile +sudo swapon /swapfile +``` +ajouter cette ligne dans /etc/fstab +``` +/swapfile none swap sw 0 0 +``` -`$ sudo yunohost app install https://github.com/YunoHost-Apps/mastodon_ynh.git` +### Installation +#### Utilisation de __screen__ en cas de déconnection +``` +$ sudo apt-get install screen +$ screen +$ sudo yunohost app install https://github.com/YunoHost-Apps/mastodon_ynh.git +``` +Récuperer l'installation après une deconnection: +``` +$ screen -d +$ screen -r +``` L'utilisateur admin est crée automatiquement comme: user@domain.tld -<del>Une fois l'installation effectuée, vous pouvez créer un compte manuellement sur Mastodon depuis votre navigateur. Lorsque vous avez crée le premier utilisateur vous pouvez créer l'administrateur de votre Mastodon. Pour celà, il faut impérativement passer par une interface en ligne de commande et taper les commandes suivantes :</del> - -<del>**se connecter en sudo sur l'utilisateur**</del> - -<del>`$ sudo su mastodon`</del> - -<del>**se placer dans le répertoire où est installé Mastodon**</del> - -<del>`$ cd /opt/mastodon/live`</del> - -<del>**lancer la commande de création de l'administrateur**</del> - -<del>`$ RAILS_ENV=production bin/bundle exec rails mastodon:make_admin USERNAME=*Nom de votre utilisateur*`</del> - ### Mise à jour +#### Utilisation de __screen__ fortement recommandé `$ sudo yunohost app upgrade --verbose mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh.git` @@ -53,27 +65,34 @@ Mastodon is a free, open-source social network. A decentralized alternative to c [Source code](https://github.com/tootsuite/mastodon) -### Install - -`$ sudo yunohost app install https://github.com/YunoHost-Apps/mastodon_ynh.git` +#### 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 +``` +### 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 +``` The admin user is automatically created as: user@domain.tld -<del>After installation, you can create an account manually on Mastodon from your browser. When you have created the first user you can create the administrator of your Mastodon. For this, it is imperative to go through a command line and type the following commands:</del> - -<del>**sudo to the user**</del> - -<del>`$ sudo su mastodon`</del> - -<del>**change directory where Mastodon is installed**</del> - -<del>`$ cd /opt/mastodon/live`</del> - -<del>**launch the command to create the administrator**</del> - -<del>`$ RAILS_ENV=production bin/bundle exec rails mastodon:make_admin USERNAME=*username*`</del> - ### Update +#### Using __screen__ highly recommended `$ sudo yunohost app upgrade --verbose mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh.git` |
