myhelp:mastodon
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| myhelp:mastodon [2026/01/19 09:28] – [Install Mastodon v4.5.4 on Rocky Linux 10] ulrich | myhelp:mastodon [2026/01/19 09:57] (current) – [Install Mastodon v4.5.4 on Rocky Linux 10] ulrich | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| </ | </ | ||
| - | Install additional RPMS: | + | Install additional RPMS as root: |
| nodejs, valkey (instead of redis), | nodejs, valkey (instead of redis), | ||
| < | < | ||
| - | 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 |
| </ | </ | ||
| - | Add user mastodon | + | Add user mastodon |
| < | < | ||
| mkdir / | mkdir / | ||
| Line 24: | Line 24: | ||
| </ | </ | ||
| + | Prepare the DB | ||
| + | < | ||
| + | postgres=# CREATE USER mastodon CREATEDB; | ||
| + | postgres=# \q | ||
| + | </ | ||
| + | Install ruby as user mastodon | ||
| + | < | ||
| + | git clone https:// | ||
| + | echo ' | ||
| + | echo 'eval " | ||
| + | source ~/.bashrc | ||
| + | git clone https:// | ||
| + | </ | ||
| + | |||
| + | Checkout mastodon code as user mastodon | ||
| + | < | ||
| + | git clone https:// | ||
| + | git checkout $(git tag -l | grep ' | ||
| + | </ | ||
| + | |||
| + | Install Ruby as user mastodon | ||
| + | < | ||
| + | RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install | ||
| + | </ | ||
| + | |||
| + | Install Ruby dependencies as user mastodon | ||
| + | < | ||
| + | bundle config deployment ' | ||
| + | bundle config without ' | ||
| + | bundle install | ||
| + | </ | ||
| + | |||
| + | Fix some nodejs stuff as root | ||
| + | < | ||
| + | npm install -g yarn | ||
| + | rm -f / | ||
| + | rm -f / | ||
| + | npm install -g corepack | ||
| + | </ | ||
| + | |||
| + | Install nodejs dependencies as user mastodon | ||
| + | < | ||
| + | corepack enable | ||
| + | corepack prepare yarn@4.12.0 --activate | ||
| + | yarn install | ||
| + | </ | ||
| ====== Install Mastodon on Rocky Linux 9 ====== | ====== Install Mastodon on Rocky Linux 9 ====== | ||
| ===== Pre-requisites ===== | ===== Pre-requisites ===== | ||
myhelp/mastodon.1768814913.txt.gz · Last modified: by ulrich
