Just some Internet guy

He/him/them 🏳️‍🌈

  • 1 Post
  • 551 Comments
Joined 2 years ago
cake
Cake day: June 25th, 2023

help-circle
  • Maybe it can be hacked together with Syncthing: have your phone’s camera sync with an inbox folder on the desktop, have the desktop pick up the files and transcode them with handbrake, then move the original out of the inbox. This will cause Syncthing to sync the deletion back to your phone, and sync the transcoded version back on your phone.

    I’d also check if you can just change the bitrate in your camera app’s settings in case there’s a way to lower the quality there. Could be noticeable, could be just as good as handbrake, never know with hardware encoding.


  • I believe I may have been able to mostly reproduce your setup directly in Bottles, or at least found another way to achieve the same.

    I made a completely fresh bottle, went to dependencies and then installed cnc-ddraw. Then I installed the game, and it works. The intro videos play fine, but then the menu doesn’t draw properly as you said, but the whole menu is drawn at least which makes it just janky but totally fine to navigate. Then once in-game it runs just fine.








  • Misconfigured CORS is no worse than someone using curl, or postman, or any other tool of that kind. What could compromise your server is the backend side of things, the frontend is just a limited HTTP client in the end. The real risk is those making direct requests to your server. CORS is just an ask for browsers specifically to stop cross domain communication, it protects the users not you.

    You can help that a lot by using containers like Docker or Podman, but you should also make sure your backend is secure. But the most risk really even then would usually be, break into your database via SQL injection or something like that, still not breaking into the whole instance.

    If anything, making sure to use SSH keys, disable root login and general server best practices is way more important than your app. You’re more likely that your server itself will be attacked than the backend. Security comes in layers.

    But realistically you’ll be fine, and if you do end up hacked, it’s a learning experience.



  • Bazzite drive me nuts. It’s pretty good out of the box but I had to do some crazy shit to make stuff work for my friend that’s just starting on Linux.

    I measured it, I was able to install like 2GB worth of Arch updates in the time it took to rpm-ostree kargs --append. Waiting 5 minutes to install a tiny <1MB utility package gets annoying fast. It’s nice to be able to just tell my friend to boot the last generation though. Tradeoffs.

    It runs great otherwise though, I see the appeal especially for new users and fixed hardware like the handhelds. Just works.



  • Max-P@lemmy.max-p.metoLinux@lemmy.mlRecommend me a distro?
    link
    fedilink
    arrow-up
    23
    arrow-down
    1
    ·
    13 days ago

    Fedora is usually pretty good at being up to date while still user friendly and still operate like a classic distro. The immutable ones are also pretty nice if you’re into that. Otherwise you could consider Arch or Endeavour. If you’ve been using Linux since 2012, an Arch distro’s probably easier than you think.

    I switched to Arch in 2011 after being on Ubuntu since 7.04 and the Unity disaster… and I’m still running that install to this day. I’m typing this from it!

    In practice I’ve found Arch’s always up to date packages to be less of a hassle than dealing with dependency hell of carefully pulling newer dependencies when you inevitably need a newer feature of a package. Worst case there’s containers for the few stubborn “only works on this exact version of Ubuntu” cases but it’s pretty rare.




  • I use systemd-boot so it was pretty easy, and it should be similar in GRUB:

    title My boot entry that starts the VM
    linux /vmlinuz-linux-zen
    initrd /amd-ucode.img
    initrd /initramfs-linux-zen.img
    options quiet splash root=ZSystem/linux/archlinux rw pcie_aspm=off iommu=on systemd.unit=qemu-vms.target
    

    What you want is that part: systemd.unit=qemu-vms.target which tells systemd which target to boot to. I launch my VMs with scripts so I have the qemu-vms.target and it depends on the VMs I want to autostart. A target is a set of services to run for a desired system state, the default usually being graphical or multi-user, but really it can be anything, and use whatever set of services you want: start network, don’t start network, mount drives, don’t mount drives, entirely up to you.

    https://man.archlinux.org/man/systemd.target.5.en

    You can also see if there’s a predefined rescue target that fits your need and just goes to a local console: https://man.archlinux.org/man/systemd.special.7.en