• 1 Post
  • 134 Comments
Joined 9 months ago
cake
Cake day: October 4th, 2023

help-circle
  • Yes. I wouldn’t be preemptively worried about it, though.

    Your scan is going to try to read and maybe write each sector and see if the drive returns an error for that operation. In theory, the adapter could respond with a read or write error even if a read or write worked or even return some kind of bogus data instead of an error.

    But I wouldn’t expect this to likely actually arise or be particularly worried about the prospect. It’s sort of a “could my grocery store checkout counter person murder me” thing. Theoretically yes, but I wouldn’t worry about it unless I had some reason to believe that that was the case.


  • Unison might be worth a look, provides bidirectional merging and command-line operation. It’s what I’d use if I were mostly working with binary files and didn’t want a history.

    Rsync, which someone else recommended, is really aimed at efficient unidirectional replication, not keeping two directories on computers that are both being changed and are intermittently connected in sync.

    config files

    If there’s mostly text and you’re going to want to review changes, want to keep a history, and do a lot of merging, I’d use git, symlink files to aim at the git repo. I have a custom helper script, but stuff like GNU stow is aimed at this, and I’d probably recommend that someone look at it before rolling their own. Here’s an example of someone using it with git in this role:

    https://ratfactor.com/setup2

    I agree with that guy about using bare git repos as the “master” copy, even if one of the machines in question also hosts the bare repos and technically you have some redundant information on it. Makes life easier, no machine is “special”.

    If I had both binary files (say, a music collection) that I wanted kept in sync without a history and text files that I do (say, my dotfiles), I’d use both.


  • tal@lemmy.todaytoSelfhosted@lemmy.worldServer for a boat
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    4 days ago

    What hardware and Linux distro would you use in this situation?

    The distro isn’t likely to be a factor here. Any (non-super-specialized) distro will be able to solve issues in about the same way.

    I mean, any recommendation is going to just be people mentioning their preferred distro.

    I don’t know whether saltwater exposure is a concern. If so, that may impose some constraints on heat generation (if you have to have it and storage hardware in a waterproof case).





  • If there’s a better way to configure Docker, I’m open to it, as long as it doesn’t require rebuilding everything from scratch.

    You could try using lvmcache (block device level) or bcachefs (filesystem level caching) or something like that, have rotational storage be the primary form of storage but let the system use SSD as a cache. Dunno what kind of performance improvements you might expect, though.


  • I would suggest, unless you have a very unusual situation, that you’re going to have an easier time of it with a keyboard and display.

    If your computer can do HDMI out, you can use a television as display.

    In all seriousness, unless this is some kind of super-exotic situation (like, you’re on a sailboat in the middle of the Pacific and are suddenly needing to set up a Debian server) I would probably get an inexpensive USB keyboard to keep around. Even if you don’t normally need it (like, you use a laptop or something) there are a number of situations that it solves, like “one of my laptop keys has just stopped working” or “I actually need to work on some kind of computer that doesn’t have an integrated keyboard”.

    kagis

    https://www.amazon.com/sgmedila-Waterproof-Foldable-Flexible-Dustproof/dp/B0CXTHH7QS/

    That’s not gonna be a very pleasant typing experience, but it’s under $4 for two, if you’re determined to spend as little as possible.

    If you can’t get access to a television, here’s a small, 640x480 USB/HDMI display under $50:

    https://www.amazon.com/Capacitive-Compatible-Raspberry-Resolution-Interface/dp/B0CFJDTM5X/

    I’d probably get a larger display, maybe used – I mean, maybe you think that you’re never gonna need to look at a computer’s output again, but you might find yourself troubleshooting a machine like this one, and 640x480 is a kind of significant limitation – but that’s at least a baseline.

    If you specifically don’t want a keyboard, and if you have some other device with a display and text input and USB (well, or serial) support, I’d bet that the Debian installer can probably handle an RS-232 serial console install.

    kagis

    Yup.

    https://p5r.uk/blog/2020/instaling-debian-over-serial-console.html

    But I’m guessing that you don’t have the serial hardware. Having a USB-to-serial adapter is another thing that I keep one of around because every now and then I need to work on headless devices that have a serial interface, but I’ll concede that the serial port is getting pretty elderly.

    I’d probably get a USB-to-serial male and USB-to-serial female adapter if neither end has an existing serial port (which these days, with desktop hardware, may be very possible). Something like this:

    https://www.amazon.com/OIKWAN-Adapter-Converter-Compatible-Windows/dp/B0BL1MRV6H/

    and

    https://www.amazon.com/Serial-Adapter-Chipset-Compatible-Windows/dp/B0CT8MRT5B/

    But then you have to be sure that you can get your machine to boot into the Debian install media. On machines that are designed to be run headless, routers and such, it’s common for the BIOS to support a serial interface. On desktop machines…not so much. So if it’s already configured to boot off USB, that may be fine, but if it’s not, well…

    Debian also has a fully-automated installer, as long as you can set your machine up to boot into it without a keyboard or display:

    https://wiki.debian.org/FAI

    That kind of thing is normally more used to set up VMs or manufacture hardware.

    I would be very careful with that thing and probably wipe it after you use it, since it’s gonna be a USB key that wipes computers if you reboot and they’re set to boot off USB.

    It almost certainly isn’t a great fit for your use case – like, the time you’re probably going to expend setting it up isn’t going to be worth whatever you’d save spending on hardware – but mentioning it for completeness.



  • tal@lemmy.todaytoSelfhosted@lemmy.worldAlternatives to CloudFlare?
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    15 days ago

    I’d probably use a VPS myself.

    I seem to recall db0 saying that lemmy.dbzer0.com is behind some sort of reverse proxy. I assume that they’re in the same boat as OP.

    looks

    $ host -t a lemmy.dbzer0.com
    lemmy.dbzer0.com has address 51.77.203.116
    $ whois 51.77.203.116
    [snip]
    role:           OVH Technical Contact
    address:        OVH SAS
    address:        2 rue Kellermann
    address:        59100 Roubaix
    address:        France
    admin-c:        OK217-RIPE
    tech-c:         GM84-RIPE
    tech-c:         SL10162-RIPE
    nic-hdl:        OTC2-RIPE
    abuse-mailbox:  abuse@ovh.net
    mnt-by:         OVH-MNT
    created:        2004-01-28T17:42:29Z
    last-modified:  2014-09-05T10:47:15Z
    source:         RIPE # Filtered
    
    % Information related to '51.77.0.0/16AS16276'
    
    route:          51.77.0.0/16
    origin:         AS16276
    mnt-by:         OVH-MNT
    created:        2018-03-07T09:24:45Z
    last-modified:  2018-03-07T09:24:45Z
    source:         RIPE
    $
    

    I don’t know if that’s a VPS, but looks like they’re using OVH.



  • Poettering in Mastodon thread:

    sudo has serious problems though. It’s a relatively large SUID binary, i.e. privileged code that unprivileged users can invoke from their own context. It has a complicating configuration language, loadable plugins (ldap!), hostname matches and so on and so on.

    Okay, fine. So surely he’s going to make a single tool that does one thing in an isolated box that doesn’t pull in any unnecessary functionality.

    Poettering a few posts down:

    But enough about all that security blabla. The tool is also a lot more fun to use than sudo. For example, by default it will tint your terminal background in a reddish tone while you are operating with elevated privileges.

    This is so Poettering. I don’t want a privilege-escalation tool altering the display. Why in God’s name is this not in the shell? What’s going to happen on terminals that can’t handle colors? Are you going to deal with them correctly? Is your “small” tool now going to be handling terminfo?

    Every time that guy sees something, he thinks “let’s just rewrite everything from scratch, break the existing tool boundaries, and other people will fix the fallout”.


  • Well, there’s the obvious answer, that you actually have an Nvidia card. I think I’d probably consider taking a look at the card and at photos of new cards of both models and see which it looks like.

    From a software standpoint, I have a hard time believing that you’re misdetecting the type of card.

    I don’t know anything about Proxmox, but I understand that it’s some sort of platform used to virtualize systems. It apparently, based on a quick search, has some kind of support for Nvidia passthrough, called vGPU. If you’re looking from inside a virtualized environment, is it possible that you’re looking at a virtual GPU? That seems like a long shot, since I assume that if your GPU is AMD, that a virtual Nvidia GPU would be non-functional – it doesn’t look like this vGPU thing can use a host AMD GPU-- but I can’t think of any other way that you’re going to wind up detecting an Nvidia card that you don’t have.



  • As much as I am ambivalent about Poettering projects, and as much as I really don’t like the all-encompassing nature of systemd, in my experience, systemd has basically worked.

    PulseAudio, his previous thing, was an absolute dumpster fire in terms of breakage when it came out and continued to be for years. I had multiple systems spanning a number of sound devices that had all kinds of issues with it. It also added a lot of complexity to an already-complex sound stack.

    I haven’t had systemd cause massive problems. At least from a user level, I haven’t seen it create complexity problems.

    It breaks my familiarity with existing tools to some degree. I don’t know how to configure which virtual terminals exist and have a getty process running on them the way I did with traditional init. I don’t know systemd’s runlevel replacement.

    But other software packages have done that too. Iproute2 did that with ip replacing route and ifconfig and similar. And my understanding is that there was a legitimate reason for that transition – IIRC multiple routing tables or something. The command-line Unix world is still pretty good about maintaining UI over time – transitions like this are pretty rare, compared to something like Windows.

    Traditional init didn’t permit for parallel init, which especially in a world with SSDs and many-core processors, is, I think, desirable. I’m not saying that it had to be systemd – could have been Upstart or something. But I think that the switch to some form of init system that permitted parallel init needed to happen.

    There was a real issue that traditionally existed with the concept of a user being locally logged in to the machine and having elevated permissions to physical devices, like sound hardware and CD drives and such, and my vague understanding is that systemd-logind handles some of this. That wasn’t historically handled very well.

    Same thing for hotplugging and systemd-udevd.

    I generally am not happy about a single software package taking a large role in distros, because IME, part of the way that distros can deal with problematic software packages is to drop them in favor of another, and something that is part of a large project has a lot of inertia.

    But…you could say the same thing about GNOME or KDE. They’re both large software projects. They contain things, like a solitaire game, that don’t really need to be part of the larger package. And I don’t see people off trying to break them up. Okay, they aren’t as fundamental to the system, but the same scope creep argument can be made.



  • What do you want to do with it? I mean, that really determines the hardware.

    Consider the following use cases:

    • If you’re trying to do a media server to serve video and audio files up to other devices around the house, then access time probably basically doesn’t matter, and rotational drives are fine, and CPU capacity is probably irrelevant; you only need to stream at the media’s speed, and there isn’t a whole lot of seeking, and there’s no computation. You need the system to be running at all time. Expandability, other than storage, doesn’t really matter.

    • If you want a backup server, then you’re probably in a similar situation.

    • If you’re trying to do a box to run LLMs, like a headless Stable Diffusion server, then you probably want a very beefy GPU, and enough storage space to store the relevant content, but you don’t need massive amounts of storage. CPU doesn’t matter much.

    • If you’re trying to do a firewall, then unless you have really elaborate processing requirements, CPU probably doesn’t matter. You are going to want at least two network ports. Keeping power usage low is probably desirable.

    • If you’re doing a home automation server, probably similar (though you don’t need network ports).

    • If you’re trying to have a box that runs VMs, then a bunch of memory and a beefy CPU, not to mention probably SSDs is likely desirable. Limiting power use probably isn’t that important.

    There are applications for which a Pi is completely reasonable, where you’re using very little power and just need to keep the box always available. But there are applications for which it’s unreasonable, too – it’d make a bad VM-hosting box.

    Like, if you say “I plan to do X, and Y and I’m thinking that I might do Z”, and maybe give some kind of a desired budget, that’ll probably get you more-useful advice.

    First I wanted to do it on a Raspberry Pi with an external hard-drive but then I read USB connected drives are unreliable and so on.

    I don’t know about unreliable. I’ve never had problems with USB-attached storage just not working. But I do have one enclosure with about five drive bays that doesn’t have an option to return to the previous power state on power loss – one has to tap the power button – which is incredibly obnoxious, as if it loses power and I’m away, I can’t bring it back up. That wasn’t something that I’d anticipated being an issue, and I’d suggest that anyone getting one for a system that they intend to use remotely check that such an enclosure does have such functionality.


  • I think that arguments of the form “X is/isn’t moral” tend to be difficult to make. And with sexual social norms, particularly so.

    In general, I think that most social norms related to sex are more-or-less arbitrary.

    I have a really hard time imagining a society where across-the-board murder is simply acceptable functioning. It just creates too many issues for society to function. Maybe you could have dueling or something like that, the pater familias causing certain forms of infanticide in the Roman tradition, maybe some kinds of euthanasia, but some kind of restrictions are just required to have a society. You can’t find historical civilizations where it was just okay to outright do anyone else in.

    But when it comes to sex, societies have had different views on polygamy, polygany, incest (of different forms), sex below certain different ages, homosexuality, bestiality, prostitution, pretty much you name it. Maybe there were some issues that they created, but some society made it work all right.

    But thing is, society teaches people a set of social norms, and I think that with sex, those tend to be axiomic. Like, someone who objects to bestiality probably isn’t going to say that they find bestiality to be wrong because it violates some other moral precept. It’s pretty unlikely that someone says “sex with sheep is problematic because it might lead to spread of prions-based disease”. They’re simply going to treat it wrong in-and-of-itself. It’s wrong because they’re taught directly that it is a social norm that it’s wrong.

    If you think that something is wrong or undesirable because of some other consequence that it has, then maybe someone can try and make a case as to how it interacts with that consequence. But…you can’t really reason someone into a different set of values if the particular sex act is the root value there. If, in someone’s eyes, homosexuality is immoral because homosexuality is immoral, saying “homosexuality is moral” doesn’t do a whole lot by way of convincing them.

    Maybe you can show inconsistency between two values that someone holds, and they’re put in a situation where they have to pick one or the other.