selfhosted

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

themachine, in Could someone explain how to set up a lemmy instance with ansible for an absolute beginner

You tried what exactly earlier today?

Sheeple, (edited )
@Sheeple@lemmy.world avatar

deleted_by_author

  • Loading...
  • arudesalad,

    No I didn’t

    WhiteOakBayou,

    Needlessly dismissive for someone who needs help. Yes he is probably in over his head but who hasn’t been.

    Sheeple, (edited )
    @Sheeple@lemmy.world avatar

    …that was meant to be a joke. I had a gut feeling I should have used a tone indicator. My bad

    arudesalad,

    I was following the steps on the Lemmy-ansible github page

    RCTreeFiddy,

    And which step in this process did you get stuck, and what were the errors, if any?

    You gotta give us some more info here.

    arudesalad, (edited )

    Step 7. I dont have the errors now but I don’t think I had ansible or ssh set up correctly

    I dont really understand it as this is the first thing I am trying to selfhost other than a minecraft server.

    RCTreeFiddy, (edited )

    SSH may be installed on the pi but may need to be enabled. That was the second to last bullet point in the requirements. The final on being to install Ansible. If you did not get the requirements taken care of, installation will not be successful.

    Please first try to SSH into your pi. Once you have that done, you should install Ansible. After that, you should be able to run the playbook from step 7 and we can proceed from there.

    arudesalad,

    Do I do that from my normal pc? I’ve never used ssh before

    RCTreeFiddy,

    I’m not trying to be mean, but I think you might be trying to jump straight into the deep end before learning to swim. While the commands have been included in the guide in order for you to be able to install this, it really does help to understand what those commands do, and what they mean. I suggest first getting to know your pi a little bit better, learning how to get SSH going on that and then moving on to installing Ansible. There’s information on the raspberry pie website on how to get SSH enabled on your pi.

    arudesalad,

    Alright, thanks for trying to help. Will I need ssh on my main pc to get it to work on my pi?

    RCTreeFiddy, (edited )

    No not really. You first enable it on the raspberry pie. Then you access your raspberry pie from your normal computer by running this command in your command line or shell: ssh user@1.2.3.4 where ‘user’ is your raspberry pi user (pi by default), and ‘1.2.3.4’ is the ip address of the pi.

    muntedcrocodile,
    @muntedcrocodile@lemmy.world avatar

    Bold of u to assumw they are using linux as there main pc os. If they are using windows i beleive it doesnt come with an ssh client.

    PeachMan,
    @PeachMan@lemmy.world avatar

    You can SSH using command line. I do have a Windows Pro license, but I THINK that it’s not exclusive to Pro…

    muntedcrocodile,
    @muntedcrocodile@lemmy.world avatar

    Huh i vagly remember needing putty but i havnt used windows in almost 5years now.

    PeachMan,
    @PeachMan@lemmy.world avatar

    Yeah I also installed putty a long time ago, I forget if it was actually necessary or if I was just afraid of command line back then.

    southsamurai,
    @southsamurai@sh.itjust.works avatar

    Yeah, legit, I’ve messed around with this kind of thing before, and I wouldn’t attempt to run lemmy myself. Major pain in the ass.

    RCTreeFiddy,

    It should already be there if it’s a Win or Linux, you just need to enable SSH on the pi, then you can remote into it by running this from a command line / shell:

    ssh pi@1.2.3.4

    Where ‘pi’ is your user on your pi, and ‘1.2.3.4’ is the IP address or hostname for the pi.

    Just want to add too that installing and hosting something like Lemmy is not really a beginner task. I’m not trying to discourage, quite the opposite. You should just know this will be a challenging endeavor, but will be rewarding once you do complete it, and you will learn a lot in the process.

    arudesalad,

    Also in the comment this one is replying to, I meant to say set up correctly

    themachine,

    And what exactly happens?

    arudesalad,

    I’ve replied to a different comment in this thread about what happened already

    themachine,

    This it should be no issue for you to copy and paste that answer in our conversation.

    PeachMan,
    @PeachMan@lemmy.world avatar

    Lol. It should also be no issue for you to find the comment and read their answer

    CosmicApe,
    @CosmicApe@kbin.social avatar

    They're asking for quite detailed help for a reasonably difficult project, the least they can do is supply all the info to the people trying to help.

    arudesalad,
    themachine,

    If I’m supposed to be reading that top comment I don’t see where you state what your results were. You apparently “had errrors” but neglected to note any down and now “you don’t” have errors.

    Aceticon, in Can I build a NAS out of a desktop? [Request]

    A NAS is basically some software running on a computer, so you can use a desktop as that computer, ideally with a light operating system (for example, Linux in text only mode).

    HOWEVER: desktops are designed for far higher computational loads than needed by a NAS, plus things like graphical user interfaces and direct connection of user peripherals such as mice, so even when idle they consume a lot more power than the kind of hardware used in a typical NAS.

    Also the hardware in a good NAS will have things like extra higher speed connectors for HDDs/SDDs (such as SATA) rather than you having to use slower stuff like USB.

    So keep in mind that a desktop as NAS will consume significantly more power than a dedicated NAS (as the latter will probably be running on something like an ARM and have a power source dimensioned for a couple of HDDs, not to run a dedicate graphics card like a desktop has) and probably won’t fit as many disks.

    If you’re ok with having most disks be accessed a bit slower and USB3 work for you (and, for example, if your NAS is on 100 Mbit Ethernet, it’s the network that’s the slowest thing, not USB3) then it’s usually better to use an old notebook rather than desktop because notebooks were designed for running of batteries hence consume significantly less power.

    Frankly I would advise against using an old desktop as NAS mainly because in a year or two of continued use you’ll have paid enough in extra electricity costs vs using a NAS to pay for a simple but decent dedicated NAS.

    Chriswild,

    If they were to run some applications on the side it would validate the power usage. Like if it also was a Plex server it could be more reasonable to use more power.

    Could also really hinge on the electricity cost for their region. At 10 cents a kwh and a delta of 100 watts we’d be talking 87 dollars a year assuming it’s always running at a delta of 100 watts.

    I doubt there will be a 100 watt delta especially newer architectures that idle really well.

    Aceticon, (edited )

    Whilst a 100W delta seems unlikelly, a 50W delta seems realistic as the kind of stuff you have in a NAS will use maybe 5W (about the same as a Raspberry PI, possibly less) whilst the typical desktop PC uses significantly more even outside graphics mode (part of the reason to use Linux in text mode only is exactly to try and save power there). It mainly depends on what the desktop was used for before: a “gaming PC” with a dedicated graphics card from an old enough generation (i.e. with HW from back before the manufactures of GPUs started competing on power usage) will use signiificantly more power than integrated graphics even in idle mode.

    That said, making it a “home server” as you suggest makes a lot of sense - if that thing is an “All In One” server (media server, NAS, print server, torrent download server and so on) loaded with software of your choice (and hence stuff that respects your privacy and doesn’t shove Ads in your face) it’s probably a superior solution to getting those things as separate standalone devices, especially in the current era of enshittification.

    ULS, in Can I build a NAS out of a desktop? [Request]

    Another option is to use openmediavault.

    I haven’t looked at truenas.

    Corgana,
    @Corgana@startrek.website avatar

    TrueNAS is very good at being a NAS. I used it for some time but eventually moved to CasaOS because it’s better at being a home server.

    patchexempt,

    I hadn’t heard of CasaOS before; looks very cool. I am currently on TrueNAS and it’s been fine, but I had been running it in a VM because it wasn’t a good fit for running other things along side it. This seems like an interesting solution, thanks!

    Corgana,
    @Corgana@startrek.website avatar

    No problem! I really like it!

    Sup3rlativ3, in Those who are self hosting at home, what case are you using? (Looking for recommendations)

    So I recently went through all of this headache. I started really wanting hotswap that didn’t look like it was from the 90’s. I also needed like 8 drives capacity which rules a lot of the popular cases out.

    I thought about it for a while and I don’t really touch the drives at all on any of my previous Nas builds so that meant I didn’t need hotswap.

    Eventually I decided that rather than try to hide the case away I would make it a feature of my living room and I went with the tower 500 and I really love it and everyone that has gone over has mentioned how cool it looks

    phrogpilot73,
    @phrogpilot73@lemmy.world avatar

    That looks an awful lot like what I have. I’m using the Lian Li PC-D600. I think I’ve managed to get my hands on one of the last ones in the wild. They aren’t even available used on eBay anymore.

    What I like most about it (and the Tower 500 that you linked) is that the motherboard is on one side, and the drives are on the other. Keeping the drives cool is easy, I just upgraded the fans on my SATA backplanes and the case, and even under load the drives run very cool.

    You can have this case when you pry it from my cold dead fingers.

    Nyfure, (edited ) in Should I use Restic, Borg, or Kopia for container backups?

    Was using borg, was a bit complicated and limited, now i use kopia.
    Its supposed to support multiple machines into a single repository, so you can deduplicated e.g. synced data too, but i havent tested that yet.

    TurboLag,

    What were the limitations of borg that you ran into?

    Nyfure,

    Index of repositories is held locally, so if you use the same repository with multiple machines, they have to rebuild their index every time they switch.
    I also have family PCs i wanted to backup too, but borg doesnt support windows, so only hacky WSL would have worked.
    But the worst might be the speed of borg.. idk what it is, but it was incredibly slow when backing up.

    lemmyvore,

    if you use the same repository with multiple machines, they have to rebuild their index every time they switch

    I’m a beginner with Borg so sorry in advance if I say something incorrect l. I backup the same files to multiple distinct external HDDs and my solution was to use distinct repos for each one. They have different IDs so the caches are different too. The include/exclude list is redundant but I can live with that.

    0110010001100010, in Can I build a NAS out of a desktop? [Request]
    @0110010001100010@lemmy.world avatar

    No reason why not. May be a little power-hungry depending on the spec but if you already have it go for it. FreeNAS (now TrueNAS) is the usually suggested OS to run: www.truenas.com/freenas/

    Since you have 4 HDD slots probably run 4 disks in a RAID 5 so think of how much space you need. RAID 5 is n-1 so if you have 4x 10TB drives you will be left with 30TB of space before formatting. You can calculate here: www.raid-calculator.com

    Then either mirror the SSDs for OS and caching or just use one. Depends on your budget really.

    comfydecal,

    Nice, thanks so much for the info!

    bc3114,

    Maybe I’m dumb but looking at wikipedia I’m a bit confused. Seems like you can do this on almost any linux distro. What is the reason behind setting up a dedicated OS, cost of operation, stability, performance?

    lemmyvore,

    Not everybody has the knowledge to deal with Linux. A product line TrueNAS or Unraid has a friendly GUI that can be used by a non-technical user.

    PupBiru,
    @PupBiru@kbin.social avatar

    kinda the same reason people suggest something like linux mint over slackware, gentoo, arch, etc… mint is easy to install and is preconfigured to be an easy to use user desktop environment. you can configure any other option to be have like that, but they tend to be a bit more “DIY”, which is great if you know what you’re doing!

    dedicated NAS OSes will have good software out of the box that make it easy to configure and manage various common disk-related configurations (RAID, SMB, NFS, etc). you can certainly do all this yourself, but it might not have a pretty, unified user interface, or you might have to deal with software that isn’t compatible with some version of a library that’s in your distro of choice… all resolvable things, but they take time to solve: anywhere from installing a package manually to applying a kernel patch and recompiling the kernel to get something to work

    bc3114,

    I see, thanks for the info!

    cmnybo,

    Power consumption is the main issue. If it’s an old, power hungry desktop and you live somewhere with expensive electricity, it can be quite costly to run. If you have an energy efficient desktop or have cheap power then it will be fine. Just make sure it has a good quality power supply if it’s going to run 24/7.

    EdibleFriend, in Could someone explain how to set up a lemmy instance with ansible for an absolute beginner
    @EdibleFriend@lemmy.world avatar

    Find some nerd and offer him feet pics to do it for you. Thats how I handle most of life’s problems.

    wreckedcarzz,
    @wreckedcarzz@lemmy.world avatar

    Alternatively, if you are artistically talented, offer to draw them yiff in exchange for tech help. Humans are so 1990s.

    HamSwagwich,

    This is the way

    PeachMan, (edited ) in Could someone explain how to set up a lemmy instance with ansible for an absolute beginner
    @PeachMan@lemmy.world avatar

    Agree with others here. Ansible isn’t for beginners and neither is a Lemmy instance.

    Try some other projects first, maybe some docker containers that involve a reverse proxy.

    For example, NextCloud is a very useful thing to set up as a project, but I would say that you specifically need the new Pi 5 with plenty of RAM for that. The Pi 4 doesn’t handle a full NextCloud installation well.

    arudesalad,

    I have the pi5 with 8gb of ram. Is that enough?

    PeachMan,
    @PeachMan@lemmy.world avatar

    Oh yeah I think so. Honestly NextCloud is slow on any platform, so don’t be surprised if you’re not impressed. But it’s a neat project to set up.

    snakedrake, in Can I build a NAS out of a desktop? [Request]

    Yep. Just install Linux, plug it into your router, set a static ip, and install the nas software ya want.

    There are plenty of approaches. ChatGPT is great at debugging issues and helping ya through the setup. I did this with a raspberry pi and external usb drive the other week.

    comfydecal,

    Nice, didn’t realize a NAS could be on smaller hardware. Thanks for the info!

    nutbutter,

    Some people even use Raspberry Pis as their NAS. I use an old MacBook (5th gen i5) as a home server with 2 external hard drives as a NAS, which also runs a few docker containers like Jellyfin. Before that, I was using an old PC with 1st gen i3 for all these things.

    Sev5000, in Those who are self hosting at home, what case are you using? (Looking for recommendations)

    Jonsbo N3 sounds like a good fit

    Gormadt,
    @Gormadt@lemmy.blahaj.zone avatar

    If only there was an ATX or mATX version

    Looks hella nice though

    zzzz, in Can I build a NAS out of a desktop? [Request]

    Unraid is a great option for anyone, but beginners in particular. It does, however, cost money and isn’t open source.

    comfydecal,

    Thanks for the resource, might be good to at least research. Thanks!

    originalucifer, in Can I build a NAS out of a desktop? [Request]
    @originalucifer@moist.catsweat.com avatar
    comfydecal,

    Thanks!

    redcalcium, in What happens to my instance if my domain expires?

    I don’t think you can change your lemmy instance’s domain yet. Afaik there is no official way to do it. FMHY lost their domain (they are using a free domain and lost it) and was attempting to switch to a new domain for their instance and developing a tool to migrate to a new domain, but somehow decided to start fresh and discard their old data instead. No idea what happen with the migration tool they were working on (is it actually working? did they actually released the code?), so save yourself some headache and make sure to never lost your domain, which means don’t use free domain because that domain isn’t actually yours and can be yanked without any notice.

    russjr08,

    Yeah, AFAIK ActivityPub itself heavily relies on the domain being part of your identity - so its not really possible to change the domain on any of them, along with other federation implementations such as Matrix.

    This is why while Mastodon allows for profile transfers, it doesn’t transfer your post content - it simply just sends a signal to your followers to unfollow your old account and follow your new one. The actual content itself is intrinsically tied to your identity on the old domain.

    CrimeDad, (edited )

    That seems like an oversight. ActivityPub should rely on some sort of certificate or cryptographic signature instead of a domain which might have to occasionally change.

    russjr08,

    ActivityPub does use cryptographic keys for Actors (“users” in this case) - so even in theory if you were to destroy your instance and then set it up on the same domain and recreate the user, things would be quite broken still… But unfortunately it still does rely on the domain name itself, so I agree.

    I think the problem is, without the domain name, there is no way for you to lookup who @russjr08 would be, or where to send data to them. The domain effectively acts as a mailing address (a well suited analogy considering that ActivityPub also uses inboxes/outboxes) so that Instance A always knows that User B can be found on Instance B.

    I doubt its an impossible challenge to solve, but probably quite a difficult one I’m sure.

    cmgvd3lw, in Take CONTROL Of Your EV with Home Assistant! (A Nerdy Show and Tell)

    What’s with the thumbnail? Cheezy af.

    hightrix,

    Yea. I see a clickbait thumbnail like this and just scroll on.

    SeriousBug, in Should I use Restic, Borg, or Kopia for container backups?

    I’ve been using Kopia for all my backups for a couple years, both backing up my desktop and containers. It’s been very reliable, and it has nice features like being able to mount a backup.

    qaz,

    Have you ever used Restic before?

    SeriousBug,

    No.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • selfhosted@lemmy.world
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20975616 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 171

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10502144 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 35