Advertisement
Guest User

Mastodon Install on Fedora

a guest
Jan 18th, 2020
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. # add rpmfusion
  2. dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-31.noarch.rpm
  3.  
  4. dnf install ImageMagick ffmpeg libpq-devel libxml2-devel libxslt-devel file git-core g++ protobuf-devel protobuf-compiler pkg-config nodejs gcc autoconf bison openssl-devel glibc make dpkg-dev libyaml-devel readline-devel zlib-devel ncurses-devel libffi-devel gdbm-libs gdbm-devel nginx redis postgresql postgresql-contrib certbot python3-certbot-nginx nodejs-yarn libidn2-devel libicu-devel jemalloc-devel
  5.  
  6. # symlink yarn from nodejs-yarn
  7. ln -s /usr/bin/nodejs-yarn /usr/local/bin/yarn
  8.  
  9. # add mastodon user with locked down shell; --disabled-login is for Debian
  10. useradd -m -d /home/mastodon -r -s /usr/sbin/nologin mastodon
  11.  
  12. # switch to mastodon user and specify bash shell
  13. sudo -u mastodon bash
  14.  
  15. # Install rbenv
  16.  
  17. # init postgresql
  18. sudo postgresql-setup --initdb
  19.  
  20. # Create PostgreSQL user
  21.  
  22. # run redis
  23. redis-server
  24.  
  25. # Set up Mastodon
  26.  
  27. # “oh, and also? the wholes /sites-available and /sites-enabled is a Debianism. We configure our services manually. We use conf.d!”
  28.  
  29. # edit /etc/nginx/nginx.conf to remove the default server block
  30. cp /home/mastodon/live/dist/nginx.conf /etc/nginx/conf.d/mastodon.conf
  31.  
  32. # You don’t need to symlink it
  33.  
  34. # SSL Certificate
  35.  
  36. # systemd Services
  37.  
  38. # Starting the services will probably fail, because you are using setenforce 1, right?
  39.  
  40. # add selinux policies
  41. dnf install policycoreutils-python-utils
  42.  
  43. # Use audit2allow to build selinux modules/policies
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement