josh,
@josh@phocks.eu.org avatar

ok here it is. how to set up your very own single-user mastodon instance and run it free forever. boosts ok in case it's useful to anyone who wants to set one up. i recommend doing it simply for fun and for the learning experience. good luck! https://josh.is-cool.dev/running-a-mastodon-instance-entirely-free-forever/

tim,
@tim@mastodon.timnolte.com avatar

For those who are in need of a more detailed walkthrough of setting up your instance on I also wrote a step-by-step guide over a year ago.

https://www.timnolte.com/2022/11/26/installing-mastodon-on-an-oracle-cloud-infrastructure-ampere-arm64-always-free-instance/

cc: @josh

grayson,
@grayson@thepage.house avatar

@josh Nice post. One overarching thought came to mind while reading it:

As an OCI-based instance person (and prior user of many Oracle products), the only thing to keep in mind is that Oracle has a history of changing terms at will and the ramifications there of. To avoid them occasionally reclaiming your instance/space/etc (which others have noted, and I've seen as well), it was suggested to me to migrate to a paid level even if your bill is $0 each month. I haven't had any incidents since September when I did that.

Last, given the above two notes, a section on how to do backups routinely would be helpful for folks so if OCI reclaims or otherwise trashes your stuff, you can recover somewhat easily. (I backup my postgres DB and config files and then stash those outside of OCI).

milosz,
@milosz@adventurousbeastie.eu avatar
gertvk,
@gertvk@mastodon.nz avatar

Definetely going to try that Mastodon server @josh
Already have a free Oracle cloud site running http://bythelake.nz so shouldn't be to hard to do.

When I saw your blog, I noticed it was a Zola site. Same as mine.
Interesting !
Having a go now myself with the Terminimal theme.
Your theme is a lot easier to use then the one I had selected. So giving that a go !!
Your and my site surprisingly similar. Suppose because they're both Zola based....
Cheers 🙂🙂

josh,
@josh@phocks.eu.org avatar

@gertvk Yeah I love Zola. Good luck!

sashin,
@sashin@mastodon.online avatar

@josh Thanks so much for this!

I just read through it and a weird question came to mind that you may or may not be able to answer.

Why does oracle provide hosting for free forever?

josh,
@josh@phocks.eu.org avatar

@sashin it's to get you on their ecosystem, then when you want to upgrade your services you're more likely to pay them money. I haven't paid them anything yet :)

camilobotero,
@camilobotero@mstdn.dk avatar

@josh
This amazing! It is even useful for a lot of other projects.
I’ll save this post and your blog!

josh,
@josh@phocks.eu.org avatar

@camilobotero thanks!

quarksparrow,

@josh I've being running my instance for about a month now. Had to give my credit card to Oracle because the free ARM servers are pretty much impossible to snag these days! But as long as I keep to the free tier resources it doesn't cost me a thing.

josh,
@josh@phocks.eu.org avatar

@quarksparrow yeah that makes sense. I must have got in early because I still haven't given them a card number haha

kaleb,

@josh I think you need to give your paiement cart info ?

josh,
@josh@phocks.eu.org avatar

@kaleb I have not, but I have heard that Oracle has asked for card info

JetForMe,
@JetForMe@geekstodon.com avatar

@josh I couldn’t find the free ARM instances you mention.

josh,
@josh@phocks.eu.org avatar

@JetForMe they are definitely there. When you go to create a compute instance you should be able to change it's "shape" and you'll be able to choose the Ampere instances there

josh,
@josh@phocks.eu.org avatar
mycotropic,
@mycotropic@beige.party avatar

@josh

Will following this approach work on a Synology 1019+ which has 8g ram? There's no package for Mastodon but I suppose the server is a server right?

josh,
@josh@phocks.eu.org avatar

@mycotropic yeah should work, technically, good luck!

joel,
@joel@otter.garden avatar

@josh nice write up :) I’m on essentially a single user instance too - any advice on managing the clunky bits of actually using it, like replies not showing up due to not much federation etc etc?

josh,
@josh@phocks.eu.org avatar

@joel hmm i don't think i've experienced replies not showing up before, but maybe i just haven't noticed. yeah i guess that's just the way it goes. you can try using relays, but in my experience it clogs up your server quite a bit.

jumboshrimp,
@jumboshrimp@the.tonytiger.club avatar

@josh Do you see any issues with the cleanup commands you use? I've been playing around with the 'media remove --prune-profiles' command myself, but I find that anything below 7 days results in quite a few missing avatars and headers when browsing the feed.

josh,
@josh@phocks.eu.org avatar

@jumboshrimp Yeah I've had some of those issues, mostly missing headers. I wish Mastodon better handled missing cache hits and simply re-fetched them.

Lino_JR,

@josh I hope their isn't a catch.

josh,
@josh@phocks.eu.org avatar

@Lino_JR no catch

c0dec0dec0de,
@c0dec0dec0de@hachyderm.io avatar

@josh oooh, free cloud resources

vees,
@vees@epistolary.org avatar

@josh Any advice on how to keep oom kill events down with only 2GB? I've been experimenting with limiting memory for redis and postgres and pulling sidekiq workers down so the runners are limited too. Would be interested in anything specific you did.

josh,
@josh@phocks.eu.org avatar

@vees I was running my current instance on a 1GB server and just put a few GB of swap memory on there and it did OK except it was a little slow obviously, no kill events that I could tell. When I moved to 12GB RAM obviously no more issues. Good luck with yours. Seems promising.

vees,
@vees@epistolary.org avatar

@josh I have a 2GB VM and 2GB of swap, which eliminated my OOM, but it is shitty for my IO PSI especially since its just a stand-in for additional DB fetches anyway. I'm hoping to just make my sidekiq queues a little longer and redis to keep a little less in memory and see where it takes me.

josh,
@josh@phocks.eu.org avatar

@vees yeah that sounds like the slowness i had. unfortunately Mastodon seems very bloated.

iero,

@josh Akoma (https://akkoma.social/) and Pleroma are way lighter than mastodon as well!

josh,
@josh@phocks.eu.org avatar

@iero yeah I tried Akoma at the start and liked it, that was when it had post editing and Mastodon didn't. I might try it again.

randulo,
@randulo@mastodon.social avatar

@josh When you say getting a TLD you mean like ".masto"?

josh,
@josh@phocks.eu.org avatar

@randulo the free ones in the article are .eu.org and pp.ua domains. You may be able to find some others.

randulo,
@randulo@mastodon.social avatar

@josh I don't want to be that guy, but TLD is the top level, so .social is a TLD and .com, .net etc. are. mastodon.social is a doman name. something.mastodon.social is a subdomain.

TLD are very expensive, so when I saw "free TLD" I jumped over there! 😀 Great article, though.

josh,
@josh@phocks.eu.org avatar

@randulo Ah yes. You're right!

josh,
@josh@phocks.eu.org avatar

@randulo I guess I meant, get a domain on a TLD and didn't realise I was referring to the wrong thing. Anyway I just removed all references to TLDs :) Thanks!

BernardSheppard,
@BernardSheppard@mastodon.au avatar

@josh great write up.

I am pretty much in the same spot now, on Oracle Cloud Free, with clean-up cron jobs set up when I ran out of space the first time.

I have added crowdsec and Caddy as well

I don't recall having had to provide a credit card for free sendgrid - maybe it has changed since I signed up - but it does the mail job nicely in case of needing account recovery.

josh,
@josh@phocks.eu.org avatar

@BernardSheppard Awesome. I recently tried out Caddy and loved it.

Dan,
@Dan@aus.social avatar

@josh this is cool and I'll probably have a go, but also, how come Oracle give away servers?!? And why am I paying for my little Digital Ocean one?

josh,
@josh@phocks.eu.org avatar

@Dan Good questions :)

steely_glint,
@steely_glint@chaos.social avatar

@josh @Dan Oracle tend to shut down free servers that they think are 'idle' too much of the time.

My two run lightly loaded web servers and I had to add a pointless ffmpeg transcode cronjob to ensure they look busy. Sigh.

The free tier is a way to get folks familiar with Oracle cloud's management portal and firewall etc - which does take a bit of getting used to.

3dcandy,
@3dcandy@mastodon.social avatar

@josh mailgun is only free for the first 30 days now and then is expensive afterwards!

josh,
@josh@phocks.eu.org avatar
3dcandy,
@3dcandy@mastodon.social avatar

@josh Yep - if you go through the normal sign up though they kinda fail to mention that...

josh,
@josh@phocks.eu.org avatar

@3dcandy lol wonder why 😁

jpm,
@jpm@aus.social avatar
MattHatton,
@MattHatton@aus.social avatar

@jpm @josh “If you're comfortable logging into a Linux server via SSH and running commands you shouldn't have any major troubles setting it up”

I barely know what this means.

jpm,
@jpm@aus.social avatar

@MattHatton @josh so, the question is, how much of a Computer Toucher do you want to be in order to get your own very online instance going?

MattHatton,
@MattHatton@aus.social avatar

@jpm @josh I am very content with my current level of computer touching which is best described as “knowing what stuff is, but having absolutely no idea how to use it and no real motivation to ever want to know”

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • Youngstown
  • everett
  • slotface
  • rosin
  • osvaldo12
  • mdbf
  • kavyap
  • cubers
  • megavids
  • modclub
  • normalnudes
  • tester
  • khanakhh
  • Durango
  • ethstaker
  • tacticalgear
  • Leos
  • provamag3
  • anitta
  • cisconetworking
  • JUstTest
  • lostlight
  • All magazines