this post was submitted on 26 Jun 2023
72 points (96.2% liked)

Selfhosted

40394 readers
655 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
72
Lemmy on a raspberry pi (self.selfhosted)
submitted 1 year ago* (last edited 1 year ago) by blotz to c/selfhosted
 

Does anyone run their own Lemmy instance on a pi? How was the process of setting it up? Were there any pitfalls? How is performance?

[Edit] So a lot of testing around. Compiling from scratch, etc, etc...

So far i have tried

  • installing lemmy using rootless docker (on 0.17.3)
  • compiling the image 0.18 docker image as arm

rootless docker did not work well for me. lots of systemd issues and i gave up after running into a lot of issues. I tried rootless docker for security reasons. minimal permissions, etc.

When trying to compile the latest lemmy image in arm, i ran into issues with muslrust not having an arm version. It might be worth investigating rewriting the docker file from 0.17.3 to work with 0.18.0 but i haven't investigated that fully yet! I tried compiling the latest image because i wanted to be able to use the latest features

At the moment, I'm trying to set lemmy to run under bare metal. Im currently attempting to compile lemmy under arm. If that works, i'll start setting up .service files to start up lemmy and pictrs.

you are viewing a single comment's thread
view the rest of the comments
[–] blotz 11 points 1 year ago (2 children)

Are you asking me what i plan to set the cap to? I guess just me. I cant see anyone else wanting to run off a pi from my house and there are so many other instances to join.

[–] Path23 4 points 1 year ago (2 children)

I’m a newbie here but what would be the benefit of running an instance just for yourself?

[–] [email protected] 5 points 1 year ago (2 children)

The ability to host your own data - both for privacy, and insurance that the instance you host your account in won’t suddenly disappear.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (2 children)

I would also add that Lemmy is part of the fediverse, meaning it is federated. Federation means all instances "talk" to all instances (unless they defederate), so you aren't limited only to the content on one instance (or in some cases not even Lemmy, case in point: I'm posting this from my kbin.social account).

[–] [email protected] 4 points 1 year ago (1 children)

What happens to posts/comments and any media/content that is hosted on a server that just goes away (for example if I created one virtually and then deleted it or if a sdcard on a pi is corrupted)

[–] marsara9 5 points 1 year ago

If you upload an image to that server, the image will be gone. Your comments will still exist on other federated instances, assuming that instance was federated in the first place. But any replies to those communities will not propagate once the hosting instance is offline.

For example assume you have 3 instances, A, B, and C. You have an account on A and create a post to a community on A. At some point A goes away, but those posts and that community will still exist on B and C. So you create a new account on B, and reply to one of those posts... users on C won't be able to see those replies as A isn't there to broadcast those replies out. And if someone on C creates a new post on that community from A, you wouldn't be able to see it on B either.

P.S. The same is true if A just decides to defederate instead of shutting down. (other than the images and accounts would still exist obviously).

[–] TheInsane42 1 points 1 year ago

That, and somehow I think it's nice to be able to federate with a username within your own domain when you have one. (or multiple, decisions, decisions, which one to pick ;) )

[–] [email protected] 2 points 1 year ago

Never have to worry about what an admin decides to defederate/block.