Skip Navigation

Search

It's A Digital Disease! @lemmit.online
Lemmit.Online bot @lemmit.online
BOT
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/datahoarder by /u/stfn1337 on 2025-02-03 22:32:05+00:00.


I wrote two blog posts how to hoard Youtube videos and serve them locally without ads and other bloat. I think other datahoarders will find them interesting. I also have other posts about NASes and homelabs under the "homelab" tag.

How to Archive Youtube

Using Pinchflat and Jellyfin to download and watch Youtube videos

Nix / NixOS @programming.dev
hallettj @leminal.space

Native Wayland gaming with Wine on NixOS

I'm a fan of gaming - my main game is Overwatch. Until this week I've been using xwayland or gamescope to run Wine games which comes with downsides. Xwayland's window management can be buggy - in Gnome I can end up unable to switch back to a game window. Gamescope has some latency and visual artifact issues in my preferred window manager.

But now with the Wine 10 release candidates you can run Wine in native Wayland mode without any special registry settings or anything. And it works very well as far as I can tell! I went through the trouble of figuring out how to get Wine 10 set up on NixOS so I thought I would share.

Wine 10 is currently available in nixos-unstable. The simplest way I've found to get it working for games is to use Lutris, and to install both Lutris and Wine from unstable. To get a complete Wine setup for Lutris use wineWowPackages - for example wineWowPackages.stagingFull. The Full variant includes wine-mono which you'll probably want, and the staging pac

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ @lemmy.dbzer0.com
s08nlql9 @lemm.ee

Install Arkham Asylum GOTY in Steam deck

cross-posted from: https://lemm.ee/post/27028864

[HOWTO] Install Arkham Asylum GOTY in Steam deck

Steps below assume you are in desktop mode.

  1. Download a copy from web archive
  1. After extracting files, add BmLauncher.exe found in Binaries folder as a non-steam game
  2. Hit play button so it will generate files in steam's compatdata directory. Additonal files are required to install so just stop the game.
  3. In Steam, edit BmLauncher.exe by selecting Properties > Target > Browse > navigate to _Redist folder and select vcredist_x86.exe
  • example: /home/deck/Games/Batman Arkham Asylum - Game of the Year Edition/_Redist/vcredist_x86.exe
  1. Hit play button to run and install vcredist which is for Visual C++ libraries
  2. Repeat steps 4 & 5 to install the other required libraries which are also under _Redist folder:
  • `/home/deck/Games/Batman Arkham Asylum
nixos @lemmy.ml
hallettj @leminal.space

gnome-keyring as ssh agent in lightweight window manager

cross-posted from: https://leminal.space/post/4750886

It took me some time to work out how to get my ssh agent set up in Niri so I though I would share what I did. I'm using NixOS and Home Manager. I put this in my Home Manager config:

 nix
    
services.gnome-keyring = {
  enable = true;
  components = [ "pkcs11" "secrets" "ssh" ];
};
home.sessionVariables.SSH_AUTH_SOCK = "$XDG_RUNTIME_DIR/keyring/ssh";

  

I'm using GDM according to NixOS' default configuration which I think runs gnome-keyring (I thought I saw it in the process list before I set up the user unit), and I think that configuration is automatically unlocking gnome-keyring when I log in via PAM integration. But apparently I need to run gnome-keyring again in my window manager session. Home Manager's services.gnome-keyring adds a systemd user unit that does that.

Nix / NixOS @programming.dev
hallettj @leminal.space

gnome-keyring as ssh agent in lightweight window manager

It took me some time to work out how to get my ssh agent set up in Niri so I though I would share what I did. I'm using NixOS and Home Manager. I put this in my Home Manager config:

 nix
    
services.gnome-keyring = {
  enable = true;
  components = [ "pkcs11" "secrets" "ssh" ];
};
home.sessionVariables.SSH_AUTH_SOCK = "$XDG_RUNTIME_DIR/keyring/ssh";

  

I'm using GDM according to NixOS' default configuration which I think runs gnome-keyring (I thought I saw it in the process list before I set up the user unit), and I think that configuration is automatically unlocking gnome-keyring when I log in via PAM integration. But apparently I need to run gnome-keyring again in my window manager session. Home Manager's services.gnome-keyring adds a systemd user unit that does that.

Neovim @programming.dev
hallettj @beehaw.org

Neovim lua to check if file is in given directory

Posting just because I looked all over and didn't see an answer. This function expands its arguments to canonical, absolute file paths, and tests whether one is a string prefix of the other. It also works for checking whether a directory is inside of or is identical to another directory.

 lua
    
local is_file_in_directory = function(file_path, directory_path)
  local file = vim.fn.fnamemodify(file_path, ':p')
  local dir = vim.fn.fnamemodify(directory_path, ':p')
  return file ~= nil and dir ~= nil and
      -- is dir an initial substring of file?
      file:find(dir, 1, true) == 1
end

  

This came up because I'm setting up obsidian.nvim which looks like a handy way to get the best of both worlds between Obsidian and Neovim. I'm setting up some custom configuration to automatically change th

Android @lemdro.id
Avid Amoeba @lemmy.ca

Get rid of the new image picker in Chrome on Android

Problem

I just noticed it today while trying to attach an image in a web app. Last time I did this I was greeted with an image picker where I could tap Browse to get to the system image picker that allows me to go into Files or Google Photos among other file sources. This new picker doesn't see Photos' albums. Instead it presents some folders as albums. I don't see an ability to get out of it to get to the system sources from the UI.

Solution

It seems like setting this flag to Enabled or Disabled brings back the old behavior.

I haven't tested all the remaining values. It seems like for some (h/t @[email protected]) only Disabled brings up the old picker that allows to get to the system picker.

YMMV

#HOWTO #Android #Chrome #image #picker

Self Hosted - Self-hosting your services. @lemmy.ml
Keli @lemmy.fmhy.ml

Quickly get OCIS (Nextcloud alternative) up and running

To those self-hosters who are out there curious if there exists a faster Nextcloud-like alternative without all the bells and whistles. I present to you, OCIS! This howto assumes that you're running a Linux OS and that you have a reverse proxy like caddy running. To the guy who I suggested checking out OCIS, I wrote this guide for you ;)

1. Download the OCIS binary:

sudo wget -O /usr/bin/ocis https://download.owncloud.com/ocis/ocis/stable/3.0.0/ocis-3.0.0-linux-amd64

The above downloads the latest stable version.

2. Make the downloaded binary executable:

sudo chmod +x /usr/bin/ocis

3. Create a systemd unit file to start OCIS automatically:

 undefined
    
Description=OCIS server

[Service]
Type=simple
User=ocis
Group=ocis
EnvironmentFile=/etc/ocis/ocis.env
ExecStart=ocis server
Restart=always

[Install]
WantedBy=multi-user.target


  

4. Create the ocis user:

sudo useradd --system --no-create-home --shell=/sbin/nologin ocis

5. Create the necessary directories:

`

Privacy on Android @lemmy.ml
samuraikid @lemmy.ml

Android Universal Debloater NO ROOT & ROOT

Video help how to use Android Universal Debloater by w1nst0n on Unix Terminal