this post was submitted on 03 Jun 2024
1301 points (96.4% liked)

Technology

59731 readers
3343 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Aceticon@lemmy.world 14 points 6 months ago* (last edited 6 months ago) (1 children)

Having recently setup a cheap Mini-PC with Linux and Kodi as a TV-Box + NAS + VPN client end, replacing both TV box of my ISP (around here Fibre Internet Access tends to be bundled with TV using a TV box from the supplier, which has become progressivelly more shit) used for live TV as well as a separate TV box I had for personal digital media, I now think that Linux is the Best Way to avoid the Enshittification Nightmare much more broadly.

Granted, for decades already I've very purposefully avoided using hosted services that locked me into a 3rd party (such as for example having a Google e-mail address or hosting my files "on the cloud") which in recent times have become increasingly enshittified (as I expected: my tendency for avoiding 3rd party lock-in comes from experience as in IT professional were I saw how invariably said 3rd parties would end up shafting customers once moving out from their "solution" was very hard) and for which Linux has long been a solution, but it's been a pleasant surprised to find out that at least for some of the modern electronics Linux is also the solution for taking back control.

Frankly I'm just waiting for some kind of decent Linux distro for my smartphone and table to ditch Android (in the meanwhile I'm using custom ROMs to somewhat control it and avoid the enshittification).

PS: On the desktop side it's also nice that, right when MS is going fully enshittified, Linux for Gaming has become a very viable option, since gaming was pretty much the only thing keeping me on Windows at home.

[–] thegr8goldfish@startrek.website 1 points 6 months ago (2 children)

I'm doing something similar with KODI and. NAS currently. I'm curious to know if you set up a MySQL database to sync your watch history across devices? I have been reading up on it but since my NAS is just a portable USB HDD plugged into my router, I don't think I can include this option.

[–] Aceticon@lemmy.world 2 points 6 months ago* (last edited 6 months ago)

Well, my NAS before was in the same style as yours and I moved it to that Linux Mini-PC (that by then had already replaced both TV boxes) because it has much better performance as a NAS (my router could only share using SMBv1 which has less than half the speed of SMBv2 and above, and there are even benefits for Kodi that is in that same machine to access the media directly via the filesystem rather than mounted shared, both because it's much faster doing full scans and because it will actually do proper incremental scans - i.e. only and quickly check files with creation dates newer than last scan data - when scanning my NAS for new media files.

As for shared MySQL synch, if I remember it correctly from when I read about it on the Kodi website, that's just having that MySQL set up as a standalone database server in a place accessible by all potential Kodi client instances and then configure your Kodi clients to use that standalone database instead of the internal database of each Kodi client.

This is just a traditional client-server structure were the "server" is the standalone MySQL database and the clients are the Kodi instances: pretty run of the mill way to have a server doing something for multiple client applications if they're all on the same network so lots of corporate software works like that.

The most obvious way of doing this is having that MySQL database on the Linux Mini-PC (even in professional settings, putting your database on a Linux machine is almost always the best choice) by installing it as a package (for example, with apt-get) and then you do have to initialize it and load it with data from an existing Kodi instance (again, if I remember it correctly, you export the data from the internal database of your Kodi instance and import it into that standalone database) and then point the Kodi instance (and any other present or future Kodi instances you want to use that shared watch history) to that standalone database. From looking at it (and given my experience with making server side software), I believe the instructions on the Kodi website for this are correct and complete even if they seem a little daunting at first.

Personally I didn't do it because I have no need for it and hence couldn't be arsed.

[–] utopiah@lemmy.world 2 points 6 months ago* (last edited 6 months ago)

I used KODI for a while but switched to "just" minidlna/ReadyMedia for a lighter setup. I know that VLC can resume videos even over DLNA so I'm wondering if it can abstracted away, e.g having a VLC script that checked, maybe based on filename, if the opening file has already been played from another location and if so, resume from there.

I see that in ~/.config/vlc/vlc-qt-interface.conf there is a [RecentsMRL] section with list (unfortunately local only I believe) and times (in seconds I imagine). One could imagine to scp that file to the NAS using e.g inotify (after writes) then merge it (not replace) on that section only, then a shortcut that before starting VLC get the merged file and does the same. That should allow for resuming across devices.