Skip Navigation
99 comments
  • Not the latest, but one of the biggest improvements was the Ultimate Hacking Keyboard. Now I have programmed the keyboard to have VIM navigation at the keyboard level. The latest was switching to neovim and setting it up properly.

  • This nice little one liner bash script, assigned to a shortcut Meta +Shift + O. It opens the flameshot GUI, let's you select an area of text in your screen and click Ok. It OCRs the screenshot and puts it into the clipboard. It checks for whether you're using Wayland or X11 to use the appropriate clipboard tool. Beyond the more typical text in an image scenario, it's a convenient way to copy non-selectable text in error popups. Not my original idea, copied the concept from a suggestion in a GitHub comment thread and adapted it.

    exec &> /dev/null [ "$XDG_SESSION_TYPE" = "wayland" ] && (flameshot gui --raw | tesseract stdin stdout | wl-copy) || (flameshot gui --raw | tesseract stdin stdout | xclip -in -selection clipboard)

  • A script full of functions that I perform often, like:

    • Probe every 5min for internet connection. Play Black Sabbath when there is. (My internet goes down often.)
    • Create individual tarballs/zips/rars for each subdir.
    • Extract all tarballs/zips/rars from a dir. (It detects the format on its own)
    • Extract all files of a DwarFS file into a dir.
    • Re-encode all vids from a dir.
    • Delete all thumbnail pictures from my user.
    • Find and remove all desktop.ini and thumbs.db files in a dir, recursively.

    My .bashrc then sources that script, so to use those functions I simply open a terminal. And if I ever need to delete my .bashrc and recreate it anew, they're safely stored in my scripts directory.

  • I got VFIO/IOMMU + single GPU pass-through working on Fedora 40 with my RX 6800 xt into a win10 VM.

    More of a see if I could sort of thing, I don't imagine I will actually need it much, but it may help if any of my friends are curious about switching over.

    • What are you using to run the VM? Regrettably, I need a Windows install to upgrade firmware on a USB device. I'm hoping I can get it done in a VM and at least not pay them anything. I tried a little yesterday but wasn't able to install from the Win10 ISO.

      • KVM/QEMU via virt-manager. I would imagine that your use case would work if you pass the USB device or the entire usb host controller through to the VM, but I'm not sure. Please check the video linked in my other comment for more information on the single GPU setup

      • I dunno what you were using but I recommend virt-viewer.

        The main thing for this one is that you'll want to get a PCIe USB controller card and pass that through directly to the VM so that unplugs/replugs/device resets don't connect the device to the host machine briefly while if determines if it should pass through.

    • Oh my god, I wish! I have tried unsuccessfully before, but I was trying to just pass my onboard AMD igpu to the VM and keep an NVIDIA on Linux.

      When you say single passthrough, you mean splitting the one GPU to host and client?

      I have tried through the arch wiki and a couple of YouTube tutorials with no luck. If you found any tutorials/resources that really, helped, please share!

      Also, I really wish I had the foresight to have bought AMD instead of NVIDIA a few years ago, but it was before I was on Linux as my main driver and didn't know any better

      • Hey there, just using a single GPU in this system. If you have multiple adapters, you can try something like LookingGlass instead. In my case, I would need a single GPU that supports SRIOV, which is typically relegated to data centre products (I believe someone actually managed this with an Intel iGPU + and experimental sriov driver!).

        I'm just passing my GPU through to a virtual machine; it takes precedence over the graphical session, leverages all connected displays and relevant peripherals, and gracefully resumes back into GDM / GNOME once the VM is powered off (can do this conventionally within W10).

        I mostly followed this video:

        https://www.youtube.com/watch?v=eTWf5D092VY

        key thing for AMD gfx is to set ROMBAR = 0 in virt config, this will allow you to actually get functioning display output once the VM is started up.

        As for your buying choices, consumer AMD GPUs have issues with GPU reset (unlike Intel or Nvidia). I think your experience with nvidia graphics here will be better than mine here with amd.

        Byt yeah, since you have multiple gfx adapters at your disposal, it should be possible to get started with LookingGlass (a VM in a movable, resizable window that is fully hw accelerated with shared memory). The Level1Techs forum for LG is very helpful, though I believe the creator of the video above also has a relevant guide for this.

  • I use dex and picom now. Every few months I learn something new about running i3wm with no DE.

  • Bundling my two sata ssds into a single zfs volume, instead of manually moving stuff around between the nvme and two sata ssds. Combined with compression, and for my code folder deduplication it also resulted in a lot more usable space.

  • Nix! Just being able to run nix-env -i git and get a newer, isolated, git installation on an older Debian is very nice. Makes it easy to remove.

    I can also do nix-shell -p <application I want to try out> if I want to test stuff out.

    I've been able to ignore the Nix language pretty well so far, so no incredibly steep learning curve quite yet. Nix OS is still too spoopy for me.

99 comments