User Tools

Site Tools


myhelp:mastodon

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
myhelp:mastodon [2026/01/19 09:23] – [Install Mastodon on Rocky Linux 10] ulrichmyhelp:mastodon [2026/01/19 09:57] (current) – [Install Mastodon v4.5.4 on Rocky Linux 10] ulrich
Line 2: Line 2:
  
  
-====== Install Mastodon on Rocky Linux 10 ======+====== Install Mastodon v4.5.4 on Rocky Linux 10 ======
 Enable repos: remi, rpmfusion, epel Enable repos: remi, rpmfusion, epel
 <code> <code>
Line 9: Line 9:
 dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm -y dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm -y
 yum install -y https://rpms.remirepo.net/enterprise/remi-release-10.rpm yum install -y https://rpms.remirepo.net/enterprise/remi-release-10.rpm
-dnf -y install https://extras.getpagespeed.com/release-latest.rpm 
 </code> </code>
  
-Install additional RPMS:+Install additional RPMS as root:
 nodejs, valkey (instead of redis),  nodejs, valkey (instead of redis), 
 <code> <code>
-yum install -y bison ca-certificates certbot.noarch ffmpeg.x86_64 file gdbm-devel git ImageMagick.x86_64 iotop jemalloc-devel.x86_64 jemalloc.x86_64 libffi-devel libicu-devel libidn-devel libxslt-devel.x86_64 libxslt.x86_64 libyaml-devel make ncurses-devel net-tools nodejs24.x86_64 npm postgresql-devel protobuf-c-compiler.x86_64 python3-certbot-nginx.noarch readline-devel.x86_64 readline.x86_64 valkey.x86_64 vips vips-devel+yum install -y bison ca-certificates certbot.noarch ffmpeg.x86_64 file gdbm-devel git ImageMagick.x86_64 iotop jemalloc-devel.x86_64 jemalloc.x86_64 gcc gcc-c++ libffi-devel libicu-devel libidn-devel libxslt-devel.x86_64 libxslt.x86_64 libyaml-devel make ncurses-devel net-tools nodejs24.x86_64 npm postgresql-devel protobuf-c-compiler.x86_64 python3-certbot-nginx.noarch readline-devel.x86_64 readline.x86_64 valkey.x86_64 vips vips-devel
 </code> </code>
  
 +Add user mastodon as root
 +<code>
 +mkdir /opt/mastodon
 +useradd -d /opt/mastodon mastodon
 +chown -R mastodon:mastodon /opt/mastodon/
 +</code>
  
 +Prepare the DB
 +<code>
 +postgres=# CREATE USER mastodon CREATEDB;
 +postgres=# \q
 +</code>
 +
 +Install ruby as user mastodon
 +<code>
 +git clone https://github.com/rbenv/rbenv.git ~/.rbenv
 +echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
 +echo 'eval "$(rbenv init -)"' >> ~/.bashrc
 +source ~/.bashrc
 +git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
 +</code>
 +
 +Checkout mastodon code as user mastodon
 +<code>
 +git clone https://github.com/mastodon/mastodon.git live && cd live
 +git checkout $(git tag -l | grep '^v[0-9.]*$' | sort -V | tail -n 1)
 +</code>
 +
 +Install Ruby as user mastodon
 +<code>
 +RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install
 +</code>
 +
 +Install Ruby dependencies as user mastodon
 +<code>
 +bundle config deployment 'true'
 +bundle config without 'development test'
 +bundle install
 +</code>
 +
 +Fix some nodejs stuff as root
 +<code>
 +npm install -g yarn
 +rm -f /usr/local/bin/yarn #  when a old yarn version is installed
 +rm -f /usr/local/bin/yarnpkg #  when a old yarn version is installed
 +npm install -g corepack
 +</code>
 +
 +Install nodejs dependencies as user mastodon
 +<code>
 +corepack enable
 +corepack prepare yarn@4.12.0 --activate
 +yarn install
 +</code>
 ====== Install Mastodon on Rocky Linux 9 ====== ====== Install Mastodon on Rocky Linux 9 ======
 ===== Pre-requisites ===== ===== Pre-requisites =====
myhelp/mastodon.1768814621.txt.gz · Last modified: by ulrich