[–] 3 points 4 months ago

what if someone just sloppily hand-coded an insecure docker container, should you be able to kick that off too?

I can talk to them and have them fix it without them being weird about it. But if they don't understand the poor design decisions in the first place then I have no confidence won't be able to actually fix it, and keep it fixed in the future.

It's fuzzy, and many generalizations are gonna be made.

Ultimately, it really comes down to human judgement and not your instance not your rules. They are hosting for free. They don't have any obligation to host your projects. The rules and everything are nice conventions, and a good attempt at transparency, but at the end of the day, there is someone with access to the admin panel who is going to make the decisions, and you're not really going to be able to do anything about them.

It's the same thing with lemmy tbh, although it's less annoying because it's much easier to self host and migrate to Forgejo, as opposed to hosting Lemmy. That's why I phrased it as "I would feel uncomfortable hosting this content" rather than trying to address the fuzzier arguments about the necessity of human judgement, the difficulty of detecting LLM generated code, or the possibility of incorrectness.

  • source
  • parent
  • context
  • [–] 4 points 4 months ago

    That's a lot of stuff. Are you sure you can learn it all at once?

    Anyway, I would highly recommend finding local software meetups to attend. You can sites like meetup.com, or luma or eventbrite to find them. You can also try to hunt down websites made by other people that might document it.

    You can also try these, although they are focused more on cybersecurity:

    https://infosecmap.com/

    https://wiki.hackerspaces.org/List_of_Hacker_Spaces

    But definitely try to engage with the community near you. It will help you stay motivated, and you'll learn a lot.

  • source
  • [–] [S] 1 point 4 months ago (1 child)

    Ah. You're on Void. Indeed, it does look like Void doesn't have an implementation of systemd-tmpfiles. Here is the file from my system, it's only creating a single symlink, which is basically the same thing you are doing:

    [moonpie@nefertem home-manager]$ cat /etc/tmpfiles.d/non-nixos-gpu.conf 
    L+ /run/opengl-driver - - - - /nix/store/2r6vmqh1vkivsrmr6n1vh1862i2qndqz-non-nixos-gpu
    

    Oops, the below is for artix. I was nosy but not nosy enough and I saw a comment where you mentioning you used void after you wrote all of this. I'm gonna leave it here since it was an enjoyable rabbit hole.

    I did some digging, and it looks like it is possible to use systemd-tmpfiles outside of systemd. It's just a binary that creates files/directories/symlinks based on a format, so it's pretty easy to extract, or reimplement entirely.

    Artix has their own, an extraction from the systemd package: https://packages.artixlinux.org/packages/system/x86_64/etmpfiles/

    It looks like that package is required by the base package, which is the core package set declaring the minimal dependencies needed to have a working system, so it's highly likely you have it installed.

    I think it automatically starts too, but I can't find a hard source for this. Based on this page: https://wiki.artixlinux.org/Main/Migration#Download_the_Artix_packages it looks like etmpfiles is needed before you select/install the init system, which suggests that. This reddit post, where a user has an issue where etmpfiles isn't installed, so their service manager complains and dies.

    If you have a service named something related, like tmpfile or the like, then it does autostart.

  • source
  • parent
  • context
  • [–] 7 points 4 months ago (1 child)

    This is a pretty good question, and I can't really tell. Based on some research, it looks like the OG Xbox was actually based on Windows 2000/NT, and modern windows is based on NT as well, so it could theoretically be a translation layer. It could also even be a straight port with no emulation.

    My guess is that it's a translation/compatibility layer + game specific optimizations/fixes. If it was a solution that worked more generally, then why wouldn't they put more games on there?

    Or, it could be that those games are easiest to support under the emulation/translation layer, and maybe it will be expanded to all games shortly like Wine is?

  • source
  • [–] 41 points 4 months ago* (last edited 4 months ago) (3 children)

    Yeah, this makes sense. They won't be able to kick every vibecoded project off, but it gives them a rule to point to when they do find and remove slop.

    Some of the commenters on the Codeberg issue are expressing concerns about copyright status, but my main concern is security issues with these projects, which I have expressed before. Somebody vibecoded a script to sort files? I don't really care.

    Someone vibecoded a network facing application, shipping a docker container, and is trying to encourage people to deploy it? If I investigate, and see the bad security practices common to vibecoding, I wouldn't want to be providing that for people to download. Even though I'm technically not responsible for it, it just doesn't feel right to host something that could explode later. I would want to be able to take it down, and having a rule to point to prevents complaints when Codeberg does so.

  • source
  • Depending on how desperate you are, and if you are willing to delve into the dark arts, there are ways to get new KDE on stable distros. It's probably way more effort than it's worth, however, and I wouldn't really recommend them to most users, due to the steep learning curve and various limitations. However, if I were to ever build a Linux distro, then I might consider them, as a way to mix and match older and newer packages.

    I will also preface that KDE Plasma is one the more unreliable and prone to breakages part of my Linux system (Arch). People like to joke about krashes, but it's kinda true. The bottom bar likes to crash sometimes, and I then I have to run systemctl --user restart plasma-plasmashell (the fact that I have that memorized scares me). KDE never really stops working overall, but various papercuts appear which I find workarounds for. Gnome is better though, and is much more reliable, IF you aren't using extensions that aren't officially supported, which often break on major Gnome updates. It's probably because of that that Arch Linux sat on the Gnome update for a bit, to wait for the extensions to update and become compatible, whereas Fedora just said YOLO and pulled the trigger lmao. However, Gnome's harder dependency on systemd might make it tough to drag a newer version onto another distro using the methods mentioned below.

    The 3 ways I can think of (in order of how much I prefer them):

    1. The Nix package manager can install recent packages from Nixos's rolling release or more up to date stable distro on other distros.

    Nixos is both a distro and a package manager, and their repos include things like desktop environments, that wouldn't normally be included in solutions like brew. In fact [Hyprland's wiki has a guide on using Nix to install Hyperland on non Nixos distros](https://wiki.hypr.land/Nix/Hyprland-on-other-distros/. This will not work for KDE however. By default, Nix packages on other distros don't have GPU hardware acceleration, which is kinda needed for a DE. You would have to wrap these packages via Nixgl. The best way is to use home manager and use that to wrap the packages.

    Wait, it looks like the docs have been updated: https://home-manager.dev/manual/unstable/usage/gpu-non-nixos.html#sec-usage-gpu-non-nixos . If you are using home manager, it looks like GPU wrapping is automatically enabled if you set targets.genericLinux.enable to true, although this requires root.

    Then you would have to do some stuff to setup the login manager so that it can detect the Nix/home-manger version of KDE.

    1. Bedrock Linux let's you install multiple Linux distros at once, next to eachother, mixing and matching packages and utilities.

    With bedrock, you could use a Debian base system, using the Debian bootloader, kernel, and systemd, but you could be getting your DE components from Arch. Unfortunately, it doesn't support many things or distros (see pre installation checks), and some of the things like grub + btrfs would suck to lose.

    1. Distroxbox can run an entire desktop environment from within another docker container.

    The main limitations with this setup, is that you are now inside the container by default. If you execute bash, or a terminal, or whatever, it's actually the container's version, and not the hosts. You can configure it to automatically find and execute the host's version of the program if it's not found in the container. But, I would prefer just cherrypicking the DE from another distro, in order to use only that component, which is why this one is third and my least favored. But it does technically work.

  • source
  • parent
  • context
  • [–] [S] 2 points 4 months ago* (last edited 4 months ago) (1 child)

    Huh. The page was updated, reviewing it a year later. It does look like there is an option to automatically give GPU to all Nix/home-manager programs now. If you set targets.genericLinux.enable to true, then it should work.

  • source
  • parent
  • context
  • Containers are commonly used to distribute programs that depend on different library versions, including different libc versions.

    And yes, you could compile software for specific hardware and then deploy it via containers.

    What is the advantage in using a container to say run gromacs, rather than pointing the user to the path of the compiled binary

    Different libc versions. There are also some sandboxing and security restrictions that are applied.

    I definitely want to have some persistent services running: databases, a couple web applications and maybe a Jupiter webpage to visualize results.

    Maybe docker swarm mode, with the nvidia container runtime is easier? It lets you spin up services on multiple nodes, which you could then load balance with a conventional reverse proxy. Although if you are trying to do a single instance of Jupyter, then I don't know about it's ability to serve multiple users, or the security of that setup. Usually, people go for things like JupyterHub + the Dockerspawner. Jupyterhub handles authentication or

    There is also a Kubernetes spawner, or you can use an alternative web application that can dynamically spin up jupyterlab/notebooks, like Kubeflow, or coder, but I don't think any of that is what you want in regards to that specific usecase for Jupyter.

    If you just want to present rendered stuff, check out: https://quarto.org/ , which is a static site generator capable of executing jupyter notebooks, and rendering them to websites. It can also render I use it for my blog, which is ironic because I don't actually use any of the data science features quarto has. I really like quarto because it's the only static site generator which I found has fulltext search built in/easily enabled. It runs some javascript over a generated index, and you can search the website without any form of backend needed.

  • source
  • parent
  • context
  • [–] 1 point 4 months ago (2 children)

    Firstly, you should check out what the organization you are building for uses. If they use Red Hat, or Ubuntu, then you should probably just build your solution on top of those operating systems (or a Red Hat clone like Rocky or Alma). Both of those are popular in many organizations, and it would probably be better to use what people are familiar with and know how to troubleshoot or work their way around. Potentially, they even have support contracts, giving them the option of calling the parent company for help.

    Ansible is good. The learning curve is definitely less steep than Nixos, and it's easier to teach people. One benefit is that you can reuse existing public roles and playbooks. For example this one: https://github.com/galaxyproject/ansible-slurm , which installs slurm.

    You would probably have to write additional playbooks or roles to install nvidia drivers or configure the system, but then they can stick.

    openhpc

    Firstly, is there anything specific from here you need? Secondly, is there anything in here that's not available in existing distro repositories, like Ubuntu or Red Hat's?

    It certainly looks like an interesting project, but a 3 node cluster is pretty small, and I find it hard to justify things like OpenMP/MPI, which is basically a special compiler that compiles programs to run across multiple machines at once. For that runtime to work, you do actually have to compile the programs, which are written for it, using it, which can require work on the side of the people who want to run applications or simulations.

    The more likely setup, to me, is that Slurm is going to to run docker containers via Apptainer. Slurm would handle assigning containers to nodes based on free resources, but they wouldn't actually share resources like memory or CPU. This setup is still plenty useful, and very common.

    Original comment, from before I read that you already selected slurm below. This comment isn't relevant, as I realized I was targeting the wrong things but I'll just leave it here regardless.

    For the platform itself, you should use either Kubernetes or Slurm. Slurm is popular in academia, and Kubernetes is popular in corporate, but they are used interchangably depending on specific needs.

    Slurm is better for scheduled tasks. Like let's say you want researchers at a school to be able to run a long running simulation. They can sign up, reserve time for that slurm cluster, and then send out a "job", for that slurm cluster. The job will automatically be allocated to the node of the cluster with free resources, and then ran, and then stopped, and the researcher will receive the results back.

    Kubernetes is better for persistent deployed services, like web services or the like. For example, AI inference. Kubernetes can also do batch jobs, but it doesn't have the advanced time tracking or scheduling systems that slurm has (although sometimes people build that on top of Kubernetes in order to only deploy one clustered system).

    Nixos is nice for configuration as code, but it lacks clustering or application/cluster orchestration features. You can use Nixos to deploy Kubernetes or Slurm, but I wouldn't use it as the HPC platform itself. Nixos should work with Cuda in addition to that.

  • source
  • view more: ‹ prev next ›