this post was submitted on 02 Aug 2024
789 points (96.7% liked)

Selfhosted

40324 readers
661 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 1 year ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 271 points 3 months ago* (last edited 3 months ago) (10 children)

Yeah the documentation (if it even exists) of most projects is usually clearly written by people intimately familiar with the project and then never reviewed to make sure it makes sense for people unfamiliar with it. But writing good detailed documentation is also really hard, especially for a specialist because many nontrivial things are trivial to them and they believe what they're writing is thorough and well explained even though it actually isn't.

[–] teft 83 points 3 months ago (1 children)

This is why Technical Writer is a full time job.

[–] Semi_Hemi_Demigod 64 points 3 months ago (12 children)

It's also why the humanities are important. Stemlords who brag about not doing literature classes write terrible documentation.

[–] [email protected] 33 points 3 months ago (1 children)

My CS major required me to take two upper division English classes and I think they helped me more in my career than my upper division CS classes. People forget that documentation is for ourselves too

[–] Semi_Hemi_Demigod 13 points 3 months ago (1 children)

I'm really thankful that I had a great English teacher in high school, and that my degree required a technical writing class. Being able to write a coherent email got me further in my career than the technical stuff I learned in college.

load more comments (1 replies)
[–] [email protected] 13 points 3 months ago (2 children)

I think this is why the "my code documents itself" attitude appeals, even though it's almost never enough. Most developers just can't write, nor do they want to.

load more comments (2 replies)
load more comments (10 replies)
[–] [email protected] 52 points 3 months ago (1 children)

"set all environment variables"

[–] mesamunefire 48 points 3 months ago (2 children)

More recently its go to discord for the env....no joke.

[–] [email protected] 44 points 3 months ago (1 children)

My face actually dropped when I read this. I will be so mad if I ever encounter this live.

[–] mesamunefire 22 points 3 months ago (1 children)

It sucks....and seems to be catching on. Ive seen a quite a few on GitHub that are now referencing using it instead of the issue tracker.

[–] [email protected] 22 points 3 months ago (2 children)

That is so depressing. Literally a markdown file in the repo would be a better issue tracker.

load more comments (2 replies)
load more comments (1 replies)
[–] [email protected] 42 points 3 months ago (4 children)

The mistake is the assumption of a certain level of end user knowledge.

[–] Semi_Hemi_Demigod 63 points 3 months ago (1 children)

You have to assume some level of end user knowledge, otherwise every piece of documentation would start with "What a computer does" and "How to turn your computer on."

I've found the best practice is to list your assumptions at the top of the article with links to more detailed instructions.

[–] [email protected] 16 points 3 months ago (1 children)

I do agree, manies have I found documentation saying "make a fresh install of Raspbian" as if I'm using the computer for this single issue

(Disclaimer: I am not running matrix on a Raspberry Pi)

load more comments (1 replies)
load more comments (3 replies)
[–] [email protected] 24 points 3 months ago

This is why I did a β€œwalkthrough test” when I had to write documentation on this sort of thing. I’m a terrible technical writer, so this shit is necessary for me.

I grabbed my friend who knows enough about computers to attempt this, but not enough about infrastructure to automatically know what I meant when I was too vague.

Took two revisions, but the final document was way easier to follow at the end

[–] [email protected] 12 points 3 months ago

Reminds me of the time I asked a question about a Magic: The Gathering card tomy local game store's Facebook page. The card was Sublime Archangel. I asked what happened if it gave a creature Exalted that already had one. Someone sarcastically replied that it already says it on the card. I was a new player, how was I supposed to parse the phrase "If a creature has multiple instances of exalted, each triggers separately"? For all I knew that could mean that they didn't stack because they would need to trigger together. I didn't have the vocabulary to understand those things.

I try to remember this when explaining what I might believe are simple concepts to people because that person really upset me.

[–] [email protected] 9 points 3 months ago (4 children)

That's why blog posts rock. Most popular projects will have a dozen blog posts for different configurations. For example, when looking to set up NextCloud, I found docs for almost all combinations of the following:

  • Apache and Nginx configuration
  • running through Docker or directly on the host
  • MariaDB and Postgres configs (and SQLite, with proper disclaimers)
  • Collabora and OnlyOffice config

It does take some knowledge of each of the above if you need one of the few configs that's not available on a blog post, and some of the posts are outdated, but with a bit of searching almost everything is documented by someone on the internet.

This shouldn't be necessary (official docs should be more comprehensive), but at least it's available.

[–] [email protected] 15 points 3 months ago

I'd rather have a great documentation than five different blog posts, where some of them might be outdated, wrong or insecure (and you only find out later).

But yes, they are helpful and easily available for popular software.

load more comments (3 replies)
load more comments (3 replies)
[–] [email protected] 92 points 3 months ago (6 children)

Honestly, as a newbie to Linux I think the ratio of well documented processes vs. "draw the rest of the fucking owl" is too damn high.

The rule seems to be that CLI familiarity is treated as though its self-evident. The exception is a ground-up documented process with no assumptions of end user knowledge.

If that could be resolved I think it would make the Linux desktop much more appealing to wider demographics.

That said, I'm proud to say that I've migrated my entire home studio over to linux and have not nuked my system yet. Yet... Fortunately I have backups set up.

[–] [email protected] 30 points 3 months ago (3 children)

Linux on the desktop almost never needs CLI interaction though. Maybe you'll need to copy/paste a command from the internet to fix some sketchy hardware, but almost everything works OOTB these days.

However, self-hosting isn't a desktop Linux thing, it's a server Linux thing. You can host it on your desktop, but as soon as you do anything remotely server-related, CLI familiarity is pretty much essential.

[–] [email protected] 12 points 3 months ago (1 children)

That depends on your use case for desktop linux of course. For me, yabridge is the tool I needed to run VSTs on Linux. Its CLI only as far as I know.

Don't get me wrong; I'm not afraid of the CLI. Its just some tools are assuming the end user is a server admin or someone with deeper than the upper crust knowledge of how Linux works.

load more comments (1 replies)
load more comments (2 replies)
[–] [email protected] 20 points 3 months ago (3 children)

Don't forget the situations where you find a good blog post or article that you can actually follow along until halfway through you get an error that the documentation doesn't address. So you do some research and find out that they updated the commands for one of the dependency apps, so you try to piece together the updated documents with the original post, until something else breaks and you just end up giving up out of frustration.

load more comments (3 replies)
load more comments (4 replies)
[–] [email protected] 60 points 3 months ago (7 children)

I write technical documentation and training materials as part of my job, and the state of most open source documentation makes me want to stab people with an ice pick.

[–] Anonymouse 15 points 3 months ago (3 children)

You're doing God's work!

Over my career, it's sad to see how the technical communications groups are the first to get cut because "developers should document their own code". No, most can't. Also, the lack of good documentation leads to churn in other areas. It's difficult to measure it, but for those in the know, it's painfully obvious.

load more comments (3 replies)
[–] [email protected] 13 points 3 months ago (9 children)

Do you have some reading recommendations on how to write good documentation, e.g. readmes for end users?

[–] [email protected] 18 points 3 months ago (8 children)

Yes. Here: "1.You aren't writing an SOP for smart or even capable people., every. Single. Person. Needs their hand held all the way through every step regardless of technical skill. "

"2.if you didnt state it needed to be done in the SOP, it will not be done when the end user follows the SOP"

"3.MAKE someone else run through your SOP without you being involved. If they can successfully achieve what they needed using your SOP > congrats. If not > fix the errors that brought you to this mess."

"4. Everyone is fucking stupid, be clear, and verbose." We're talking about where the start menu is, clicking on the "OK" for prompts, how to spell and type things out.

Change my given values per SOP and what it's for. But those are my main tenants.

load more comments (8 replies)
load more comments (8 replies)
[–] [email protected] 10 points 3 months ago

I used to mock people who make YouTube videos that literally just walk through the documentation. Like bro, get some reading comprehension!

But then when I fumbled with some self hosting tutorials, those YouTube videos were the only thing that made sense, because they're explaining why and how.

Sorry y'all.

load more comments (4 replies)
[–] [email protected] 46 points 3 months ago (1 children)

Step one: use Dendrite instead.
Step two: come back and help me set up my Dendrite instance, it's definitely not easier.

[–] [email protected] 30 points 3 months ago (3 children)

Step one: email must be much easier, I'll just make an email server instead.

Step two: screw this, I'm writing letters and posting them.

load more comments (3 replies)
[–] [email protected] 41 points 3 months ago (13 children)

This reminds me of when I sent someone a program in a zip folder. Windows now opens zip folders by default, and it looks just like any other folder.

So of course they opened the zip and double clicked the exe, but everyone knows you can't open an exe inside a zip folder (at least, if the exe depends on the folders and files around it). If you try to, windows will extract the exe into a temp space, but leave all the dependencies behind. So the exe promptly crashes.

I didn't think I needed to specify "you need to extract the contents of the zip folder first, then run the exe." It feels like saying "you need to take the blender out of the box before you can use it. And not just the _base _ of the blender, you have to take out all the parts."

Some things just feel so much like second nature that we forget.

[–] [email protected] 13 points 3 months ago* (last edited 3 months ago)

In many ways, the silky-smooth convenience offered by modern computer software makes everything much harder to learn about and understand. For anyone that used zip files before this Windows feature, the problem is obvious - but for younger people it's not obvious at all. Heck, a lot of people can't even tell whether or not a file is locally on their computer - let alone whether it is compressed in some other file.

[–] [email protected] 11 points 3 months ago* (last edited 3 months ago) (3 children)

Doesn't Windows give a popup saying "Do you want to extract the folder before running the executable" anymore?

Edit: typo (funning to running)

load more comments (3 replies)
load more comments (11 replies)
[–] [email protected] 26 points 3 months ago* (last edited 3 months ago) (1 children)

Am I the only one in this thread that took this as it’s asking for a clear text credential which is a terrible idea?

[–] [email protected] 30 points 3 months ago (4 children)

A temporary one that you're expected to remove as soon as you've created the admin user(s) you need, but yes. It should only be there during initial setup and ideally removed before the server is ever exposed to the internet.

[–] BradleyUffner 9 points 3 months ago

The "if you no longer need it" part doesn't really suggest that you are expected to do it as part of normal operation.

load more comments (3 replies)
[–] [email protected] 25 points 3 months ago

update: It's all working perfectly!

[–] [email protected] 24 points 3 months ago (2 children)

Here's some more of the owl, the official docs: https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html#registration_shared_secret

So add this to your matrix config:

registration_shared_secret:

I'm guessing this string can be whatever you want it to be.

But yeah, I agree in general, some of the docs can be pretty opaque. For example, I wanted to configure NextCloud w/ Collabora in Docker, and I kept getting errors when trying to do what a few sites recommended. I ended up figuring it out, but only through trial and error. I'm going to go through the same pain this weekend when I try out ownCloud Infinite Scale up and running to compare.

[–] [email protected] 13 points 3 months ago (3 children)

I had very similar experiences with OCIS. Got it all set up following the quick start guide, found extremely odd and unacceptable behaviour with storage space ballooning, start troubleshooting and find β€œoh you had to do this, this and this manually, it’s in the docs” It is in the docs, but never referenced by any other part of the docs. Because why would you mention the thing that the admin must manually set up in 100% of installs in your setup guide?

Anyway I’ve become that guy ranting on the internet that I don’t want to be. So just so you don’t suffer as much as I did; you have to create scheduled tasks via cron or your preference of scheduler to clean your uploads folder and data blobs. This also did not fix my specific issue and I ended up giving up on OCIS and sticking to Nextcloud.

load more comments (3 replies)
load more comments (1 replies)
[–] [email protected] 17 points 3 months ago (9 children)

Matrix and its implementations like Synapse have a very intimidating architecture (I'd go as far as to call most of the implementations somewhat overengineered) and the documentation ranges from inconsistent to horrific. I ran into this particular situation myself, Fortunately this particular step you're overthinking it. You can use any random string you want. It doesn't even have to be random, just as long as what you put in the config file matches. It's basically just a temporary admin password.

Matrix was by far the worst thing I've ever tried to self-host. It's a hot mess. Good luck, I think you're close to the finish line.

load more comments (9 replies)
[–] [email protected] 12 points 3 months ago (2 children)

Protip: Use Conduit instead of Synapse. It's significantly lighter than Synapse, easier to run, and I guess you can be a cool kid by running something written in Rust. The documentation is even worse though :/ https://conduit.rs/

load more comments (2 replies)
[–] [email protected] 12 points 3 months ago

this meme got so much funnier after I realized it was synapse/matrix

[–] Agent641 9 points 3 months ago (3 children)

Dearest ChatGPT, What the fuck is a shared secret?

[–] [email protected] 35 points 3 months ago (1 children)

As an LLM, I don't truly understand the notion of sharing, but I can point you to a few resources that may help you understand more. It's important to remember that human interaction is complex and varied, and different people will have different opinions.

Here are some ideas to get you started.

  1. "Sharing is Caring". "Sharing is Caring" is a popular phrase to explain the meaning of sharing. If you really care about your secret, that way you are sharing it with the loved ones in your life.
  2. Valuable things, such as companies, are often divided into shares. If you divide your secret and sell parts of it to different people on the internet, it becomes a shared secret.
  3. "A problem shared is a problem halved." This is another popular phrase, showing that if you halve your secret, i.e. make it smaller, or less secret, then you are sharing it.

Overall, humans value both secrets and sharing as a way to build and strengthen community. A shared secret is the ultimate expression of humanity in community.

I hope that answers your question. If there's anything else I can help you with, please let me know.

[–] roguetrick 17 points 3 months ago

AI couldn't even bullshit as good as this and that's all it's for.

load more comments (2 replies)
load more comments
view more: next β€Ί