1
submitted 2 months ago by [email protected] to c/[email protected]

I hope I can explain this correctly; I am only somewhat familiar with docker.

I have a script that I run after Home Assistant OS updates; it updates the alpine operating system with some extra packages and creates three symlinks in /usr/local/bin for three scripts in /config/shell_scripts. Up until now, it's run perfectly when I run it manually over ssh.

Then I decided to create an automation to run it automatically after an HAOS update, and while the package updates work, the script says those symlinks exist already so it doesn't create them; they do not exist, HAOS deletes them after an update (and Core updates might too, but I usually update them together so never checked).

After a lot of frustration, I logged into Home Assistant with root on the 22222 port and found it's checking and finding the previously created symlinks from earlier HAOS updates inside /mnt/data/docker/overlay2/../usr/local/bin and /var/lib/docker/overlay2/../usr/local/bin. At least, that's my guess; googling docker and overlays has been a trip.

So my question: how do I structure the script so that the symlink check is within the docker container's version of /usr/local/bin so it will create the symlink?

I get the answer is probably super obvious, but I am not seeing it. The only other thing I can think to do is export /homeassistant/shell_scripts to PATH but while that works over ssh, I haven't tested that running as a shell script service and I really want to automate this process.

Screenshot of full script attached; here's the short version I'm using for testing. This has been checked with and without variables for paths.

#!/bin/bash

# variables
bin_home="/usr/local/bin"
shell_home="/homeassistant/shell_scripts"

# add packages
pkgs="coreutils figlet iproute2 iw jq procps-ng sed util-linux wireless-tools"
apk add $pkgs
echo "Packages Updated"

ln -s "$shell_home/lib_comp" "$bin_home/lib_comp"
ln -s "$shell_home/ipa_status" "$bin_home/ipa_status"
ln -s "$shell_home/ssh_text" "$bin_home/ssh_text"

echo "Done"
18
submitted 6 months ago by [email protected] to c/[email protected]

So my Home Assistant Blue suffered a tragedy last year and I temporarily switched to using a Pi 4. Then Ameridroid had the Yellow (PoE!) available, and here I am with a Yellow, waiting for the CM4 ( CM4108032) and SSD to arrive tomorrow, and realizing I have no idea what to expect or if there is anything I should expect when I start the config and move this weekend.

Background: I've run HA for roughly four years now on Pi4, Odroid, and in Docker on my server, but since moving it to the Pi while waiting for the Yellow to come in stock, I've only done basic maintenance and working on other projects, so on a guess, I'm going to have to brush up my python and yaml. And anything that's changed that I may have missed.

This will be a scratch initial installation; after linking up my integrations and getting my naming conventions consistent, I'll start copying my yaml files and code over and decide how much of my interface I want to keep.

Any advice would be appreciated if there's anything that's very different with the Yellow hardware. I use two SmartThings Hubs for zigbee, zwave, and matter over Thread control for the most part but have been dipping my toes into direct zigbee control (just not that well yet) and trying to get direct matter over thread to work (not going well at all). And do I need my skynet dongle or Sonoff zigbee dongle or will the built in module work across the board?

10
submitted 8 months ago by [email protected] to c/[email protected]

So I just did my first install of Proxmox a few months ago in my home server, and I'm seriously, seriously in love, enough that I decided to use it to run my media server as well; it runs Plex, act as a NAS for my media and backups, etc.

Specs: CPU: AMD Ryzen 5 5600G Board: ASRock B550 Steel Legend RAM: 32 GB DDR4 3200 OS Drive: Samsung 970 Evo 500GB PCIe 3.0 Storage: 50 TB over six drives (all media), all mounted directly to Proxmox

RGB: Fans: 10 CORSAIR iCUE RGB Elite Performance Power Supply: Corsair CX750F RGB

Running (always): Containers: Plex, Docker, Jellyfin (still experimenting) (Docker runs docker images for MakeMKV, Handbrake and MediaInfo, but it's only up when I am using them.(

Before Proxmox, Cassiope ran on Solus Budgie and before that Xubuntu, and while OpenRGB could be cranky, with Solus I had full control all the RGB elements so I know how to use it. I spun up a Xubuntu VM and installed OpenRGB in it and connected to it after some tinkering but not to everything, but I figured that was just because I hadn't done the hardware connections to the VM correctly. Still, it was there.

It not only did not let me control them, it turned everything RGB off. I had to shut down the server and restart cold for them to come back on and I could not connect and it also started fucking with my lights. I killed the VM, tried again, couldn't connect at all. Just to see what happened, I installed directly to Proxmox with the image and it connected.

It did not go well. Short version, I had to scrub the install and flash my board's BIOS, and so no more experimenting on my media server. I moved some of it to my other server, Watson (similar specs but AMD Ryzen 7 3700X CPU and less storage and 64 GB RAM CORSAIR Vengeance RGB Pro) .

I tried in Xubuntu, Solus, EndeavourOS, Linux Mint, then--just to see what happened--directly on Proxmox. This progressed and ended literally the same way but with more and weirder steps: the VMs would fail, my board started acting up, I (again) tried with a direct install to Proxmox, and yes I had to scrub, flash the BIOS, and reinstall everything.

I am new to Proxmox but I've been jumping distros in Linux for well over a decade and except for EndeavourOS (which is amazing, I finally like Arch), all the VM OSes I used I know very, very well and all worked with OpenRGB perfectly. I have broken many installs and had to scrub over the years like a lot but generally it was something I did either on purpose or because I made a mistake. (or while root, deleted my entire OS; it happens). I was very methodical and very careful, especially when I switched to my other server and took notes; there was nothing I did--or for that matter, was even able to do--that should have caused this. So my guess is I need to do some configuration in Proxmox to get my hardware to connect to the VM (or to use it directly on Proxmox) , but I don't even know where to start and after flashing two separate boards, I'm a little shy on guessing randomly. Yes, I have googled a lot but nothing I read that I tried worked.

I would really really like control and use of my fans and lights but I really, really love Proxmox and the flexibility of a hypervisor and I'm learning so much and barely scratched the surface, so I'd like an alternative to having a lot of very pretty lights that I can't control. Right now, OpenRGB seems to be the only game in town for iCue or Polychrome when not in Windows, so--help?

23
submitted 9 months ago by [email protected] to c/[email protected]

I know how awkward that title is and I apologize.

OS: Home Assistant 11.2

Core: 2023.12.3

Computer: Raspberry Pi 4 Model B Rev 1.5

Explanation: I run a set of data collection scripts on my home network and one of the pieces of data is getting the computer model. In all my other SBCs, the below symlink gets that data.

Symlink: /proc/device-tree/model

File Location: /sys/firmware/devicetree/base/model

The symlink is broken and when I went to check the firmware directory, it is completely empty. The last update date for /sys/firmware according to ls -la is December 10 at 2:40 which when I checked my backups, is when core_2023.12.0 installed.

Attached is what should be in the firmware folder on my other Raspberry Pi 4 Model B Rev 1.5 right now.

I did a find from root for either the model file or anything vaguely resembling it and I can't find it. Anyone else have this problem or is it just happening to me? Or am I missing something?

[-] [email protected] 19 points 1 year ago

Logically, I want to say no, not really, but I also would have thought the blackout and ongoing protests wouldn't really affect Reddit and they'd ignore it. Reddit itself, however, seems incredibly determined to pursue a course of action which requires performing This Does Not Affect Us At All as dramatically and publicly as possible given the slightest opportunity whether anyone cares or not. This doesn't even include the admins playing subreddit roulette that encompasses actively rebelling subs, subs deep in malicious compliance, and subs that have no idea wtf is going on they just want to talk about their weird NSFW fetish in peace.

So no, I don't think so, but I'm beginning to wonder if Reddit thinks there is and what they're seeing on their side that I'm not.

[-] [email protected] 15 points 1 year ago

I kind of think that's how it's supposed to go in my made-up-right-this-second knowledge of the evolution of open source Federated social media sites. Pick the largest/most active/most variety to get your feet wet and make any weird mistakes you need to make in a crowd where you're one of many and sheer speed of posting means you'll be forgotten in like, hours. Then you get comfortable and see if this is a forever-fit or just a okay-right-now fit.

I mean, I hard-bond to my first and pretty much settle immediately for life unless something is seriously awry, but even I made a backup in another one that I mirrored all my favorite communities in and I am seriously getting one more in a smaller, more specialized server. Yes, I do get the point of Federated, you do not need to explain, but here's the thing: intellectually I know that actually, the population of the Fediverse is orders of magnitude smaller than reddit or pretty much any other social media site, but feelings do not agree: Reddit was like a large, slightly hostile country with a lot of states you avoided always but especially between dusk and dawn; the scope of Fediverse is like being on a very small planet in an expanding universe you can watch growing in real time and it never stops. It's great, but there's something very unsettling realizing you're eight servers from home surrounded by kpop or wake up to find you posted in three communities in servers you don't recognize at two AM and if you can get a reputation for that kind of thing.

My ADHD is living the dream, let's go, but I can see how it would throw people a little.

[-] [email protected] 9 points 1 year ago

God, I just did the set up new laptop process on Sunday; I completely forgot how insanely long everything takes to set up, update, configure, etc. Linux SBC, maybe an hour end to end; install, update, all my configs neatly in a file, ready to be copied over. Regular Linux: two hours end to end at most. You just do not appreciate the beauty of apt update/apt install quite as much as the moment you are confronted with a new Windows install.

Windows? Pretty much most of Sunday afternoon and evening. First the Dell updates, then the driver updates, then the pre-installed program updates, then the Windows updates (though not in that order and not all at once, because predictability what is that). Then I could actually start adding my programs and configuring it, and oh boy.

Just my base configuration for Office--that being each individual program in the suite, God knows--required a hunting expedition and a lot of googling to track everything down in multiple locations and I still had to do a lot of it manually; putty and kitty required copying bits of the registry; calibre I gave up as it was less work to do it myself from memory; firefox was the only thing I could just copy and paste a folder and be entirely done. That part was nice. Every other program I needed I had to track down and install separately then hunt up configs in multiple locations and Windows kept interrupting the process because oh, we forgot, here's more updates and one to three restarts. Why?

And Windows 11's start menu is just insulting; talk about salt in the wound.

[-] [email protected] 12 points 1 year ago

I started vaping seven years ago as a way to quit smoking; I smoked my last cigarette literally outside the vape store before walking in and asking what to I buy to pull this off as nothing worked. The transition was seamless; not only did I never even crave a cigarette again, I very quickly learned to loathe the smell of cigarettes once my full range of smell came back. There's not even a temptation to start up again.

It also helps that I choose vapes that smell amazing.

I am still vaping, yes, but I'm stepping down my nicotine pretty much every two years. I started at 24 and am now at 15 (I was stuck at 18 for a while). Those transitions I can definitely feel, but I can start with adjusting my mod's wattage, air flow, use different coils for a bit, and ease into it so once I step down, there's no chance I step back up, and then reward myself sometimes with a new fancy mod with a touchscreen with more leds or a cooler tank or something. All that and I am spending an order of magnitude less than I ever did on cigarettes and I have the math to prove it.

It's certainly not ideal and yeah, it's slow and basically only progressively reducing harm, but it's a process that for me is guaranteed to work with no backtracking and progress is assured.

[-] [email protected] 25 points 1 year ago

Egg boiler. On the surface it's just the most gadgety pointless product invented but I literally wore it out because suddenly I could have hard boiled eggs and no risk of setting my apartment on fire because I forgot about the eggs. After I move, it's the first thing I'm getting for my kitchen because low-risk hard boiled eggs are totally worth it.

There's a lot of seemingly 'useless' kitchen gadgets like this: full size food processor, waffle maker, breadmaker, even my ridic large instapot. I don't use them every day or even every week and no, I don't need them for daily life. Yes I can mince fifty thousand vegetables for this really complicated soup by hand or make bread from scratch or do whatever you do to make a pot roast without them--but I won't do those things. I know me pretty well now; if I want to make that soup, make some fresh bread, or do that thirty-step fancy pot roast, I need those tools or I'll default to frozen pizza and maybe have fresh Italian bread if I went to Central Market recently and remembered to grab it from the bakery.

[-] [email protected] 6 points 1 year ago

Sweet Roko's Basilisk, so I wasn't missing some mysterious reddit setting where I 'new' was translated as 'wtf' and 'crap'?

It's a whole new world.

[-] [email protected] 30 points 1 year ago

So after twenty-something years on social media, along with mailing lists, messageboards, usenet, this is a topic I think about literally every time I have to add, change, migrate, delete my account as I migrated from platform to platform like some virtual vagabond between text-driven city-states. A virtual vagabond with no worldly goods, no name, no history, and completely invisible to all. To exist, I must apply to the City Leader, and if accepted, I get a name, a nice studio apartment, and visibility as well as contact with other humans after watching a short commercial every five or so humans. If I leave, am thrown out, or the city is burned down, I can't take anything the city gave me with me. By 'gave', I mean 'loaned' btw; none of those things were actually mine.

All the discussion of whether or not to federate with Threads were interesting in that in general, it's kind of pointless. A server instance isn't a democracy; the owner's opinion is the only one that matters. If you don't like it, leave. And I don't argue their right to do so; they're paying the bills, doing the upgrades, eating grapes with robot butlers, I don't know their lives. Federated means anyone can run their own not-twitter or not-reddit; go for it. All you need is money, free time, and the knowledge of how to register a domain name, get, run, secure, and maintain servers, and install and configure the program, lure people in, and avoid breaking any national or international laws. Like I said: I really seriously do not argue the owner's right to decide anything for their server. i know how to do all those things and I ran several websites and archives: I wanted a nap before installation step.

Fediverse is a massive step in loosening the stranglehold megacorporations had on our ability to shitpost in peace and talk about our cats without feeling stalked by people wanting to sell us shit or sell our browsing habits, blood pressure, and underwear size to those who will the try to sell us deeply individualized shit; it's the circle of life, man.

Wow this got long but feelings.

So at this point--two decades and change of social media, the rise and fall of social empires, so much virtual vagabonding across the virtual desert to find a new city-state....I don't think it's too early to consider getting around to a productive discussion of how we go about separating the individual identity from the community and define what is theirs to keep no matter where they are. If there was ever a place and time to start building a model, it's where all the city states are allies and the individuals can interact with each other no matter what city they're in. The account transferability in Mastodon is a really good start, but it's not a solution, much less the solution. It's a beginning.

I don't expect to have a working, finished, flawless product in six to eight weeks or six to eight months; I expect it to slide in three weeks and two days after the announcement that it's ready for alpha testing and immediately break the first time a tester opens it; it'll be another month before it goes into testing again. I expect it will be a weird buggy mess of wtf after months of virtual warfare and everyone will hate it before the rough draft of the design documents are even released. I expect there will be one weird guy who really thinks everything should be written in Rust because he's insane and never sleeps. Five to eight devs will dramatically quit; one will quietly move to Utah and farm emus. None of them will be the Rust guy; you're stuck with him. I expect the working version after testing is done will be hated by everyone and probably kind of crappy. But it will also be amazing, because as of it's release--no matter how shitty, buggy, or how many inexplicable design choices are made--the individual exists outside of being community property and that no matter where we go or how much we pissed off that admin or if our city-state was nuked from orbit, there are things that are ours and we get to keep them.

[-] [email protected] 8 points 1 year ago

I've been thinking on that and assuming fosstodon and lemmy.world both agree to defederate with Threads, I'm going to go ahead and set up regular donations. I only use DW a few times a year, but I renew my premium membership every six months and it's not cheap. I want to keep supporting it because its model does not include ads at all (premium gives you lots of icons, too, and I used to be a huge icon person, so I can't say that's not a consideration). Unless I lose my job or something, I'll keep paying until death or dw closes whether I ever use it again; it's worth supporting.

I was already considering it--when i joined mastodon I bought their stickers to show my appreciation--but this is been a wake-up call. If lemmy.world decides to federate, I mean, I'm not going to leave, but I am going to email lemmy.ml about why my application is still pending and use that for my primary.

[-] [email protected] 8 points 1 year ago

I mean, I try and test drive all new social media platforms that don't actively make my skin crawl, but. I've really bonded with it super fast, and not the way I did with Mastodon where I really sat down to make myself adapt. Don't get me wrong, I love it and pretty much use constantly, but there's always an adjustment period; the very worst was tumblr's hellscapy postingness, but reddit was a very close second. My first social media was livejournal, so for me, everything is compared to that. When I went to dreamwidth, I had enough experience scripting and remembered enough from doing web design to build my own layout and theme straight from the available source, so my friendslist there (dw: circle) is literally customized as close as my skill level then could get to exactly how I want to read, and the right sidebar is customized to only want I personally want there that aren't distracting to me, which is basically a fancier and more idiosyncratic version of my livejournal friendslist. I do me, okay.

Back to Lemmy: from the first, it was super comfortable and familiar. Community posts to the left, right sidebar, almost the exact amount of white space I need, so it was effortless to follow along and add communities and post comments. No weird distractions, nothing unnecessary or fancy to take my attention from content, and I can open up pictures directly in my feed and close them there without having to go to the community or change my scroll rhythm much. Joyous.

I just went back to DW to search for one of my posts and while there, I paused on my circle page and took a moment to realize: oh. They are not the same, no, but Lemmy is basically a less idiosyncratic minimalist version of my specific reading aesthetic; the base elements of both are the same.

(The only thing I might want to change is coloring the post titles since I'm very trained to see plain uncolored black text as text and not links, but three entirely different colors on a general feed page like this one might be a dealbreaker for me; I can adapt to seeing 'post title is link even if black' but tossing in a green or something with blue and orange in close proximity feels like a nope and I do like the blue for user and orange for community very, very much.)

So tentatively: this may be my new community-oriented home.

[-] [email protected] 102 points 1 year ago

Hard agree.

I don't really think federating with them is doomsday, tbh (though I go back and forth on this one), but that doesn't affect my primary reason for my nope. Threads consolidates everything I hate about corporate social media--and for that matter, all social media--without a single part I actually liked and made dealing with the other parts worth it. This is not a twitter clone; it's like someone asked chatGPT to create a social media network based on twitter for other chatGPT bots to talk to each other. For fuck's sake, it doesn't think its users should control what they see on their own feed.

I am perfectly willing--even eager--to perform melodramatically about things that annoy me in public for fun and when I'm bored and applaud others doing the same; it's fun times for all and possibly my favorite thing ever. This is not that.

Threads makes my skin crawl on concept. This is not 'they do not align with our values' because come on, Fediverse contains a multitude of values and invents more and i bet if asked, everyone here would list off a different set of values they believe encompass Fediverse and now I'm tempted to see because it would be hilarious. But we can't even get that far; Threads has no values. This would be a marriage of convenience to a real doll fueled by Facebook's algorithms and sponsored by Wal-Mart; whether or not it's a danger to Fediverse shouldn't even have come up because the first question that should be on anyone's minds is 'wait, this is actually a serious question?' and have been answered 'lol of course it's a joke, I just forgot to add the /s'.

I'm still waiting for that /s.

[-] [email protected] 9 points 1 year ago

Yes very very much; there's so much new stuff and this is a good opportunity to expand my interests and not end up having half my subs be drama subs and read AITA until I lose my soul. But also because I'm trying to make a determined effort to be a responsible community member and post actual sentences and engage with others so it becomes a habit. Will any of those sentences make sense? No, and stop pressuring me. Being coherent is an entirely separate goal and many steps from here so back the hell off, okay?

Hello fellow humans, I am normal, friendly, and sane!

[-] [email protected] 9 points 1 year ago

God, I never thought of that or I would have transitioned here months ago to start prepping.

view more: next ›

seperis

joined 1 year ago