From my notes, and a bit as a funny as our cat is named Pip.
apt-get update && apt-get -y upgrade && apt-get install python-pip && pip install --upgrade pip
Failed and working projects, notes etc.
From my notes, and a bit as a funny as our cat is named Pip.
apt-get update && apt-get -y upgrade && apt-get install python-pip && pip install --upgrade pip
sudo systemctl set-default multi-user.target
sudo systemctl set-default graphical.target
sudo systemctl isolate multi-user.target
sudo systemctl isolate graphical.target
Starting a virtual terminal: Press Ctrl+Alt+F2
To return: Press Ctrl+Alt+F1 or Ctrl+Alt+F7
Update for bot blocker as mentioned here: https://3xn.nl/projects/2023/09/20/crude-solution-to-ban-bots-by-their-user-agent/
My website is still being kicked around sometimes, but I’m winning D:
'ubermetrics-technologies', 'seokicks', 'ClaudeBot', 'serpstatbot', 'Barkrowler', 'YisouSpider', 'babbar.tech', 'AwarioBot', 'bytespider', 'amazonbot', 'MJ12bot', 'YandexBot', 'SemrushBot', 'dotbot', 'AspiegelBot', 'DataForSeoBot', 'DotBot', 'Pinterestbot', 'PetalBot', 'HeadlessChrome', 'GPTBot', 'Sogou', 'ALittle Client', 'fidget-spinner-bot', 'intelx.io_bot', 'Mediatoolkitbot', 'BLEXBot', 'AhrefsBot'
White : OUT
Red: VCC
Blue/Black: Wire mantle. Not sure if this was required, but I copied the initial setup, just to be sure. It looks a bit sloppy, but it works in the new situation and that’s all that mattered in this case.
Old situation:
New situation:
Updated on 26-08-2024. For the old version, click here.
Contents:
1. UPDATE
2. RUBY VERSION ISSUES
3. RUBY GEM ISSUES
4. CHARLOC_HOLMES GEM ISSUES
So a new release came out and it is important to get this update as soon as possible! This manual is a transcript of the way that I have updated my Mastodon instance. Please make sure you make proper backups and use your brain while updating things.
A guide to making a Mastodon backup can be found here.
Linux flavour: Debian
Update from: 4.2.xx
su - mastodon
cd /home/mastodon/live
git fetch --tags
git checkout v4.2.10
yarn install
RAILS_ENV=production bundle exec rails db:migrate #NOTE: You might get a ruby error which then suggests you to enter the command "bundle install". Do that and then run the RAILS command again.
RAILS_ENV=production bundle exec rails assets:precompile
exit
OPTIONAL:
After updating, you might get a notification to update the browserlist database. You can do that with the following command:
npx update-browserslist-db@latest
Okay, you can now choose to either reboot or restart the services.
REBOOT:
systemctl reboot
RESTART:
systemctl restart mastodon-sidekiq systemctl reload mastodon-web
Optional:
systemctl restart mastodon-streaming
My system was unable to find the required v3.2.3 of Ruby and I have fixed this by doing the following steps:
git -C ~/.rbenv/plugins/ruby-build pull
rbenv install 3.2.3
*WAIT TILL DONE* (it may take a little while)
rbenv versions
rbenv global 3.2.3
rbenv versions
This manual is a transcript of the way that I have updated my Mastodon instance. Please make sure you make proper backups and use your brain while updating things.
Sources: https://richstone.io/where-is-ruby-3-0-0-on-rbenv/
After entering…
RAILS_ENV=production bundle exec rails db:migrate
…you might get a ruby gem error like:
Could not find rexml-3.3.5, strscan-3.1.0 in locally installed gems Run `bundle install` to install missing gems.
Enter the command “bundle install” and after that run the RAILS command again.
The charlock_holmes gem may fail to build on some systems with recent versions of gcc. If you run into such an issue, try
BUNDLE_BUILD__CHARLOCK_HOLMES="--with-cxxflags=-std=c++17" bundle install.