• 0 Posts
  • 26 Comments
Joined 3 years ago
cake
Cake day: June 25th, 2023

help-circle
  • What you’re describing works but probably not for me as you acknowledge. The “PC loses AC while running” part is what I actively try to avoid as part of the greater goal of minimizing risk of damage/data loss. It might be superstitious at this point, modern hardware and filesystems being a bit more resilient, but I feel better not risking it. Since I’m shutting down before the UPS battery dies, and power could restore before it does, there’s a real chance power will never be totally lost as far as the motherboard sees it. In that case a boot on AC restoral won’t get triggered. Otherwise I agree. It’s a lot of work. Or rather a lot of research, RTFM, and understanding before you can even do the a little bit of work to implement it.


  • I was actually working on an edit to further clarify but that context helps. You’d think for a single machine, just run NUT (or whatever) directly on said machine. The two big reasons, even in that case, for using NUT on a RPi or other low power machine are actually what my edit was going to address: Power Consumption and Wake on LAN. After shutting down any power hog server(s) a decent UPS can probably keep a Pi Zero and travel router running for half a day. Ideally long enough to send a WoL packet to the server(s) once the UPS says power is restored. That can be pretty important, even in a “single” (ignoring the Pi) machine setup, if you’re out of town and nobody else has access to manually power it back up.

    I will admit NUT was one of the more convoluted things I ever set up, and one has to write their own scripts and such for it, but I find it worth the peace of mind knowing things shut down cleanly. Having them wake back up automatically is icing on the cake, even if my own setup is local only. There’s never a need, if I’m not home, to walk anyone over the phone through identifying which nondescript black rectangle needs its power button pushed.


  • __hetz@sh.itjust.workstoSelfhosted@lemmy.world•*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    3 months ago

    I’m not sure if there’s a fundamental misunderstanding but I felt a need to clarify that NUT works with a UPS. It isn’t either or. Whether you’ve got a homelab or a single desktop PC, you need some piece of software which can see when the UPS goes “Oh shit, power is gone” and instruct the machine(s) to shut down cleanly. NUT is that software. If it wasn’t NUT then it’d be whatever software the UPS manufacturer either provides or recommends for your combination of UPS and OS.

    To the example of how one provides media to other devices inside (and possibly outside) the local network, although I get the broader idea, it really becomes a matter of scope, scale and taste. If my goal were to provide access to family members outside my home, friends, possibly friends of friends (either by intent or as a result of account sharing) then I’ll probably want monitoring. I’ll want a dead simple app any of them can install and point to a memorable URL. I’ll want alerts if someone in Romania or Shanghai attempts to log in with a friend’s account… You get the gist. If it’s not something that matters outside my house and I’m not going to repeatedly need to setup VPNs and map network drives for people, I could just spin up a Samba share and add it to the handful of devices in my home network and let those devices decide what application opens whatever media.

    In actuality I’m extremely small scale (serving only my home) and still prefer Jellyfin for its simplicity and transcoding. It’s simple enough to slap on cheap Android TV boxes and hand someone the remote. No real reason to watch it like a hawk. Nor to track bandwidth; I’ve got an excess for the house. The GPU is capable enough; an Arc A380 that’ll never have enough simultaneous transcodes to be a bottleneck.

    To answer the “why?,” I am one of those people that enjoys learning things that often feel like (or factually are) work. Maybe it’s self flagellation and I just refuse to admit it. I am a Factorio addict. But it’s also because tackling those things usually means the other users have an easier time. Mamma don’t wanna learn to drive the network to her laptop or search the app store for a file thingamajig what can connect to that tango or salsa or whatever just to scroll through a bunch of video file icons with the text so small she has to break out the Walgreens readers. She wants a shiny interface that’s swipe-able on a phone or tablet or navigable with a remote control. Pretty movie posters and bold legible titles. And I haven’t touched my config in months for that matter. Just a little bit of work has propped up a really enjoyable, ongoing show/movie watching experience. Definitely worth.


  • American mindset, and probably more broadly speaking, “ban thing” when thing isn’t widely understood (to be bad, or even in general) usually gets reactionary backlash because people don’t like when decisions are made for them or options (even those they’re unaware of) are either taken off the table or forced upon them. It’s teeing up Microsoft to spend a few bucks on a country song and cowboy character ad campaign to brush the issue off.

    “New thing better” doesn’t always work well either because people need a reason to change when things seemingly already work as-is. Leading with outrage is unfortunately the better way to win over people who aren’t going to make an effort for themselves to investigate the problem. Tell them why they should be angry, why Microsoft is a threat to their children, etc and then, if you can convince them, is when you add “…and that’s why we should ban MS products.” Even that is still insufficient without a clear course of action. If the solution isn’t drop-in and painless, it’s going to disrupt the education of the generation when the change is made. The argument needs to be compelling enough to worth unsettling the status quo.

    Last up, our education system is headed by a carny. Our administration swung the doors wide open for Mecha Hitler. Our president loves the uneducated and the uneducated clap like a pack of trained seals when they hear it. Even if Microsoft failed to backroom deal or blackmail their way into maintaining their stranglehold, you’d have to be on Elon levels of ketamine to believe the current admin would adopt open standards or invest the US equivalent of Venezuela’s Canaima Linux. We’d get gaudy gold TrumpTops preloaded Grok, nationalist propaganda and government spyware.

    All that isn’t to piss on the parade. I’m for open standards, open operating systems and improving technical literacy while stripping away the invasions of privacy and stopping the dumbing down of our youth. I just think “ban thing” is only ever going to appeal to bandwagon radicals and the folks that already agree with you. If you’re not winning over the opposition (and more importantly the idiots who don’t even know they’re opposed until their indignant inner sleeper cell is activated by the word “ban”) you’re in for a losing fight.


  • Closest thing I have to a formal education in IT is taking keyboarding, QB, then VB in high school in the early 00s. The only thing I came away with from that was the basic concepts; variables, integers, strings, loops, functions, recursion, etc. I remember nearly nothing about VB. Self taught some Python after that, went to Linux and started learning Bash, CLI tooling, editing confs, working on small portions of languages I didn’t know like Haskell (Xmonad) and eLisp (emacs), running containers… Long enough ago I remember manually setting up Apache and MySQL a few times, editing whatever init system I was using to ensure they started, etc.

    Time and cost are big determining factors. Sometimes I’d like to know more but never enough to become indebted to educational bills for something I’m not making a career out of. Same reason I can install, remove, rekey and pick various locks, and have installed some access control stuff in the past under an employer, but I’m not shelling out to become licensed Locksmith or Security Systems Technician myself. Tools are comparatively inexpensive, and I have many from past employment, and YouTube is still free and archiveable… add in a bit of “dorking” to find manuals and whatnot and self-teaching just makes more sense for me. Same reasons I’m entering my shade tree mechanic arc these days - it’s not worth paying to become an auto tech but it is worth saving thousands on the repairs I can do. Plus it’s just fun to learn and work with my hands.


  • I can say that TubeArchivist is essentially single-user. Multiple accounts on a single TA instance will share the same underlying library with a ./library_dir/channel_id/video_id.ext directory structure. You could run an instance per user for individual TA libraries but, last I looked, the Jellyfin plugin doesn’t support multiple TA instances so it still wouldn’t be able to get the metadata from any instance(s) other than the one it’s configured to. It was a requested feature, on the plugin’s GitHub, but I’m not sure if it’s actively being implemented. The only workaround I can think of for now would be using a shared TA library and then manually tagging the videos in JF and using parental controls to hide them. Billy won’t see vids tagged #SusieYT, Susie has #BillyYT added to her blacklist, etc.


  • Gotcha, that sheds more light. For your use case you’d need to script up some solution that parses the URLs from the feed(s) and sends them to TA’s API. I don’t think it’d be terribly difficult but, if I wasn’t concerned with actually saving the content, I’d turn to something like SmartTube/FreeTube/etc for simplicity and to just stream it.

    For OP’s use case, throwing specific URLs at something which will download them and then have them pop up in Jellyfin, I can’t think of anything easier (at least after the initial setup) than TA. Unless any of the other suggestions here can also handle the metadata for JF, there’s gonna be a lot of manual work involved to have videos show up meaningfully and organized in JF.


  • TA is probably perfect, really. You get the TA Jellyfin plugin , mount TA’s library directory as read-only in Jellyfin, and add that mount as a “Shows” library with TA as the sole metadata provider. Channels become “Show” names and “Seasons” are the upload year. One-way or bi-directional watch progress between JF and TA. I don’t use the feature but I think it supports some sort of organizing by YouTube playlist these days too, maybe as “Collections.”

    The only issue I’ve had is JF seems to do some built-in stuff when it comes to filling in metadata based on file names. Occasionally an “S0” or “E12”, as examples, will erroneously put a video into “Specials” (Season 0) or give an “Episode 12” where there shouldn’t be if those or similar substrings are in the Video ID (which is also the filename). My hackish solution, for a while, was a script that ran a sqlite command against the Jellyfin DB to find any videos in the YouTube library with not null episode numbers and set them to null, and also set unexpected seasons to the year of the video’s upload.

    I had it automated to run right after my scheduled TA downloads completed but it felt a bit wrong doing that on live DB. So now I just periodically run the query, sans the updating, then fix the metadata from within JF’s UI if there are any query results. I could see that being a little irksome, and beyond what non-hobbyists could figure out, but it’s honestly a small price for me when it means I have all my archived YouTube content organized, with descriptions and thumbnails, with no other real work on my part.


  • Don’t know if I can pick a favorite but I’m often the most happy when I’m actively using Homebox and LubeLogger. I track my tools with the former and track service records, parts inventory, mileage and such with the latter. If I’m using those services extensively it’s because I’m wrenching on something and adding more RockAuto magnets to my collection. Even when the circumstances suck, I genuinely enjoy an opportunity to take things apart, tinker and repair them.

    No longer directly related to self hosting

    I like busting out the jack and stands, reefing on a breaker bar, field repairs that succeed in getting out of a bind without waiting 2 hours for a tow bill in the hundreds of dollars, then making it home safely and doing it the right way, meticulously cleaning gasket surfaces…

    It’s zen for me and I don’t know why. The same reason I enjoy stripping down a firearm and cleaning it more than the day at the range leading up to that point. Or why I’ll go through the trouble of disassembling a $30 tower fan to extract every bit of dust and pet hair that has found it’s way trapped inside. I couldn’t pay someone else to do that for less than the damn thing costs… I just know that I can do it and feel compelled to. I might be an overgrown gnome.

    I’ve got the family’s vehicles in LubeLogger, having become the mechanic for anything short of transmission problems or requiring welding or a machine shop. The riding mower is in there too just because. It’s never often enough and I’m tempted to find a bike or an old beater I can tune up just to have a project that doesn’t have me sitting at the keyboard.


  • This has been my solution. Subscribe to a playlist or an entire channel, set up the schedule, and you’re done. If you’re a supporter of the project I believe it has real-time monitoring for new uploads.

    I will note that, somewhat recently, YouTube changed the URL format for playlists and this has broken subscribing/downloading playlists that use the new format. I haven’t checked today but there’s a patch that was still waiting to be merged. Unless there’s a new release incorporating it, you’ll have to apply it yourself or feed the URLs in manually for now.


  • Beets for importing, ascii only, lastgenre, fetchart, whatever other plugins I’m forgetting, /artist/yyyy_album_name/ directory structure, 01_title.ext for single disc, 01-01_title.ext for multi disc. I invoke beets manually just to keep an eye on how things get matched up and tagged during the process. I deal in full albums, LPs, compilations and such because it’s often easier to maintain and match metadata than with individual tracks. I guess it’s a data hoarder / archivist compulsion too, but it’s rare I can’t find at least one other track on an album appreciable so… why not?

    A weekly rsync pushes the beets DB and library from my TrueNAS server to another server with a 8TB external dedicated to backing up my most important stuff (personal projects, password store, compose files, confs, etc). I’ve got an rsync alias set up on my laptop I invoke manually because I’m nearing the limit of what I want to allot to music. At least until I decide to get a larger drive.

    That’s local in triplicate, with zraid on the NAS and a fourth copy on my phone, which leaves me feeling pretty good about not losing any music outside of a house fire or tornado. I was also rsync’ing all my media (music, movies, shows) to another TrueNAS setup at a relative’s but some things have changed with that so it’s on hold. Not fond of missing my off-site backup but hopefully can resolve it soon.

    Everything is local only right now. The library is mounted read-only in Jellyfin so can play music from pretty much any phone, TV, computer, my Steam Deck, etc throughout the house. If I ever decide to open things up, reverse proxy or whatever, I might look into Finamp but I buy a flagship phone every six to ten years for the storage space so I can just take my music with me. Might eventually switch that to a dedicated music device.



  • Yeah, Jellyfin was my best example. I’ve got the motions memorized, to get to the admin panel, as well but Homepage is my homepage so it saves those few seconds. I agree otherwise about urgent messages. Important stuff of mine hits a Discord webhook for now.

    Eventually I’ll set up some other alternative to get push notifications. I took the time to write a few half-assed cogs for pycord, and I enjoy(ed) the process and using them, but I don’t really trust the platform. I might need to give good old IRC a go again. I’m sure some Android client can do push notifications on a specific channel/sender basis.


  • Most are definitely just showing off; “Look at how many photos I have stored,” “I have so many podcasts and ebooks,” “Bow to me, mortals!”

    On the flip, some are useful. PeaNUT gives UPS off/on line power status at a glance, Jellyfin shows active streams iirc, FreshRSS shows if there are unread feeds, Portainer shows if any containers have stopped, etc. Jellyfin is a big one since I don’t have to get into the WebUI to see if updates or whatever are going to interrupt someone. Otherwise I’m mostly in agreement and just use links in lieu of widgets and silly API calls.


  • I’m not 100% sold on running actual ads although, if I recreated Nickelodeon, it might be fun to throw in commercials for stuff like Gak or the old Stick Stickley bits (provided I could find those). Maybe roll my own Snick and Nick-at-Nite blocks. For the latter it’d be neat to have some more period-correct stuff - even if it’s just Fred Flintstone hocking cigarettes or whatever.

    I’d probably need to significantly expand my storage and media collection to make more than a couple channels doable. Definitely a bunch of bumps, “coming up next,” etc if I want to keep a strict 15/30/60 type schedule. And a 24/7 weather channel with the old WeatherStar 4000 style.

    If you find the channel, let us know. I’d probably be keen to pull at least a handful of old adverts for padding.


  • I can’t find the video anymore but I remember someone recreating retro cable TV using dizquetv and an RPi (maybe just for the “receiver”). Searching now, I mostly find that ErsatzTV and FieldStation42 seem to be the goto options. I keep bouncing the idea around of setting up actual “channels” for Jellyfin, complete with silly self-recorded ads/bumps/promos/etc, but haven’t decided on a solution.

    If you’re already doing so, do you have any insights? At a glance, ErsatzTV Next appears the most dynamic but also most barebones in that focus is mainly on the streaming. Library management and station programming looks to be external, which would mean having to roll my own scripts or whatever.


  • Eh, Windows still needs PowerToys (mainly FancyZones) for a better experience. I like around a 30/70 split between Windows Terminal (for PowerShell and WSL) on the left and some primary application like a browser on the right. It does have keybinds for shuffling through a stack of windows but only on the side that has focus. It still really needs a way to swap focus between zones that isn’t Alt-Tab’ing until you’re on the desired one or grabbing a mouse to click a program in another stack.


  • What are your other hobbies/interests? What are some things you’re completely uninterested in but it’s annoying shit you would really like a better way of handling? Got some answers? Now check the awesome self hosted page to see if there are any existing solutions that look promising. If so, now you know at least some things to host.

    How to go about it? When I started I was an idiot kid, on Windows ninety-something (or maybe ME), running Apache, MySQL and phpBB. Copy-pasting snippets in Notepad and not comprehending everything. I found desktop Linux later, learned about init systems, watched that go out the window with systemd, etc. I was installing Ubuntu on every beige clunker I could get my hands on back when the Beryl (Compiz) cube desktop video went semi-viral. Eventually moved on to Arch, learned more about CLI tools, editing configs, etc. If you have something that can host VMs, and you want to play with mock bare-metal setups where you create the users, directories, set permissions, blah blah blah - VMs aren’t a bad way to go. It’s good stuff to learn and know. Gives you an excuse to play with tmux’s synchronized input feature, maybe learn some Ansible, and whatever else. If you just have one dust collector sitting around, start trying distros on it. Mess with stuff til it breaks, boot into install/recovery media and try to unbreak it, repeat. As long as it’s fun (or tolerably annoying enough to reach some end goal).

    I’ve personally gotten lazy and I’m nearly all-in on containers. A few things are manual but I’ve come to like Docker. I do still manage mine with compose files, even on my TrueNAS system with their “apps,” because compose files are easy to read, keep track of, and modify. My non-TrueNAS machines, I use Docker + Portainer. I should maybe look into podman and quadlets but haven’t bothered yet.

    My recent hardware went from RPi4B to Thinkcentre mini PC to building out a 2U TrueNAS system. A PoE switch powers a Home Assistant Yellow and a few cameras. The RPi was repurposed to only host Homepage, NUT (server, watches my UPS and tells more power hungry machines to shut down during outages) and might eventually host Grafana if I ever get into learning it. Another 4B is my Pi-Hole. The Thinkcentre has an 8TB external plugged in and scheduled rsync tasks, on the TrueNAS machine, push back ups of my more important files to it. It also has a couple users set up strictly for running game servers (ioquake and teeworlds at the moment). Those aren’t containerized and things like rcon, config management, map rotation, mods, etc are all handled manually.

    TrueNAS hosts everything else. If you need ideas based on what others are hosting, here’s some of what is on it:

    • Jellyfin, for TA (see below) and my legally obtained DVD backups.
    • TubeArchivist, (TA) for backing up YouTube videos, descriptions, comments. Has a Jellyfin plugin so your backup library is watchable in JF
    • Homebox, for home inventory management. I use it to keep track of my tools mostly. You can have locations, sub locations, items… if I pull a rail of sockets, stick them in my toolbag, then carry it out to the shed - so long as I bothered to update their locations in Homebox I won’t waste time digging in the back of my truck, tool chest or other bags because I can’t remember where I last used my 1/2" drive 14mm deep impact. It’s a mildly inconvenient extra step to essentially “check in/out” my own tools, as if I’m working in an aircraft hangar or I’m doing IT asset management, but I find it worth it.
    • LubeLogger, for keeping track of vehicle service. Early this year I put a lot of money into fixing my truck. A lot of tools, fluids, and parts to handle a broken water pump and do some preventative maintenance. Still a quarter of what a shop might’ve charged. Since I’m becoming my own mechanic, I wanted something to properly record what I do and how much I spend on it. LubeLogger fits the bill.
    • Factorio, for the factory must grow.
    • Dawarich, self hosted GPS logs. Seems decent but I might shop around still. I just wanted an alternative to Google Maps for tracking my travel history.
    • Audiobookshelf, for some audiobooks but mainly for archiving a small handful of podcasts.
    • Romm, because I’m compelled to hoard old games and occasionally even play them.
    • Immich, because I’m not paying Google to store my photos.
    • FreshRSS, because there’s still a dwindling number of sites that don’t force you to visit them to read an article in its entirety. Mainly for Hack A Day, a couple devlogs from game makers, the latest CVEs, some global news sites, NASA’s “Astronomy Picture of the Day” (APOD), etc.
    • Samba, for some SMB shares that family can dump files into
    • ClamAV, because family is dumping files into their SMB shares

    I’m looking at hosting lemon-manuals (successor to charm.li). It’s basically a massive collection of service procedures, bulletins, fluid/torque/etc specs, and so on for decades worth of automobiles. Stuff the industry would like to force you into paying AllData, Identifix, or whoever for. I just haven’t had a chance to review their provided “server.” It’s also over 1TB. It’s overkill when I’m only working on three vehicles (mine and my folks’) but I’d like to have it all in case an auto industry lawyer tries to shut them down or i inevitably get a new set of wheels.

    I’ve also got intentions of implementing some sort of documentation system but I haven’t settled on one yet. It’s not really for me. I can read my configs and go off plain text. Mainly it needs to be simple enough for my family to work with. My homelab has a bus factor of Me. Whoever has to deal with it when I’m gone needs to know enough to retrieve my encrypted password database so they can get into my emails/bank account to cancel/pay for things or whatever, back up any media of mine they want to keep, back up their own stuff, probably some instructions on how to burn their shows/movies/music back to discs, and shut everything down. Because one day things will break, servers they don’t understand will have failures, they’ll sell the hardware or give it away to designated friends/family members who can hopefully use it… all that unhappy stuff most of us don’t think about until it happens. In fact some sort of contingency plan should probably have been the first thing I recommended, but with some luck you’ve read this far and will put your own into place.

    Anyway, hopefully something in the above rambling helps you on your way.


  • __hetz@sh.itjust.workstoLinux@lemmy.ml•RTFM
    link
    fedilink
    arrow-up
    3
    ·
    8 months ago

    I think you misinterpreted their message. Their argument is that it’s an expectation that the professional RTFM (more accurately, to have already done so) which shouldn’t carry over to hobbyists. At least not as strictly. Put another way, “The certified Toyota technician needs to have the fancy book learnin’ while the weekend wrencher or shadetree mechanic shouldn’t be held to the same standard.”

    I disagree insofar as, short of inaccessible resources (sadly becoming more common in my automotive example) or a lack of time and money, there’s no reason a hobbyist shouldn’t strive to educate themselves and achieve professional level of excellence. So long as they enjoy it, anyway. That’s really the point of a hobby.


  • __hetz@sh.itjust.workstoLinux@lemmy.ml•RTFM
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    8 months ago

    Counterpoint: Aside from disabilities which specifically impact reading, why wouldn’t someone want to read when it comes to their hobbies? A hobby is something one intentionally devotes time to, typically unpaid and nonprofessionally, because they enjoy it and they want to learn more about it. A large amount of my enjoyment is derived from learning more about the things I enjoy, so not wanting to consume that information makes no sense to me.

    I can understand, for example, gaming as a hobby and wanting quick answers if one is jumping ship from Windows to Linux. Linux isn’t the hobby there; just a means to an end. I’d still argue the gamer should develop some level of proficiency with their underlying OS. Otherwise it’s like having trail riding as a hobby without any knowledge or tools to patch a tube, tension a chain or tighten a bolt. One might end up in a situation where they can’t just get an instant answer. Investing a little time in the mechanics could keep a short ride from turning into a long trudge out with a bike over the shoulder.

    In the context of “Linux”, broadly, as a hobby - what even is that hobby if it isn’t making an honest effort to learn broadly about various tools, the kernel, scripting and programming languages, and so forth? Linux always struck me as a hobby for people who collect hobbies. Or people that have “learning” as a hobby. It’s why, while I’ll probably never work a day of my life in IT, I know how to do some basic SQL queries, hit an API and parse the JSON, do a little scripting in Bash and Python, utilize a load of CLI tooling much more efficiently than any Windows GUI I’ve ever used, and so on. I’ll never know it all but part of the fun is trying anyway.