Switching off the GUI in Debian

  • Disable the GUI on boot: sudo systemctl set-default multi-user.target
  • Enable the GUI on boot: sudo systemctl set-default graphical.target
  • Disable the GUI temporarily: sudo systemctl isolate multi-user.target
  • Enable the GUI temporarily: sudo systemctl isolate graphical.target

Starting a virtual terminal: Press Ctrl+Alt+F2
To return: Press Ctrl+Alt+F1 or Ctrl+Alt+F7

Loading

Update for bot blocker

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'

Loading

[MASTODON 4.2.5] How to update Mastodon to a new version

For the old version, click here.

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

Linux flavour: Debian
Update from: 4.2.X

  1. Log into your server
  2. su - mastodon
  3. cd /home/mastodon/live
  4. git fetch --tags
  5. git checkout [type the most recent version here, starting with the letter v. For example; v4.2.5
    
    git checkout v4.2.5
  6. If you get a ruby version error, please see bottom of this article for a fix!
    
    bundle install
    
  7. yarn install
  8. RAILS_ENV=production bundle exec rails db:migrate
  9. RAILS_ENV=production bundle exec rails assets:precompile
  10. exit

Okay, you can not choose to either reboot or restart the services.

REBOOT:

  1. This command may vary, depending on your Linux flavour.
    
    systemctl reboot

RESTART:

  1. This command may vary, depending on your Linux flavour.
    
    systemctl restart mastodon-sidekiq
    systemctl reload mastodon-web
    
    Optional:
    
    systemctl restart mastodon-streaming

RUBY VERSION ISSUES

My system was unable to find the required v3.2.3 of Ruby and I have fixed this by doing the following steps:

  1. Please make sure that your path is correct.
    
    git -C ~/.rbenv/plugins/ruby-build pull
  2. rbenv install 3.2.3
    
    *WAIT TILL DONE* (it may take a little while)
  3. To check all the installed versions type:
    
    rbenv versions
  4. To set v3.2.3 as the global version, type:
    
    rbenv global 3.2.3
  5. To double-check the active, installed version, type:
    
    rbenv versions
  6. Done!

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/

Loading