1
DIY Sonos Project (lemmy.world)
submitted 2 months ago* (last edited 2 months ago) by one_knight_scripting@lemmy.world to c/selfhosted@lemmy.world

Hey Self Hosted!

Got a shower thought I wanna bounce off youse guys. It's half-baked but itching to become real: DIY Sonos-like surround sound using Raspberry Pis (or maybe other SBCs if Pi's not cut out for it). Need your brains to kick things off!

The Vision:

Server Pi

  • Acts as the brain. Takes 5.1 audio input from the TV (SPDIF? HDMI? Still figuring that out).

Client Pis

Wireless speakers running balenaSound or similar. Each handles a specific channel (front left, rear right, etc.). I do picture each of these being connected to a amplifier board. With some fancy wiring to give Raspberry pi voltages and power required for the amplifiers. (Something like this: https://a.co/d/fwkXuCm)

The Hurdles:

5.1 Audio Input

Can a Pi even handle 5.1 audio input? Do I need a fancy sound card/HAT? Or should I ditch the Pi for something beefier?

Channel Remapping Sorcery

Wiring all speakers the same (e.g., left channel only) but using Linux wizardry to assign which channel each speaker plays. Like, plug in a "rear right" speaker, tell the Pi "yo, you’re rear right now," and boom—it works. Possible? Or am I dreaming?

Why? Swapping speakers without rewiring = less headache. Plus, modularity.

First roadblock: Getting clean 5.1 into a Pi. Second headache: Software channel routing.

Anyone tackled something like this before? Am I reinventing a wheel that’s already on fire?

Edit: I think I may actually have found a solution even cheaper and I intended. Has anyone here ever heard of WiSa? Long story short it is a solution for Wireless Audio Cinemas. Mostly it is used in very expensive speakers, I'm talking like $5K USD for a whole system. However. I have found a much cheaper solution: https://a.co/d/fXkaMEX. This would be a good starter point for me because the server side already does everything that I want it to. The client side(speakers) are just about there... But I want to see better drivers and amplifiers. If I were to purchase this, I would use it as is initially, but eventually cannibalize the WiSa adapter, attach it to a strong amplifier, and mount the result in a better set of speakers.

26
submitted 6 months ago* (last edited 6 months ago) by one_knight_scripting@lemmy.world to c/selfhosted@lemmy.world

Hello there Selfhosted community!

This is an announcement of the completion of a project I've been working on. A Script for installing Ubuntu 24.04 on a ZFS RAID 10. Now, I'd like to describe why I choose to develop this and how I'd like for other people to have access to it as well. Let us start with the hardware.

Now, I am using an old host. My host in particular was originally a BCDR device that was based on a ZFS raidz implementation. Since it was designed for ZFS, it doesn't even have a RAID card, it only has an HBA anyways. So for redundancy, ZFS is a good way to go. Now, even though this was a backup appliance, it did not have root on ZFS. Instead, it had a separate harddrive for the operating system and three individual disks for the zpool. This was not my goal.

So I did a little research and testing. I looked at two particular guides (Debian/Ubuntu). Now, I performed those steps a dozens of times because I kept messing up the little things. And to eliminate the human error(that's me) I decided to just go ahead and script the whole thing.

The Github Repository I linked contains all the code needed to setup a generic ubuntu-server host using a ZFS RAID 10.

Instructions for starting the script are easy. Boot up a live cd(https://ubuntu.com/download/server). Hit CTRL+ALT+F2 to go into the shell. Run the following command:

bash <(wget -qO- https://raw.githubusercontent.com/Reddimes/ubuntu-zfsraid10/refs/heads/main/tools/install.sh)

This command does clone the repository, changes directory into it, and runs the entrypoint(sudo ./init.sh). Hopefully, this should be easy to customize to meet your needs.

More Engineering details are on the Github.

[-] one_knight_scripting@lemmy.world 6 points 7 months ago

I appreciate your attention to detail. Have an updoot.

[-] one_knight_scripting@lemmy.world 19 points 8 months ago

Getting downvotes because you didn't read the article. ¯\_(ツ)_/¯

[-] one_knight_scripting@lemmy.world 35 points 8 months ago

Take your upvote and gtfo. Lol

[-] one_knight_scripting@lemmy.world 21 points 8 months ago

Idk, I don't think you can recycle Trump. That little shit belongs in the trash.

[-] one_knight_scripting@lemmy.world 11 points 9 months ago

Is... Is this a Trump meme?

[-] one_knight_scripting@lemmy.world 11 points 9 months ago

Love it. I love that you went to Lemmy for tips. A side note, while I love it, I'm curious to see what it would look like with a bushy unibrow now that you've added the bushier mustache.

[-] one_knight_scripting@lemmy.world 8 points 9 months ago

Oh great... Look at the GNUguy. Here he is walking around all GNUde. He's gonna come over demanding GNUggets of wisdom. And I'm just gonna say it, hell GNUpe, leave me alone to compile my thoughts in peace.

This comment was purely for fun, isn't even funny, and frankly laughable. But it seemed like a good time for some word play. ✌️

[-] one_knight_scripting@lemmy.world 27 points 9 months ago* (last edited 9 months ago)

Doesn't Odo lose his *surprising ability for part of the show? I imagine he had to start wearing clothes.

Edit: *shapeshifting... I feel like autocorrect made the sentence better. I like it and it kind of works so I'm leaving it.

[-] one_knight_scripting@lemmy.world 6 points 9 months ago

I'm by no means an expert though, so take my suggestions with a grain of salt.

Good on you for trying to help though, seriously. And OP I wanna hear if you're able to get it squared away.

[-] one_knight_scripting@lemmy.world 9 points 9 months ago* (last edited 9 months ago)

For PC, I would personally suggest looking for a controller with two things. Number 1, Hall effect sensors. Eliminate stick drift entirely with that alone. Number 2, replaceable joysticks. If the sticks last a long time, then the controller is expected to last longer. I just think having a way to replace work rubber is a good thing. Personally, I have loved Gulikit. My controller also happens to work on switch as well. Here is a link of you are interested in checking it out. Note that that is the controller I have, but you should definitely look at the different models. My controller has lasted about 3 years now. I used to go through PS5 controllers in about 6 months.

https://www.gulikit.com/productinfo/925509.html

[-] one_knight_scripting@lemmy.world 11 points 9 months ago* (last edited 9 months ago)

People seem to keep forgetting the past or choose to ignore it and continue another cycle of the status quo. 

Hahaha. Remembering the past is the whole reason I want nothing to do with Trump. He's not interested in helping the economy. Let's start with his tax policies. Do you remember when he gave tax breaks to companies instead of the American people. He specifically said that it would trickle down. It was that garbage to help his own friends. But yeah, let's move on to his monetary policy. He printed an obscene amount of money. Now that is negative at first glance, but you have to understand what that did to the fed and the purpose of economic policy. Long story short the fed is supposed to respond to economic changes to support the American people and they are typically prepared for emergencies like covid. But let's test this back to what happens if Trump prints money. The problem with printing money to such a degree is twofold. For one, it is the lazy approach. Instead of trying to figure out who in the market needs help and how to get it to them, he just decided to lazily print money. And the fed is not out of here yet, printing money to such a degree took away the safety net that the fed typically uses to respond to economic down turns. Long story short Trump literally set us up for the inflation that we are still experiencing. Let's not even go into the Supreme Court Justices he elected who overturned decades old precedent literally against the will of the majority of Americans. And let's also leave out project 2025 which is literally a plan to disturb the democracy we have in America. Sure he SAYS he knows nothing about it, but 140 at a minimum of his staff helped to write it. JD Vance himself wrote a forward for it. And it is a plan that doesn't care about the American people, is simply a plan to disturb the wonderful democracy that we have by forcing as many people as possible to do what he wants without insight into what AMERICANS want. Yeah we'll leave that out too. And then we are going to leave out the fact that this guy literally said that he would be a dictator and attack his political opponents. And let's leave out the fact that I am a Democrat. This guy is going to lose the election because everyone remembers the past and knows the effect of Trump in the office. Harris will win the election because literally anyone would be better than Trump. Seriously it's not even a challenge for her to win this, Republicans had the opportunity to pick someone they thought would be better for the job yet didn't. It's like they are not even trying and instead trying to setup an insurrection. The American people remember the status quo that Trump himself supported which was policy designed to increase the wealth of the wealthy and eliminated the wealth of the middle and lower class. Also I can't believe that a conservative would say liberals and progressives are the ones pushing the status quo. That's literally what being a conservative is about. I'm going to write literally the first result on conservative from duck duck go. "Favoring traditional views and values; tending to oppose change." Tending to oppose change. This is literally about maintaining the status quo. But let's go ahead and talk about the status quo and the electoral college. Let's eliminate it. Let's ensure that all American citizens have an equal say in who is elected president. On its face this idea looks and sounds good. Hell the electoral college is the result of a months long compromise between those who wanted a democratic popular vote and those who wanted the president to be elected by the Senate. Now I think all parties today will agree the president should not be chosen by the Senate, we are a democracy/republic. So let's remove the electoral college. Republicans claim to have the silent majority so let's eliminate gerrymandering AND let's ensure that the people's voice is heard all done with just eliminating the electoral college.

That name, is MEGA.

view more: next ›

one_knight_scripting

joined 1 year ago