en:mastodon
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:mastodon [2024/02/10 11:39] – domele | en:mastodon [2026/08/03 19:11] (current) – Automatic push translation domele | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ~~~NOCACHE~~~ | ~~~NOCACHE~~~ | ||
| - | FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME | + | FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME |
| < | < | ||
| '' | '' | ||
| Line 10: | Line 10: | ||
| '' | '' | ||
| </ | </ | ||
| - | How-to Install | + | How to install |
| Line 16: | Line 16: | ||
| ===== Debian: ===== | ===== Debian: ===== | ||
| - | * This will be a rapid and dirty Tutorial | + | * This is a quick and rough guide to get the most out of it. |
| + | * I would also suggest installing apt-cacher-ng on the host and adding it to the VM: | ||
| + | * < | ||
| * I assume you use a fresh, not used System. | * I assume you use a fresh, not used System. | ||
| * If we need to compile, we use ccache here to speed up due it might a 50/50 chance of a failure ;-) | * If we need to compile, we use ccache here to speed up due it might a 50/50 chance of a failure ;-) | ||
| + | * I also assume that this is a VM/ | ||
| + | * We Assume, you use Debian 12 - if you use i.e. debian 11 use this before: | ||
| + | * < | ||
| + | OLDDISTRI=bullseye | ||
| + | sed -i ' | ||
| + | sed -i ' | ||
| Line 26: | Line 34: | ||
| * < | * < | ||
| INSTALLPATH=/ | INSTALLPATH=/ | ||
| - | apt install -qy curl gnupg2 ca-certificates lsb-release debian-archive-keyring sudo \ | + | apt install -qy curl gnupg2 ca-certificates lsb-release debian-archive-keyring sudo git build-essential etckeeper |
| - | git build-essential etckeeper | + | |
| - | file git-core g++ libprotobuf-dev protobuf-compiler pkg-config nodejs gcc autoconf | + | |
| - | bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev | + | |
| - | libncurses5-dev libffi-dev libgdbm3 libgdbm-dev nginx libidn11-dev | + | |
| - | libicu-dev ccache libgdm1 libgdm-dev patch rustc libgmp-dev | + | |
| - | libgdbm6 libdb-dev uuid-dev git nano iptables-persistent | + | |
| sudo curl https:// | sudo curl https:// | ||
| sudo curl -fsSL https:// | sudo curl -fsSL https:// | ||
| Line 39: | Line 42: | ||
| echo "deb http:// | echo "deb http:// | ||
| echo " | echo " | ||
| - | sudo install -m 0755 -d / | ||
| sudo curl -fsSL https:// | sudo curl -fsSL https:// | ||
| sudo chmod a+r / | sudo chmod a+r / | ||
| Line 49: | Line 51: | ||
| sudo tee / | sudo tee / | ||
| for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done | for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done | ||
| - | sudo apt -qy update && sudo apt -qy dist-upgrade | + | sudo apt -qy update && sudo apt -qy dist-upgrade |
| sudo update-ccache-symlinks | sudo update-ccache-symlinks | ||
| echo PATH="/ | echo PATH="/ | ||
| PATH="/ | PATH="/ | ||
| + | sudo install -m 0755 -d / | ||
| </ | </ | ||
| Line 59: | Line 61: | ||
| - | ===== Downloading | + | ===== Downloading |
| - | INSTALLPATH=/ | + | INSTALLPATH=/ |
| git clone https:// | git clone https:// | ||
| + | git clone https:// | ||
| + | cd ~/.rbenv && src/ | ||
| + | echo ' | ||
| + | echo 'eval " | ||
| + | source ~/.bashrc | ||
| + | cd $INSTALLPATH | ||
| + | gem install bundler | ||
| + | git clone https:// | ||
| + | git clone https:// | ||
| + | cd $INSTALLPATH && rbenv install 3.2.3 | ||
| + | cd $INSTALLPATH && rbenv global 3.2.3 | ||
| - | ===== Setup Mastodon: User and Repository | + | ===== Setting up Mastodon: |
| FIXME | FIXME | ||
| * < | * < | ||
| INSTALLPATH=/ | INSTALLPATH=/ | ||
| INSTALLUSER=mastodon | INSTALLUSER=mastodon | ||
| - | sudo adduser $INSTALLUSER | + | sudo adduser $INSTALLUSER |
| sudo adduser $INSTALLUSER docker | sudo adduser $INSTALLUSER docker | ||
| + | sudo usermod --home=$INSTALLPATH $INSTALLUSER | ||
| sudo usermod -g $INSTALLUSER www-data | sudo usermod -g $INSTALLUSER www-data | ||
| sudo usermod -g www-data $INSTALLUSER | sudo usermod -g www-data $INSTALLUSER | ||
| + | sudo chown -R $INSTALLUSER: | ||
| sudo chmod 755 $INSTALLPATH | sudo chmod 755 $INSTALLPATH | ||
| su - $INSTALLUSER -c "cp $INSTALLPATH/ | su - $INSTALLUSER -c "cp $INSTALLPATH/ | ||
| Line 79: | Line 94: | ||
| - | ===== Setup Mastodon: .env.production ===== | + | ===== Setting up Mastodon: .env.production ===== |
| - | * Short Info: You don't need edit the file, it will be overwritten by the next command. | + | * Quick note: You don’t need to edit the file; it will be overwritten by the next command. |
| - | * Follow | + | * Follow the configuration |
| - | * Thats why we removed the build lines above. | + | * That’s |
| - | * Trust me its a pain in the Backside | + | * Trust me, it’s |
| * < | * < | ||
| - | * OPTIONAL: Pre-Compile | + | * OPTIONAL: Pre-compile |
| * < | * < | ||
| - | ===== Setup Mastodon: NGINX ===== | + | ===== Set up Mastodon: NGINX ===== |
| * We need to create and add some information for NGINX to use it | * We need to create and add some information for NGINX to use it | ||
| - | * Hint: If you need to use a other Reverse-Proxy | + | * Note: If you need to use a different reverse proxy in front of it, this hasn’t been tested |
| * < | * < | ||
| INSTALLPATH=/ | INSTALLPATH=/ | ||
| Line 103: | Line 118: | ||
| - | ===== Setup Mastodon: systemd ===== | + | ===== Setting up Mastodon: systemd ===== |
| - | * We Link the service-files to auto-update | + | * We link the service files so they update |
| * < | * < | ||
| INSTALLPATH=/ | INSTALLPATH=/ | ||
| Line 114: | Line 129: | ||
| sudo systemctl daemon-reload && sudo systemctl enable --now mastodon.service </ | sudo systemctl daemon-reload && sudo systemctl enable --now mastodon.service </ | ||
| - | * We Check if it was successfull: | + | * We check whether |
| * < | * < | ||
| INSTALLPATH=/ | INSTALLPATH=/ | ||
| Line 127: | Line 142: | ||
| * [[https:// | * [[https:// | ||
| - | * [[https:// | + | * [[https:// |
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| - | * [[https:// | + | * [[https:// |
| * FIXME | * FIXME | ||
en/mastodon.1707565169.txt.gz · Last modified: by domele
